Package com.webobjects.foundation

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


    NSDictionary userInfo = model.userInfo();
    if (userInfo != null) {
      NSDictionary entityModelerDictionary = (NSDictionary) userInfo.objectForKey("_EntityModeler");
      if (entityModelerDictionary != null) {
        if (databaseConfigName == null) {
          databaseConfigName = (String) entityModelerDictionary.objectForKey("activeDatabaseConfigName");
        }
        if (databaseConfigName != null) {
          NSDictionary databaseConfigsDictionary = (NSDictionary) entityModelerDictionary.objectForKey("databaseConfigs");
          if (databaseConfigsDictionary != null) {
            databaseConfig = (NSDictionary) databaseConfigsDictionary.objectForKey(databaseConfigName);
View Full Code Here


          databaseConfigName = (String) entityModelerDictionary.objectForKey("activeDatabaseConfigName");
        }
        if (databaseConfigName != null) {
          NSDictionary databaseConfigsDictionary = (NSDictionary) entityModelerDictionary.objectForKey("databaseConfigs");
          if (databaseConfigsDictionary != null) {
            databaseConfig = (NSDictionary) databaseConfigsDictionary.objectForKey(databaseConfigName);
          }
        }
      }
    }
    return databaseConfig;
View Full Code Here

      EOEntity entity = (EOEntity) entitiesEnum.nextElement();
      for (Enumeration attributesEnum = entity.attributes().objectEnumerator(); attributesEnum.hasMoreElements();) {
        EOAttribute attribute = (EOAttribute) attributesEnum.nextElement();
        NSDictionary attributeUserInfo = attribute.userInfo();
        if (attributeUserInfo != null) {
          String constantClassName = (String)attributeUserInfo.objectForKey("ERXConstantClassName");
          if (constantClassName != null) {
            boolean constantClassFound = true;
            try {
              Class.forName(constantClassName);
            }
View Full Code Here

      if(_prototypeModelNames.containsObject(model.name())) {
        log.debug("Skipping prototype model " + model.name());
        continue;
      }
      NSDictionary userInfo = model.userInfo();
      Boolean prototypesFixedBoolean = (Boolean) userInfo.objectForKey(prototypesFixedKey);
      if (prototypesFixedBoolean == null || !prototypesFixedBoolean.booleanValue()) {
        boolean prototypesFixed = false;
        String prototypeEntityName = prototypeEntityNameForModel(model);
        if (prototypeEntityName == null) {
          prototypesFixed = true;
View Full Code Here

     * @param keyPath to compute significant keys for.
     * @return array of context keys this assignment depends upon.
     */
    public NSArray dependentKeys(String keyPath) {
        NSDictionary booleanConditions = (NSDictionary)value();
        return new NSArray(booleanConditions.objectForKey("conditionKey"));
    }

    @Override
    public Object fireNow(D2WContext c) {
        NSDictionary booleanConditions = (NSDictionary)value();
View Full Code Here

    @Override
    public Object fireNow(D2WContext c) {
        NSDictionary booleanConditions = (NSDictionary)value();
        if (log.isDebugEnabled())
            log.debug("Resolving delayed fire for boolean conditions: " + booleanConditions);
        return ERXValueUtilities.booleanValue(c.valueForKeyPath((String)booleanConditions.objectForKey("conditionKey"))) ?
            booleanConditions.objectForKey("trueValue") : booleanConditions.objectForKey("falseValue");

    }
}
View Full Code Here

    public Object fireNow(D2WContext c) {
        NSDictionary booleanConditions = (NSDictionary)value();
        if (log.isDebugEnabled())
            log.debug("Resolving delayed fire for boolean conditions: " + booleanConditions);
        return ERXValueUtilities.booleanValue(c.valueForKeyPath((String)booleanConditions.objectForKey("conditionKey"))) ?
            booleanConditions.objectForKey("trueValue") : booleanConditions.objectForKey("falseValue");

    }
}
View Full Code Here

    public Object fireNow(D2WContext c) {
        NSDictionary booleanConditions = (NSDictionary)value();
        if (log.isDebugEnabled())
            log.debug("Resolving delayed fire for boolean conditions: " + booleanConditions);
        return ERXValueUtilities.booleanValue(c.valueForKeyPath((String)booleanConditions.objectForKey("conditionKey"))) ?
            booleanConditions.objectForKey("trueValue") : booleanConditions.objectForKey("falseValue");

    }
}
View Full Code Here

      return plist;
    if (!(plist instanceof NSDictionary))
      return null;
    NSDictionary pl = (NSDictionary) plist;
    String string;
    if ((string = (String) pl.objectForKey("name")) != null)
      return entity()._parsePropertyName(string);
    if ((string = (String) pl.objectForKey("path")) != null)
      return entity()._parsePropertyName(string);
    NSArray array;
    if ((array = (NSArray) pl.objectForKey("array")) == null)
View Full Code Here

      return null;
    NSDictionary pl = (NSDictionary) plist;
    String string;
    if ((string = (String) pl.objectForKey("name")) != null)
      return entity()._parsePropertyName(string);
    if ((string = (String) pl.objectForKey("path")) != null)
      return entity()._parsePropertyName(string);
    NSArray array;
    if ((array = (NSArray) pl.objectForKey("array")) == null)
      return null;
    _EOExpressionArray result = new _EOExpressionArray();
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.