Examples of removeObjectForKey()


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

 
  public static NSDictionary removeDefaultOptions(NSDictionary options) {
    // PROTOTYPE OPTIONS
    NSMutableDictionary mutableOptions = options.mutableClone();
    if ("'get'".equals(mutableOptions.objectForKey("method"))) {
      mutableOptions.removeObjectForKey("method");
    }
    if ("true".equals(mutableOptions.objectForKey("evalScripts"))) {
      mutableOptions.removeObjectForKey("evalScripts");
    }
    if ("true".equals(mutableOptions.objectForKey("async"))) {
View Full Code Here

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

    NSMutableDictionary mutableOptions = options.mutableClone();
    if ("'get'".equals(mutableOptions.objectForKey("method"))) {
      mutableOptions.removeObjectForKey("method");
    }
    if ("true".equals(mutableOptions.objectForKey("evalScripts"))) {
      mutableOptions.removeObjectForKey("evalScripts");
    }
    if ("true".equals(mutableOptions.objectForKey("async"))) {
      mutableOptions.removeObjectForKey("async");
    }
    return mutableOptions;
View Full Code Here

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

    }
    if ("true".equals(mutableOptions.objectForKey("evalScripts"))) {
      mutableOptions.removeObjectForKey("evalScripts");
    }
    if ("true".equals(mutableOptions.objectForKey("async"))) {
      mutableOptions.removeObjectForKey("async");
    }
    return mutableOptions;
 
 
View Full Code Here

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

        if(value != null) {
            queryDict.setObjectForKey(value, key);
            if(operator != null) {
                operatorDict.setObjectForKey(operator, key);
            } else {
                operatorDict.removeObjectForKey(key);
            }
        } else {
            queryDict.removeObjectForKey(key);
            operatorDict.removeObjectForKey(key);
        }
View Full Code Here

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

            } else {
                operatorDict.removeObjectForKey(key);
            }
        } else {
            queryDict.removeObjectForKey(key);
            operatorDict.removeObjectForKey(key);
        }
    }

    public void setCancelDelegate(NextPageDelegate cancelDelegate) {
        // FIXME not implemented!
View Full Code Here

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

      if (id == null && appendComponentIdentifier()) {
        NSMutableDictionary dict = ERXWOContext.contextDictionary();
        String componentIdentifier = (String) dict.objectForKey("componentIdentifier");
        if (componentIdentifier != null) {
          response._appendTagAttributeAndValue("id", componentIdentifier, true);
          dict.removeObjectForKey("componentIdentifier");
        }
      }
    }

    public static boolean appendComponentIdentifier() {
View Full Code Here

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

    else if (jdbcInfo != null) {
      NSDictionary d = (NSDictionary) NSPropertyListSerialization.propertyListFromString(jdbcInfo);
      if (d != null)
        newConnectionDictionary.setObjectForKey(d, "jdbc2Info");
      else
        newConnectionDictionary.removeObjectForKey("jdbc2Info");
    }
    if (plugin != null) {
      newConnectionDictionary.setObjectForKey(plugin, "plugin");
    }
View Full Code Here

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

      ERXModelGroup.log.warn("The EOModel '" + model.name() + "' has an empty connection dictionary.");
    }
   
    String removeJdbc2Info = getProperty(aModelName + ".removeJdbc2Info", "dbRemoveJdbc2InfoGLOBAL", "true");
    if (ERXValueUtilities.booleanValue(removeJdbc2Info)) {
      newConnectionDictionary.removeObjectForKey("jdbc2Info");
    }

    // 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
View Full Code Here

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

    // 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){
      newConnectionDictionary.removeObjectForKey("driver");
    }
View Full Code Here

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

    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);

    // we want to be a bit more aggressive here
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.