Package com.webobjects.foundation

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


  }

  @SuppressWarnings("unchecked")
  protected static NSDictionary processAssociations(NSDictionary associations, WOElement template) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    WOAssociation classAssociation = (WOAssociation) mutableAssociations.objectForKey("class");
    mutableAssociations.setObjectForKey(new ERXProxyAssociation(classAssociation, "button blueButton  ", null, true), "class");
    return mutableAssociations;
  }

}
View Full Code Here


  @SuppressWarnings("unchecked")
  protected static NSDictionary processAssociations(NSDictionary associations, WOElement template) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    mutableAssociations.setObjectForKey(new WOConstantValueAssociation("backButton"), "id");
    WOAssociation classAssociation = (WOAssociation) mutableAssociations.objectForKey("class");
    mutableAssociations.setObjectForKey(new ERXProxyAssociation(classAssociation, "button transitionPrevious ", null, true), "class");
    if (!associations.containsKey("string") && template == null) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("Back"), "string");
    }
    return mutableAssociations;
View Full Code Here

  }

  @SuppressWarnings("unchecked")
  protected static NSDictionary processAssociations(NSDictionary associations, WOElement template) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    WOAssociation classAssociation = (WOAssociation) mutableAssociations.objectForKey("class");
    mutableAssociations.setObjectForKey(new ERXProxyAssociation(classAssociation, "transitionNext", null, true), "class");
    return mutableAssociations;
  }

}
View Full Code Here

  }

  @SuppressWarnings("unchecked")
  protected static NSDictionary processAssociations(NSDictionary associations, WOElement template) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    WOAssociation classAssociation = (WOAssociation) mutableAssociations.objectForKey("class");
    mutableAssociations.setObjectForKey(new ERXProxyAssociation(classAssociation, "transitionPrevious", null, true), "class");
    return mutableAssociations;
  }

}
View Full Code Here

            errorDict = new NSMutableDictionary();
            userInfo.setObjectForKey(errorDict, GSVEngine.ERROR_DICTIONARY_KEY);
        }
       
        //get or create the gsv error list
        errorList = (NSMutableArray)errorDict.objectForKey(key);
        if( errorList == null ){
            errorList = new NSMutableArray();
            errorDict.setObjectForKey(errorList, key);
        }
       
View Full Code Here

    // We want to clean up our connection dictionaries so all our models match.  When EOF
    // compares connection dictionaries, undefined plugin is not the same as plugin = ""
    // even though it semantically is the same.  So we are normalizing our connection
    // dictionaries here by removing blank keys that we know about.
    String pluginCheck = (String)newConnectionDictionary.objectForKey("plugin");
    if (pluginCheck != null && pluginCheck.length() == 0){
      newConnectionDictionary.removeObjectForKey("plugin");
    }
    String driverCheck = (String)newConnectionDictionary.objectForKey("driver");
    if (driverCheck != null && driverCheck.length() == 0){
View Full Code Here

    // dictionaries here by removing blank keys that we know about.
    String pluginCheck = (String)newConnectionDictionary.objectForKey("plugin");
    if (pluginCheck != null && pluginCheck.length() == 0){
      newConnectionDictionary.removeObjectForKey("plugin");
    }
    String driverCheck = (String)newConnectionDictionary.objectForKey("driver");
    if (driverCheck != null && driverCheck.length() == 0){
      newConnectionDictionary.removeObjectForKey("driver");
    }

    model.setConnectionDictionary(newConnectionDictionary);
View Full Code Here

    Enumeration modelsEnum = model.modelGroup().models().objectEnumerator();
    while (modelsEnum.hasMoreElements()) {
      EOModel otherModel = (EOModel)modelsEnum.nextElement();
      if (otherModel != model) {
        NSDictionary otherConnectionDictionary = otherModel.connectionDictionary();
        if (otherConnectionDictionary != null && ObjectUtils.equals(newConnectionDictionary.objectForKey("adaptorName"), otherConnectionDictionary.objectForKey("adaptorName"))) {
          boolean valuesThatMatterMatch = true;
          for (int keyNum = 0; valuesThatMatterMatch && keyNum < keysThatMatter.length; keyNum ++) {
            String thisValue = (String)newConnectionDictionary.objectForKey(keysThatMatter[keyNum]);
            String otherValue = (String)otherConnectionDictionary.objectForKey(keysThatMatter[keyNum]);
            valuesThatMatterMatch = ERXStringUtilities.stringEqualsString(thisValue, otherValue);
View Full Code Here

      if (otherModel != model) {
        NSDictionary otherConnectionDictionary = otherModel.connectionDictionary();
        if (otherConnectionDictionary != null && ObjectUtils.equals(newConnectionDictionary.objectForKey("adaptorName"), otherConnectionDictionary.objectForKey("adaptorName"))) {
          boolean valuesThatMatterMatch = true;
          for (int keyNum = 0; valuesThatMatterMatch && keyNum < keysThatMatter.length; keyNum ++) {
            String thisValue = (String)newConnectionDictionary.objectForKey(keysThatMatter[keyNum]);
            String otherValue = (String)otherConnectionDictionary.objectForKey(keysThatMatter[keyNum]);
            valuesThatMatterMatch = ERXStringUtilities.stringEqualsString(thisValue, otherValue);
          }
          if (valuesThatMatterMatch && !newConnectionDictionary.equals(otherConnectionDictionary)) {
            if (!isPrototypeModel(model) && !isPrototypeModel(otherModel)) {
View Full Code Here

      fixJNDIDictionary(model);
    }

    if (log.isDebugEnabled() && old != null && !old.equals(model.connectionDictionary()) && model.connectionDictionary() != null) {
      NSMutableDictionary dict = model.connectionDictionary().mutableClone();
      if (dict.objectForKey("password") != null) {
        dict.setObjectForKey("<deleted for log>", "password");
        log.debug("New Connection Dictionary for " + modelName + ": " + dict);
      }
    }
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.