|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eocontrol.EOKeyValueCodingAdditions.DefaultImplementation
The EOKeyValueCodingAdditions.DefaultImplementation class provides the WebObjects default implementation of the EOKeyValueCodingAdditions interface.
EOKeyValueCodingAdditions
Method Summary | |
static void |
takeValuesFromDictionary(Object object,
NSDictionary dictionary)
Sets properties of object with values from dictionary ,
using its keys to identify the properties. |
static void |
takeValuesFromDictionaryWithMapping(Object object,
NSDictionary dictionary,
NSDictionary mapping)
Sets properties of object with values from dictionary , using
its keys and mapping to identify the properties. |
static NSDictionary |
valuesForKeys(Object object,
NSArray keys)
Returns a dictionary containing the property values of object
identified by each of keys . |
static NSDictionary |
valuesForKeysWithMapping(Object object,
NSDictionary mapping)
Returns a dictionary containing the property values of object
identified by each of the key-value pairs in mapping . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void takeValuesFromDictionary(Object object, NSDictionary dictionary)
object
with values from dictionary
,
using its keys to identify the properties. Invokes takeValueForKey
(or the corresponding NSKeyValueCoding.DefaultImplementation method) for each
key-value pair, substituting null
for NSKeyValueCoding.NullValue
values in the dictionary.
object
- the object to operate upondictionary
- the key-value pairs to be setNSKeyValueCoding.takeValueForKey(Object, String)
public static void takeValuesFromDictionaryWithMapping(Object object, NSDictionary dictionary, NSDictionary mapping)
object
with values from dictionary
, using
its keys and mapping
to identify the properties. mapping
associates the keys of dictionary
, which are arbitrary external names
for the properties to be set, with the internal or EOModel names for those properties.
If a key in dictionary
does not have a corresponding entry in mapping
,
the external key (i.e., the key from dictionary
) is used.
Invokes takeValueForKey
(or the corresponding NSKeyValueCoding.DefaultImplementation
method)for each key-value pair of dictionary
, substituting null
for NSKeyValueCoding.NullValue values in the dictionary.
object
- the object to operate upondictionary
- the key-value pairs to be setmapping
- the dictionary that maps arbitrary external names to
internal property namesNSKeyValueCoding.takeValueForKey(Object, String)
public static NSDictionary valuesForKeys(Object object, NSArray keys)
object
identified by each of keys
. Invokes valueForKey
(or the corresponding NSKeyValueCoding.DefaultImplementation method) for
each key in keys
, substituting NSKeyValueCoding.NullValue
in the returned dictionary for returned null
values.
object
- the object to operate uponkeys
- the array of keys whose values are to be retrieved
NSKeyValueCoding.valueForKey(String)
public static NSDictionary valuesForKeysWithMapping(Object object, NSDictionary mapping)
object
identified by each of the key-value pairs in mapping
. The keys
of the mapping
dictionary represent arbitrary external names
for properties of an Enterprise Object and the values are the internal or
EOModel names for these properties. Invokes valueForKey
(or the corresponding NSKeyValueCoding.DefaultImplementation method) for
each value in mapping
, substituting NSKeyValueCoding.NullValue
in the returned dictionary for returned null
values.
object
- the object to operate uponmapping
- the dictionary that maps arbitrary external names to
internal property names
mapping
NSKeyValueCoding.valueForKey(String)
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |