WebObjects 5.2

com.webobjects.eocontrol
Class EOKeyValueCodingAdditions.Utility

java.lang.Object
  |
  +--com.webobjects.eocontrol.EOKeyValueCodingAdditions.Utility
Enclosing class:
EOKeyValueCodingAdditions

public static class EOKeyValueCodingAdditions.Utility
extends Object

The EOKeyValueCodingAdditions.Utility class is a convenience that allows you to access the properties of EOKeyValueCodingAdditions objects and non-EOKeyValueCodingAdditions objects using the same code.

See Also:
EOKeyValueCodingAdditions

Method Summary
static void takeValuesFromDictionary(Object object, NSDictionary dictionary)
          If object implements EOKeyValueCodingAdditions, this method invokes takeValuesFromDictionary on object.
static void takeValuesFromDictionaryWithMapping(Object object, NSDictionary dictionary, NSDictionary mapping)
          If object implements EOKeyValueCodingAdditions, this method invokes takeValuesFromDictionaryWithMapping on object.
static NSDictionary valuesForKeys(Object object, NSArray keys)
          If object implements EOKeyValueCodingAdditions, this method invokes valuesForKeys on object.
static NSDictionary valuesForKeysWithMapping(Object object, NSDictionary mapping)
          If object implements EOKeyValueCodingAdditions, this method invokes valuesForKeysWithMapping on object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

takeValuesFromDictionary

public static void takeValuesFromDictionary(Object object,
                                            NSDictionary dictionary)
If object implements EOKeyValueCodingAdditions, this method invokes takeValuesFromDictionary on object. Otherwise it invokes EOKeyValueCodingAdditions.DefaultImplementation's takeValuesFromDictionary method with object as the object on which to operate.
Parameters:
object - the object on which to operate
dictionary - the key-value pairs to be set
See Also:
EOKeyValueCodingAdditions.takeValuesFromDictionary(NSDictionary), EOKeyValueCodingAdditions.DefaultImplementation

takeValuesFromDictionaryWithMapping

public static void takeValuesFromDictionaryWithMapping(Object object,
                                                       NSDictionary dictionary,
                                                       NSDictionary mapping)
If object implements EOKeyValueCodingAdditions, this method invokes takeValuesFromDictionaryWithMapping on object. Otherwise it invokes EOKeyValueCodingAdditions.DefaultImplementation's takeValuesFromDictionaryWithMapping method with object as the object on which to operate.
Parameters:
object - the object on which to operate
dictionary - the key-value pairs to be set
mapping - the dictionary that maps arbitrary external names to internal property names
See Also:
EOKeyValueCodingAdditions.takeValuesFromDictionary(NSDictionary), EOKeyValueCodingAdditions.DefaultImplementation

valuesForKeys

public static NSDictionary valuesForKeys(Object object,
                                         NSArray keys)
If object implements EOKeyValueCodingAdditions, this method invokes valuesForKeys on object. Otherwise it invokes EOKeyValueCodingAdditions.DefaultImplementation's valuesForKeys method with object as the object on which to operate.
Parameters:
object - the object on which to operate
keys - the array of keys whose values are to be retrieved
Returns:
the result of either object.valuesForKeys(keys) or EOKeyValueCodingAdditions.DefaultImplementation.valuesForKeys(object, keys)
See Also:
EOKeyValueCodingAdditions.valuesForKeys(NSArray), EOKeyValueCodingAdditions.DefaultImplementation

valuesForKeysWithMapping

public static NSDictionary valuesForKeysWithMapping(Object object,
                                                    NSDictionary mapping)
If object implements EOKeyValueCodingAdditions, this method invokes valuesForKeysWithMapping on object. Otherwise it invokes EOKeyValueCodingAdditions.DefaultImplementation's valuesForKeysWithMapping method with object as the object on which to operate.
Parameters:
object - the object on which to operate
mapping - the dictionary that maps arbitrary external names to internal property names
Returns:
the result of either object.valuesForKeysWithMapping(mapping) or EOKeyValueCodingAdditions.DefaultImplementation.valuesForKeysWithMapping(object, mapping)
See Also:
EOKeyValueCodingAdditions.valuesForKeysWithMapping(NSDictionary), EOKeyValueCodingAdditions.DefaultImplementation

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.