Examples of objectEnumerator()


Examples of com.webobjects.foundation.NSArray.objectEnumerator()

                        keyChoices.addObject(new ERXKeyValuePair(key, ERXLocalizer.currentLocalizer().localizedStringForKeyWithDefault(value)));
                    }
                } else if(choices instanceof NSDictionary) {
                    NSArray keys = ((NSDictionary)choices).allKeys();
                    keys = ERXArrayUtilities.sortedArraySortedWithKey(keys, "toString");
                    for(Enumeration e = keys.objectEnumerator(); e.hasMoreElements(); ) {
                        String key = (String)e.nextElement();
                        String value = (String)((NSDictionary)choices).objectForKey(key);
                        keyChoices.addObject(new ERXKeyValuePair(key, ERXLocalizer.currentLocalizer().localizedStringForKeyWithDefault(value)));
                    }
                }
View Full Code Here

Examples of com.webobjects.foundation.NSArray.objectEnumerator()

                String filter = request.stringFormValueForKey("filter");
                Set<String> filters = null;
                if (filter != null) {
                    filters = new HashSet<String>();
                    NSArray filterNamesArray = NSArray.componentsSeparatedByString(filter, ",");
                    Enumeration filterNamesEnum = filterNamesArray.objectEnumerator();
                    while (filterNamesEnum.hasMoreElements()) {
                        Object filterName = filterNamesEnum.nextElement();
                        filters.add((String) filterName);
                    }
                }
View Full Code Here

Examples of com.webobjects.foundation.NSArray.objectEnumerator()

        NSArray entityNames = ercnSnapshot.shapshotsForUpdateGroupedByEntity().allKeys();
        EOEditingContext ec = new EOEditingContext();
        ec.lock();

        Enumeration entitiesEnumerator = entityNames.objectEnumerator();
        while (entitiesEnumerator.hasMoreElements()) {
            String entityName = (String)entitiesEnumerator.nextElement();
            if (! ERCNSnapshot.shouldSynchronizeEntity(entityName))   continue;

            EOEntity entity = EOModelGroup.defaultGroup().entityNamed(entityName);
View Full Code Here

Examples of com.webobjects.foundation.NSArray.objectEnumerator()

            EOEntity entity = EOModelGroup.defaultGroup().entityNamed(entityName);
            EODatabaseContext dbContext = ERCNNotificationCoordinator.databaseContextForEntityNamed(entityName, ec);
            EODatabase database = dbContext.database();
            NSArray snapshots = (NSArray)ercnSnapshot.shapshotsForUpdateGroupedByEntity().objectForKey(entityName);
            Enumeration snapshotsEnumerator = snapshots.objectEnumerator();
            while (snapshotsEnumerator.hasMoreElements()) {
                NSDictionary snapshot = (NSDictionary)snapshotsEnumerator.nextElement();
                if (NSLog.debug.isEnabled())
                    NSLog.debug.appendln(ERCNNotificationCoordinator.LOG_HEADER + "Snapshot: " + snapshot);
                if (snapshot != null) {
View Full Code Here

Examples of com.webobjects.foundation.NSArray.objectEnumerator()

                        int count = list.count();
                        EncodedArray array = new EncodedArray(encodeCount(count, Type.kCFBinaryPlistMarkerArray));
                        objectList.add(array);
   
                        // 2. write all values
                        for (Enumeration valuesEnum = list.objectEnumerator(); valuesEnum.hasMoreElements(); ) {
                            Object aValue = valuesEnum.nextElement();
                            array.addValueRef(encodeObject(aValue, objectList, uniquingTable));
                        }
            }
          break;
View Full Code Here

Examples of com.webobjects.foundation.NSArray.objectEnumerator()

                        int count = list.count();
                        EncodedSet set = new EncodedSet(encodeCount(count, Type.kCFBinaryPlistMarkerSet));
                        objectList.add(set);
   
                        // 2. write all values
                        for (Enumeration valuesEnum = list.objectEnumerator(); valuesEnum.hasMoreElements(); ) {
                            Object aValue = valuesEnum.nextElement();
                            set.addValueRef(encodeObject(aValue, objectList, uniquingTable));
                        }
            }
          break;
View Full Code Here

Examples of com.webobjects.foundation.NSArray.objectEnumerator()

                        delayedDependendKeysPerKey.put(rhsKey, recipientForNewKeys);
                    }
                }
                NSArray extraKeys=((ERDComputingAssignmentInterface)r.rhs()).dependentKeys(rhsKey);
                if (extraKeys!=null) {
                    for (Enumeration e6=extraKeys.objectEnumerator(); e6.hasMoreElements(); ) {
                        String k=(String)e6.nextElement();
                        _addKeyToVector(k, recipientForNewKeys);
                    }
                }
            } else if (r.rhs() instanceof DefaultAssignment) {
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.objectEnumerator()

                "displayNameForProperty", "propertyKey"});
        _componentLevelKeys = new NSMutableArray();
        if(componentKeys != null) {
            _componentLevelKeys = componentKeys.mutableClone();
        }
        for(Enumeration e = keys.objectEnumerator(); e.hasMoreElements(); ) {
          String key = (String)e.nextElement();
          if(!_componentLevelKeys.containsObject(key)) {
            _componentLevelKeys.addObject(key);
          }
        }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.objectEnumerator()

      private NSMutableDictionary editors = new NSMutableDictionary();

      public Configuration() {
        NSMutableArray bundles = NSBundle.frameworkBundles().mutableClone();
        bundles.addObject(NSBundle.mainBundle());
        for(Enumeration e = bundles.objectEnumerator(); e.hasMoreElements(); ) {
          NSBundle bundle = (NSBundle)e.nextElement();
          NSDictionary dict;
          String path = bundle.resourcePathForLocalizedResourceNamed("d2wclientConfiguration.plist", null);
          if(path != null) {
            dict = ERXDictionaryUtilities.dictionaryFromPropertyList("d2wclientConfiguration", bundle);
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.objectEnumerator()

                    }
                    tabSectionsContents.addObject(c);
                }
            } else if (firstValue instanceof String) {
                tabSectionsContents = ERDirectToWeb.convertedPropertyKeyArray(tabSectionContentsFromRule, '[', ']');
                for (Enumeration e = tabSectionsContents.objectEnumerator(); e.hasMoreElements();) {
                    ERD2WContainer tab = (ERD2WContainer) e.nextElement();
                    if(tab.displayName == null) {
                      tab.displayName = "Main";
                    }
                    if(tab.name.length() == 0) {
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.