Examples of keyEnumerator()


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

       result = gidful;
     }
     else if (obj instanceof NSDictionary) {
       NSDictionary eoful = (NSDictionary)obj;
       NSMutableDictionary gidful = new NSMutableDictionary();
       Enumeration keyEnum = eoful.keyEnumerator();
       while (keyEnum.hasMoreElements()) {
         Object eofulKey = keyEnum.nextElement();
         Object gidfulKey = ERXEOControlUtilities.convertEOtoGID(eofulKey);
         Object gidfulValue = ERXEOControlUtilities.convertEOtoGID(eoful.objectForKey(eofulKey));
         gidful.setObjectForKey(gidfulValue, gidfulKey);
View Full Code Here

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

       }
     }
     else if (obj instanceof NSDictionary) {
       NSDictionary gidful = (NSDictionary)obj;
       NSMutableDictionary eoful = new NSMutableDictionary();
       Enumeration keyEnum = gidful.keyEnumerator();
       while (keyEnum.hasMoreElements()) {
         Object gidfulKey = keyEnum.nextElement();
         Object eofulKey = ERXEOControlUtilities.convertGIDtoEO(editingContext, gidfulKey);
         Object eofulValue = ERXEOControlUtilities.convertGIDtoEO(editingContext, gidful.objectForKey(gidfulKey));
         eoful.setObjectForKey(eofulValue, eofulKey);
View Full Code Here

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

        String result;
        if(getExceptionPageName() != null && ERXValueUtilities.booleanValue(formatAsError())) {
            NSDictionary dict = composeExceptionPageDictionary(event);
            WOComponent page = ERXApplication.instantiatePage(exceptionPageName);

            for(Enumeration keys = dict.keyEnumerator(); keys.hasMoreElements();) {
                String key = (String) keys.nextElement();
                Object value = dict.objectForKey(key);
                try {
                    page.takeValueForKey(value, key);
                } catch(NSKeyValueCoding.UnknownKeyException e) {
View Full Code Here

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

                EOGeneralAdaptorException  e= (EOGeneralAdaptorException)exception;
                if (e.userInfo()!=null) {
                    Object userInfo=e.userInfo();
                    if (userInfo instanceof NSDictionary) {
                        NSDictionary uid=(NSDictionary)userInfo;
                        for (Enumeration e2=uid.keyEnumerator(); e2.hasMoreElements();) {
                            String key=(String)e2.nextElement();
                            Object value=uid.objectForKey(key);
                            s.append(key + " = " + value + ";\n");
                        }
                    } else {
View Full Code Here

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

    protected void handleUpdate(EOEditingContext ec, EOEnterpriseObject eo) {
        NSArray keys = configuration.objectForKey(eo.entityName()).keys;
        NSDictionary committedSnapshotForObject = ec.committedSnapshotForObject(eo);
        NSDictionary changes = eo.changesFromSnapshot(committedSnapshotForObject);
        for (Enumeration e1 = changes.keyEnumerator(); e1.hasMoreElements();) {
            String key = (String) e1.nextElement();
            if (keys.containsObject(key)) {
                handleUpdate(ec, eo, key, committedSnapshotForObject.objectForKey(key), changes.objectForKey(key));
            }
        }
View Full Code Here

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

  @Override
  public NSDictionary statistics() {
    NSDictionary stats = super.statistics();
    NSMutableDictionary fixed = stats.mutableClone();
    for (Enumeration enumerator = stats.keyEnumerator(); enumerator.hasMoreElements();) {
      Object key = enumerator.nextElement();
      Object value = stats.objectForKey(key);
      fixed.setObjectForKey(fix(value), key);
    }
    stats = fixed;
View Full Code Here

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

            //keyed by top level so we can combine like root paths
            NSDictionary subPathsKeyedByTopLevel = subPathsKeyedByTopLevel(keypathStrings);

            NSMutableArray<KeyPath> keyPathObjects = new NSMutableArray<KeyPath>();

            Enumeration e = subPathsKeyedByTopLevel.keyEnumerator();
            while (e.hasMoreElements()) {
                String path = (String) e.nextElement();
                NSArray subPaths = (NSArray) subPathsKeyedByTopLevel.valueForKey(path);

                KeyPath kp = new KeyPath(path, KeyPath.parseKeyPathStrings(subPaths));
View Full Code Here

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

     */
    public static NSArray<Object> primaryKeyValuesWithGlobalIDs(NSArray<EOGlobalID> globalIDs) {
      NSMutableArray<Object> result = new NSMutableArray<Object>();
      if(globalIDs.count() > 0) {
        NSDictionary gidsByEntity = globalIDsGroupedByEntityName(globalIDs);
        for(Enumeration e = gidsByEntity.keyEnumerator(); e.hasMoreElements();) {
          String entityName = (String) e.nextElement();
          NSArray gidsForEntity = (NSArray) gidsByEntity.objectForKey(entityName);
         
          for (Enumeration gids = gidsForEntity.objectEnumerator(); gids.hasMoreElements();) {
            EOKeyGlobalID keyGID = (EOKeyGlobalID) gids.nextElement();
View Full Code Here

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

      }
    }
    NSDictionary classList = WOClassCacheAccessor.getClassCache();
    String unknownClassName = "com.webobjects.foundation._NSUtilities$_NoClassUnderTheSun";
    Class<?> unknownClass = WOClassCacheAccessor.classForName(unknownClassName);
    Enumeration<String> en = classList.keyEnumerator();
    while(en.hasMoreElements()) {
      String className = en.nextElement();
      if (className.equals(unknownClassName)) {
        continue;
      }
View Full Code Here

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

      NSMutableArray<EOEnterpriseObject> result = new NSMutableArray<EOEnterpriseObject>();
    ec.lock();
    ec.rootObjectStore().lock();
    try {
        NSDictionary gidsByEntity = globalIDsGroupedByEntityName(globalIDs);
        for(Enumeration e = gidsByEntity.keyEnumerator(); e.hasMoreElements();) {
          String entityName = (String) e.nextElement();
          NSArray gidsForEntity = (NSArray) gidsByEntity.objectForKey(entityName);
         
          NSMutableArray<EOQualifier> qualifiers = new NSMutableArray<EOQualifier>();
            EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, entityName);
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.