Package com.webobjects.foundation

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


      NSMutableDictionary mutableUserInfo;
      if (userInfo == null) {
        mutableUserInfo = new NSMutableDictionary();
      }
      else {
        mutableUserInfo = userInfo.mutableClone();
      }
      mutableUserInfo.setObjectForKey(_defaultValue, "default");
      attribute.setUserInfo(mutableUserInfo);
    }
View Full Code Here


      NSMutableDictionary<String, NSDictionary> typeInfo = ((NSDictionary<String, NSDictionary>)mutableInfo.objectForKey("typeInfo")).mutableClone();
      NSDictionary textTypeInfo = typeInfo.objectForKey("TEXT");
      if(textTypeInfo != null) {
        Object rawCreateParams = textTypeInfo.objectForKey("createParams");
        if(!rawCreateParams.equals("1")) {
          NSMutableDictionary newRawTypeInfo = textTypeInfo.mutableClone();
          newRawTypeInfo.setObjectForKey("1", "createParams");
          typeInfo.setObjectForKey(newRawTypeInfo, "RAW");
        }
      }
      JDBCPlugIn._takeValueForKeyPath(typeInfo, "0", "BLOB", "createParams");
View Full Code Here

        response.setUserInfo(userInfo);
      }
     
      NSMutableArray usedHotKeys = (NSMutableArray)userInfo.objectForKey(ERXAccessibleSubmitButton.class.getName());
      if (usedHotKeys == null) {
        userInfo = userInfo.mutableClone();
        usedHotKeys = new NSMutableArray();
        ((NSMutableDictionary)userInfo).setObjectForKey(usedHotKeys, ERXAccessibleSubmitButton.class.getName());
        response.setUserInfo(userInfo);
      }
      return (NSMutableArray)userInfo.objectForKey(ERXAccessibleSubmitButton.class.getName());
View Full Code Here

    NSMutableDictionary options = _bindings;
    WOAssociation optionsBinding = (WOAssociation) _bindings.objectForKey("options");
    if (optionsBinding != null) {
      NSDictionary passedInOptions = (NSDictionary) optionsBinding.valueInComponent(context.component());
      if (passedInOptions != null) {
        options = passedInOptions.mutableClone();
        options.addEntriesFromDictionary(_bindings);
      }
    }
    AjaxOptions._appendToResponse(options, response, context);
    if (_children != null) {
View Full Code Here

        NSArray models = databaseContext.database().models();
        for(Enumeration e = models.objectEnumerator(); e.hasMoreElements(); ) {
          EOModel model = (EOModel)e.nextElement();
          NSDictionary connectionDictionary = model.connectionDictionary();
          if (connectionDictionary != null) {
            NSMutableDictionary mutableConnectionDictionary = connectionDictionary.mutableClone();
            mutableConnectionDictionary.setObjectForKey("<password deleted for log>", "password");
            connectionDictionary = mutableConnectionDictionary;
          }
          log.info(model.name() + ": " + (connectionDictionary == null ? "No connection dictionary!" : connectionDictionary.toString()));
        }
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.