com.webobjects.eocontrol
Class EOKeyValueCodingAdditions.DefaultImplementation
java.lang.Object
|
+--com.webobjects.eocontrol.EOKeyValueCodingAdditions.DefaultImplementation
- Enclosing class:
- EOKeyValueCodingAdditions
- public static class EOKeyValueCodingAdditions.DefaultImplementation
- extends Object
The EOKeyValueCodingAdditions.DefaultImplementation class provides the
WebObjects default implementation of the EOKeyValueCodingAdditions interface.
- 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)
- Sets properties of
object
with values from dictionary
,
using its keys to identify the properties. The default implementation invokes
takeValueForKey
(or the corresponding
NSKeyValueCoding.DefaultImplementation method) for each key-value pair, substituting
null
for NSKeyValueCoding.NullValue values in the dictionary.
- Parameters:
dictionary
- the key-value pairs to be set- See Also:
NSKeyValueCoding.takeValueForKey(Object, String)
valuesForKeys
public static NSDictionary valuesForKeys(Object object,
NSArray keys)
- Returns a dictionary containing the property values of
object
identified by each of keys
. The default implementation invokes
valueForKey
(or the corresponding
NSKeyValueCoding.DefaultImplementation method) for each key in
keys
, substituting NSKeyValueCoding.NullValue in the returned
dictionary for returned null
values.
- Parameters:
keys
- the array of keys whose values are to be retrieved- Returns:
- a dictionary containing the property values identified by each of keys
- See Also:
NSKeyValueCoding.valueForKey(String)
Copyright © 2002 Apple Computer, Inc.