Examples of objectForKey()


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

                if(rel.userInfo() != null)
                    defaultValue = (String)rel.userInfo().objectForKey(defaultKey);

                if(defaultValue == null && entityInfo != null) {
                    defaultValue = (String)entityInfo.objectForKey(rel.name());
                }
                if(defaultValue != null)
                    setDefaultRelationshipValue(rel, defaultValue);
            }
        }
View Full Code Here

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

        return "";

      String dictString = new String(bundle.bytesForResourcePath(plist));
      NSDictionary versionDictionary = NSPropertyListSerialization.dictionaryForString(dictString);

      String versionString = (String) versionDictionary.objectForKey(key);
      return versionString == null  ""  :  versionString.trim(); // trim() removes the line ending char
    }

    /** constant string used if Wonder version could not be determined */
    public static final String UNKNOWN_WONDER_VERSION = "Not Available";
View Full Code Here

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

      ERXProperties._Properties properties = new ERXProperties._Properties();
        NSDictionary argvDict = NSProperties.valuesFromArgv(argv);
        Enumeration e = argvDict.allKeys().objectEnumerator();
        while (e.hasMoreElements()) {
            Object key = e.nextElement();
            properties.put(key, argvDict.objectForKey(key));
        }
        return properties;
    }

    /**
 
View Full Code Here

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

                String propertyKey = (String)o;
                NSDictionary values = (NSDictionary)dictionary().valueForKeyPath("componentLevelKeys." + propertyKey);
                EOQualifier q = EOQualifier.qualifierWithQualifierFormat( "pageConfiguration = '" + _pageConfiguration + "' and propertyKey = '" + propertyKey + "'" , null);
                for (Enumeration e1 = values.keyEnumerator(); e1.hasMoreElements();) {
                    String key = (String)e1.nextElement();
                    Object value = values.objectForKey(key);
                    Assignment a = createAssigment(key, value);
                    rules.addObject(new Rule(level, q, a));
                }
            }
        }
View Full Code Here

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

          NSDictionary dict;
          String path = bundle.resourcePathForLocalizedResourceNamed("d2wclientConfiguration.plist", null);
          if(path != null) {
            dict = ERXDictionaryUtilities.dictionaryFromPropertyList("d2wclientConfiguration", bundle);
            if(dict != null) {
              if(dict.objectForKey("components") != null) {
                components.addEntriesFromDictionary((NSDictionary)dict.objectForKey("components"));
              }
              if(dict.objectForKey("editors") != null) {
                editors.addEntriesFromDictionary((NSDictionary)dict.objectForKey("editors"));
              }
View Full Code Here

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

          String path = bundle.resourcePathForLocalizedResourceNamed("d2wclientConfiguration.plist", null);
          if(path != null) {
            dict = ERXDictionaryUtilities.dictionaryFromPropertyList("d2wclientConfiguration", bundle);
            if(dict != null) {
              if(dict.objectForKey("components") != null) {
                components.addEntriesFromDictionary((NSDictionary)dict.objectForKey("components"));
              }
              if(dict.objectForKey("editors") != null) {
                editors.addEntriesFromDictionary((NSDictionary)dict.objectForKey("editors"));
              }
            }
View Full Code Here

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

            dict = ERXDictionaryUtilities.dictionaryFromPropertyList("d2wclientConfiguration", bundle);
            if(dict != null) {
              if(dict.objectForKey("components") != null) {
                components.addEntriesFromDictionary((NSDictionary)dict.objectForKey("components"));
              }
              if(dict.objectForKey("editors") != null) {
                editors.addEntriesFromDictionary((NSDictionary)dict.objectForKey("editors"));
              }
            }
          }
        }
View Full Code Here

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

            if(dict != null) {
              if(dict.objectForKey("components") != null) {
                components.addEntriesFromDictionary((NSDictionary)dict.objectForKey("components"));
              }
              if(dict.objectForKey("editors") != null) {
                editors.addEntriesFromDictionary((NSDictionary)dict.objectForKey("editors"));
              }
            }
          }
        }
      }
View Full Code Here

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

      }

      dos.writeShort(userInfo.count());
      for (Object key : userInfo.allKeys()) {
        byte[] keyBytes = key.toString().getBytes();
        byte[] valueBytes = userInfo.objectForKey(key).toString().getBytes();
        dos.writeShort(keyBytes.length);
        dos.write(keyBytes);
        dos.writeShort(valueBytes.length);
        dos.write(valueBytes);
      }
View Full Code Here

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

    }

    public String sqlStringForBindingOnExpression(EOSQLExpression expression) {
        NSDictionary binding = expression.bindVariableDictionaryForAttribute( _attribute, _value );
        expression.addBindVariableDictionary(binding);
        return (String) binding.objectForKey(EOSQLExpression.BindVariablePlaceHolderKey);
    }

}
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.