Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSKeyValueCoding.valueForKey()


  protected boolean isKeyPathRequested(String keyPath) {
    if (_prefetchingKeyPaths == null) {
      NSMutableSet<String> prefetchingKeyPaths = new NSMutableSet<String>();
      NSKeyValueCoding options = options();
      if (options != null) {
        String prefetchingKeyPathsStr = (String) options.valueForKey("prefetchingKeyPaths");
        if (prefetchingKeyPathsStr != null) {
          for (String prefetchingKeyPath : prefetchingKeyPathsStr.split(",")) {
            prefetchingKeyPaths.addObject(prefetchingKeyPath);
          }
        }
View Full Code Here


     */
    protected Object userPreferencesValueForKey(String key) {
        Object result = null;
        NSKeyValueCoding userPreferences = (NSKeyValueCoding) d2wContext().valueForKey("userPreferences");
        if (userPreferences != null) {
            result = userPreferences.valueForKey(key);
        }
        return result;
    }

    /**
 
View Full Code Here

   */
  public String plurifiedString(String name, int count) {
    if (name != null) {
      NSKeyValueCoding exceptions = (NSKeyValueCoding) valueForKey(KEY_LOCALIZER_EXCEPTIONS);
      if (exceptions != null) {
        String exception = (String) exceptions.valueForKey(name + "." + count);
        if (exception == null) {
          exception = (String) exceptions.valueForKey(name);
        }
        if (exception != null) {
          return exception;
View Full Code Here

    if (name != null) {
      NSKeyValueCoding exceptions = (NSKeyValueCoding) valueForKey(KEY_LOCALIZER_EXCEPTIONS);
      if (exceptions != null) {
        String exception = (String) exceptions.valueForKey(name + "." + count);
        if (exception == null) {
          exception = (String) exceptions.valueForKey(name);
        }
        if (exception != null) {
          return exception;
        }
      }
View Full Code Here

   */
  public String singularifiedString(String value) {
    if (value != null) {
      NSKeyValueCoding exceptions = (NSKeyValueCoding) valueForKey(KEY_LOCALIZER_EXCEPTIONS);
      if (exceptions != null) {
        String exception = (String) exceptions.valueForKey(value + ".singular");
        if (exception != null) {
          return exception;
        }
      }
    }
View Full Code Here

      NSKeyValueCoding userPreferences = userPreferences(session);
     
      EOKeyValueArchiving.Support.setSupportForClass(newEOKVArchivingTimestampSupport, NSTimestamp._CLASS);
  
      try {
          savedQueries = (NSArray) userPreferences.valueForKey(userPreferenceNameForPageConfiguration(pageConfigurationName));
      } finally {
          EOKeyValueArchiving.Support.setSupportForClass(originalEOKVArchivingTimestampSupport, NSTimestamp._CLASS);
      }

      if (log.isDebugEnabled())
View Full Code Here

        public void handleSortOrderingChange(NSNotification n) { handleChange("sortOrdering", n); }

        public void handleChange(String prefName, NSNotification n) {
            if (ERCoreBusinessLogic.actor() != null) {
                NSKeyValueCoding context=(NSKeyValueCoding)n.userInfo().objectForKey("d2wContext");
                if (context!=null && context.valueForKey("pageConfiguration") != null) {
                    userPreferences().takeValueForKey(n.object(),
                                                      prefName+"."+(String)context.valueForKey("pageConfiguration"));
                }
            }
        }
View Full Code Here

        public void handleChange(String prefName, NSNotification n) {
            if (ERCoreBusinessLogic.actor() != null) {
                NSKeyValueCoding context=(NSKeyValueCoding)n.userInfo().objectForKey("d2wContext");
                if (context!=null && context.valueForKey("pageConfiguration") != null) {
                    userPreferences().takeValueForKey(n.object(),
                                                      prefName+"."+(String)context.valueForKey("pageConfiguration"));
                }
            }
        }
    }
}
View Full Code Here

        if (value == NSKeyValueCoding.NullValue) {
          value = null;
        }
       
        if (keyValueCodingObject != null) {
          if (ObjectUtils.notEqual(value, keyValueCodingObject.valueForKey(key))) {
            keyValueCodingObject.takeValueForKey(value, key);
          }
        }
        else {
          if (ObjectUtils.notEqual(value, NSKeyValueCoding.DefaultImplementation.valueForKey(object, key))) {
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.