Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSDictionary.objectForKey()


            _shapshotsForInsertionGroupedByEntity = snapshotsGroupedByEntity((NSArray)userInfo.objectForKey("inserted"));
        else
            _shapshotsForInsertionGroupedByEntity = NSDictionary.EmptyDictionary;

        if (configuration.changeTypesToPublish().containsObject(UPDATED))
            _shapshotsForUpdateGroupedByEntity = snapshotsGroupedByEntity((NSArray)userInfo.objectForKey("updated"));
        else
            _shapshotsForUpdateGroupedByEntity = NSDictionary.EmptyDictionary;

        if (configuration.changeTypesToPublish().containsObject(DELETED))
            _globalIDsForDeletionGroupedByEntity = globalIDsGroupedByEntity((NSArray)userInfo.objectForKey("deleted"));
View Full Code Here


            _shapshotsForUpdateGroupedByEntity = snapshotsGroupedByEntity((NSArray)userInfo.objectForKey("updated"));
        else
            _shapshotsForUpdateGroupedByEntity = NSDictionary.EmptyDictionary;

        if (configuration.changeTypesToPublish().containsObject(DELETED))
            _globalIDsForDeletionGroupedByEntity = globalIDsGroupedByEntity((NSArray)userInfo.objectForKey("deleted"));
        else
            _globalIDsForDeletionGroupedByEntity = NSDictionary.EmptyDictionary;

    }
View Full Code Here

                    Class argumentClasses[] = new Class[arguments.count()];
                    Object argumentValues[] = new Object[arguments.count()];
                    int count = 0;
                    while (count < arguments.count()) {
                        NSDictionary anArgument = (NSDictionary)arguments.objectAtIndex(count);
                        String argumentClassName = (String)anArgument.objectForKey("className");
                        String argumentContextKey = (String)anArgument.objectForKey("contextKey");
                        argumentValues[count] = context.valueForKeyPath(argumentContextKey);
                        argumentClasses[count] = Class.forName(argumentClassName);
                        count++;
                    }
View Full Code Here

                    Object argumentValues[] = new Object[arguments.count()];
                    int count = 0;
                    while (count < arguments.count()) {
                        NSDictionary anArgument = (NSDictionary)arguments.objectAtIndex(count);
                        String argumentClassName = (String)anArgument.objectForKey("className");
                        String argumentContextKey = (String)anArgument.objectForKey("contextKey");
                        argumentValues[count] = context.valueForKeyPath(argumentContextKey);
                        argumentClasses[count] = Class.forName(argumentClassName);
                        count++;
                    }
                    Constructor constructor = mainClass.getConstructor(argumentClasses);
View Full Code Here

        if( d2 != null ){
            NSDictionary d = (NSDictionary)d2.objectForKey(GSVEngine.ERROR_DICTIONARY_KEY);
            if( d != null ){
                if( this.attributeKeys() != null ){
                    for( int i=0;i<this.attributeKeys().count();i++){
                        array.addObjectsFromArray((NSArray)d.objectForKey(this.attributeKeys().objectAtIndex(i)));
                    }
                }
            }
        }
        return array;
View Full Code Here

   
    public GSVEOEntity entityNamed(String name){
        NSDictionary currentEntity = null;
        for(int i=0;i<this.entities().count();i++){
            currentEntity = (NSDictionary)this.entities().objectAtIndex(i);
            if(currentEntity.objectForKey("name").equals(name))
               return new GSVEOEntity(this,name);
        }
        return null;
    }
   
View Full Code Here

    public GSVEOAttribute attributeNamed(String name){
        NSDictionary currentAttribute = null;
        for(int i=0;i<this.attributes().count();i++){
            currentAttribute = (NSDictionary)this.attributes().objectAtIndex(i);
            if(currentAttribute.objectForKey("name").equals(name))
                return new GSVEOAttribute(this,currentAttribute);
        }
        return null;
    }
 
View Full Code Here

    public NSArray dependentKeys(String keyPath) {
        if (_dependentKeys==null) {
            NSDictionary conditionAssignment = (NSDictionary)value();
            String qualFormat =
                (String)conditionAssignment.objectForKey("qualifierFormat");
            NSArray args = (NSArray)conditionAssignment.objectForKey("args");
            if (log.isDebugEnabled()) log.debug("parsing "+qualFormat);
            EOQualifier qualifier =
                EOQualifier.qualifierWithQualifierFormat(qualFormat, args);
            if (log.isDebugEnabled())
                log.debug("Qualifier keys: " + qualifier.allQualifierKeys());
View Full Code Here

    @Override
    public Object fireNow(D2WContext c) {
        Object result = null;
        NSDictionary conditionAssignment = (NSDictionary)value();
        String qualFormat =
            (String)conditionAssignment.objectForKey("qualifierFormat");
        NSDictionary switchDictionary = (NSDictionary)conditionAssignment.objectForKey("switch");
        NSArray args = (NSArray)conditionAssignment.objectForKey("args");
        if (log.isDebugEnabled()) {
            log.debug("Entity: " + c.entity().name());
            log.debug("Object " + c.valueForKey("object"));
View Full Code Here

            } catch (ClassCastException e) {
                log.error("expected a NSDictionary object but received "+value(), e);
                throw e;
            }
            String qualFormat =
                (String)conditionAssignment.objectForKey("qualifierFormat");
            NSArray args = (NSArray)conditionAssignment.objectForKey("args");
            if (log.isDebugEnabled()) log.debug("parsing "+qualFormat);
            EOQualifier qualifier =
                EOQualifier.qualifierWithQualifierFormat(qualFormat, args);
            if (log.isDebugEnabled())
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.