WebObjects 5.2.3

com.webobjects.eocontrol
Class EOKeyValueCoding.Utility

java.lang.Object
  extended bycom.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

Method Summary
static Object storedValueForKey(Object object, String key)
          If object implements EOKeyValueCoding, this method invokes storedValueForKey on object.
static void takeStoredValueForKey(Object object, Object value, String key)
          If object implements EOKeyValueCoding, this method invokes takeStoredValueForKey on object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 operate
key - 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 operate
value - the new value for the key property
key - the property of object to set
See Also:
EOKeyValueCoding.takeStoredValueForKey(Object, String), EOKeyValueCoding.DefaultImplementation

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.