Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableDictionary.takeValueForKey()


            newKey = (String)replaceSpaceWithUnderscoreCache.valueForKey(key);
            if (newKey == null) {
                newKey = key.replace(' ', '_');
                replaceSpaceWithUnderscoreCache.takeValueForKey(newKey, key);
            }
            newDict.takeValueForKey(value, newKey);
        }
        return newDict;
    }

    public static NSMutableDictionary replaceUnderscoreWithSpace(NSDictionary aDict) {
View Full Code Here


            newKey = (String)replaceUnderscoreWithSpaceCache.valueForKey(key);
            if (newKey == null) {
                newKey = key.replace('_', ' ');
                replaceUnderscoreWithSpaceCache.takeValueForKey(newKey, key);
            }
            newDict.takeValueForKey(value, newKey);
        }
        return newDict;
    }

View Full Code Here

        Enumeration allKeys = tempDict.keyEnumerator();
        while (allKeys.hasMoreElements()) {
            String key = (String)allKeys.nextElement();
            Object value = tempDict.valueForKey(key);
            if ((value instanceof String) && (((String)value).equals("true"))) {
                newDict.takeValueForKey("YES", key);
            } else if ((value instanceof String) && (((String)value).equals("false"))) {
                newDict.takeValueForKey("NO", key);
            } else {
                newDict.takeValueForKey(value, key);
            }
View Full Code Here

            String key = (String)allKeys.nextElement();
            Object value = tempDict.valueForKey(key);
            if ((value instanceof String) && (((String)value).equals("true"))) {
                newDict.takeValueForKey("YES", key);
            } else if ((value instanceof String) && (((String)value).equals("false"))) {
                newDict.takeValueForKey("NO", key);
            } else {
                newDict.takeValueForKey(value, key);
            }
        }
        return newDict;
View Full Code Here

            if ((value instanceof String) && (((String)value).equals("true"))) {
                newDict.takeValueForKey("YES", key);
            } else if ((value instanceof String) && (((String)value).equals("false"))) {
                newDict.takeValueForKey("NO", key);
            } else {
                newDict.takeValueForKey(value, key);
            }
        }
        return newDict;
    }
View Full Code Here

        Enumeration allKeys = tempDict.keyEnumerator();
        while (allKeys.hasMoreElements()) {
            String key = (String)allKeys.nextElement();
            Object value = tempDict.valueForKey(key);
            if ((value instanceof String) && (((String)value).equals("YES"))) {
                newDict.takeValueForKey("true", key);
            } else if ((value instanceof String) && (((String)value).equals("NO"))) {
                newDict.takeValueForKey("false", key);
            } else {
                newDict.takeValueForKey(value, key);
            }
View Full Code Here

            String key = (String)allKeys.nextElement();
            Object value = tempDict.valueForKey(key);
            if ((value instanceof String) && (((String)value).equals("YES"))) {
                newDict.takeValueForKey("true", key);
            } else if ((value instanceof String) && (((String)value).equals("NO"))) {
                newDict.takeValueForKey("false", key);
            } else {
                newDict.takeValueForKey(value, key);
            }
        }
        return newDict;
View Full Code Here

            if ((value instanceof String) && (((String)value).equals("YES"))) {
                newDict.takeValueForKey("true", key);
            } else if ((value instanceof String) && (((String)value).equals("NO"))) {
                newDict.takeValueForKey("false", key);
            } else {
                newDict.takeValueForKey(value, key);
            }
        }
        return newDict;
    }
View Full Code Here

                NSMutableArray subPaths = (NSMutableArray) subPathsKeyedByTopLevel.valueForKey(path);

                if (subPaths == null) {
                    subPaths = new NSMutableArray();
                    subPathsKeyedByTopLevel.takeValueForKey(subPaths, path);
                }

                String subPath = KeyPath.indirectPathFromKeyPath(keypath);

                if (subPath != null) subPaths.addObject(subPath);
View Full Code Here

            while (e.hasMoreElements()) {
                EOEnterpriseObject eo = (EOEnterpriseObject) e.nextElement();
                NSMutableArray objectsForEntity = (NSMutableArray) objectsByEntityName.valueForKey(eo.entityName());
                if (objectsForEntity == null) {
                    objectsForEntity = new NSMutableArray();
                    objectsByEntityName.takeValueForKey(objectsForEntity, eo.entityName());
                }

                objectsForEntity.addObject(eo);
            }
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.