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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 operatedictionary - 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 operatedictionary - the key-value pairs to be setmapping - 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 operatekeys - 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 operatemapping - 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
Copyright © 2003 Apple Computer, Inc.