com.webobjects.eocontrol
Class EOKeyValueCoding.Utility
java.lang.Object
|
+--com.webobjects.eocontrol.EOKeyValueCoding.Utility
- Enclosing class:
- EOKeyValueCoding
- public static class EOKeyValueCoding.Utility
- extends Object
The EOKeyValueCoding.Utility class is a convenience that allows
you to access the properties of EOKeyValueCoding objects and
non-EOKeyValueCoding objects using the same code.
- See Also:
EOKeyValueCoding
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
storedValueForKey
public static Object storedValueForKey(Object object,
String key)
- If
object
implements EOKeyValueCoding, this method invokes
storedValueForKey
on object
. Otherwise it invokes
EOKeyValueCoding.DefaultImplementation's storedValueForKey
method with object
as the object on which to operate.
- Parameters:
object
- the object on which to operatekey
- the property of object
to retrieve- Returns:
- the result of either
object.storedValueForKey(key)
or
EOKeyValueCoding.DefaultImplementation.storedValueForKey(object, key)
- See Also:
EOKeyValueCoding.storedValueForKey(String)
,
EOKeyValueCoding.DefaultImplementation
takeStoredValueForKey
public static void takeStoredValueForKey(Object object,
Object value,
String key)
- If
object
implements EOKeyValueCoding, this method invokes
takeStoredValueForKey
on object
. Otherwise it
invokes EOKeyValueCoding.DefaultImplementation's
takeStoredValueForKey
method with object
as the
object on which to operate.
- Parameters:
object
- the object on which to operatevalue
- the new value for the key
propertykey
- the property of object
to set- See Also:
EOKeyValueCoding.takeStoredValueForKey(Object, String)
,
EOKeyValueCoding.DefaultImplementation
Copyright © 2003 Apple Computer, Inc.