Examples of objectForKey()


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

      URL url = ERXFileUtilities.pathURLForResourceNamed(currentFilename, currentFramework, languageArray);
      if (url != null) {
        NSDictionary<String, Object> dict = (NSDictionary<String, Object>)ERXFileUtilities.readPropertyListFromFileInFramework(currentFilename, currentFramework, languageArray);
        allKeys.addObjectsFromArray(dict.allKeys());
        for (String key : dict.allKeys()) {
          NSMutableDictionary<String, Object> entry = (NSMutableDictionary<String, Object>) dataDictionary.objectForKey(key);
          if(entry == null) {
            entry = new NSMutableDictionary<String, Object>();
            entry.setObjectForKey(key, "key");
            dataDictionary.setObjectForKey(entry, key);
            data.addObject(entry);
View Full Code Here

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

          entry.setObjectForKey(dict.objectForKey(key), language);
        }
      }
    }
      for (String key : allKeys) {
      NSMutableDictionary<String, Object> entry = (NSMutableDictionary<String, Object>) dataDictionary.objectForKey(key);
      for (String language : availableLanguages()) {
        if (entry.objectForKey(language) == null) {
          entry.setObjectForKey(UNSET, language);
        }
      }
View Full Code Here

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

            String key = (String)e.nextElement();
            Object o = _context.valueForKey(key);
            if(o != null)
                dictionary.setObjectForKey(o, key);
        }
        String path = "components." + dictionary.objectForKey("componentName") + ".editors";
        NSArray keys = (NSArray)_allKeys.valueForKeyPath(path);
        if(keys != null) {
            for(Enumeration e = keys.objectEnumerator(); e.hasMoreElements(); ) {
                String key = (String)e.nextElement();
                Object o = _context.valueForKey(key);
View Full Code Here

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

                Object o = _context.valueForKey(key);
                if(o != null)
                    dictionary.setObjectForKey(o, key);
            }
        }
        path = "components." + dictionary.objectForKey("componentName") + ".supports";
        keys = (NSArray)_allKeys.valueForKeyPath(path);
        if(keys != null) {
            for(Enumeration e = keys.objectEnumerator(); e.hasMoreElements(); ) {
                String key = (String)e.nextElement();
                Object o = _context.valueForKey(key);
View Full Code Here

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

  }

  /** @return value for KEY_PATH under MANDATORY_SORT, the path of the mandatory sort */
  public String manadatorySortKeyPath() {
    NSMutableDictionary manadatorySortDictionary = (NSMutableDictionary) configurationData().objectForKey(MANDATORY_SORT);
    return (String) manadatorySortDictionary.objectForKey(KEY_PATH);
  }
 
  /**
   * This method is called when the AjaxUpdateContainer is about to update. It
   * invokes the willUpdate action binding, if set, and discards the result.
View Full Code Here

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

  /**
   * @return the configurationData
   */
  public NSMutableDictionary configurationData() {
    NSMutableDictionary configurationData = (NSMutableDictionary) valueForBinding(CONFIGURATION_DATA_BINDING);
    if (configurationData.objectForKey(CONFIGURATION_UPDATED) != null)
    {
      clearCachedConfiguration();
      configurationData.removeObjectForKey(CONFIGURATION_UPDATED);
    }

View Full Code Here

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

  public static HighlightMetadata highlightMetadataForObject(Object obj) {
    HighlightMetadata metadata = null;
    if (obj != null) {
      NSMutableDictionary highlightedObjects = (NSMutableDictionary) ERXWOContext.contextDictionary().valueForKey(AjaxHighlight.HIGHLIGHTED_KEY);
      if (highlightedObjects != null) {
        metadata = (HighlightMetadata) highlightedObjects.objectForKey(highlightedValue(obj));
      }
    }
    return metadata;
  }
View Full Code Here

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

        boolean isLocalSharedList = hasBinding("isLocalSharedList") && ((Boolean) valueForBinding("isLocalSharedList")).booleanValue();
        String listJS = null;
        if (isLocalSharedList) {
          String varName = (String) valueForBinding("localSharedVarName");
          NSMutableDictionary userInfo = ERXWOContext.contextDictionary();
          if (userInfo.objectForKey(varName) == null) {
            String ljs = listeJS();
            AjaxUtils.addScriptCodeInHead(res, ctx, "var " + varName + " = " + ljs + ";");
            userInfo.setObjectForKey(ljs, varName);
          }
          listJS = varName;
View Full Code Here

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

        String method = null;
        String label = null;
             NSMutableDictionary entry = new NSMutableDictionary();
            if (o instanceof NSDictionary) {
              entry.addEntriesFromDictionary((NSDictionary) o);
              method = (String) entry.objectForKey(BRANCH_NAME);
              label = (String) entry.objectForKey(BRANCH_LABEL);
            } else if (o instanceof String) {
                    method = (String) o;
                    entry.setObjectForKey(method, BRANCH_NAME);
                }
View Full Code Here

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

        String label = null;
             NSMutableDictionary entry = new NSMutableDictionary();
            if (o instanceof NSDictionary) {
              entry.addEntriesFromDictionary((NSDictionary) o);
              method = (String) entry.objectForKey(BRANCH_NAME);
              label = (String) entry.objectForKey(BRANCH_LABEL);
            } else if (o instanceof String) {
                    method = (String) o;
                    entry.setObjectForKey(method, BRANCH_NAME);
                }
                if (label == null) {
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.