com.webobjects.foundation
Class  NSKeyValueCodingAdditions.Utility
java.lang.Object
  |
  +--com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
- Enclosing class: 
- NSKeyValueCodingAdditions
- public static class NSKeyValueCodingAdditions.Utility- extends Object
The NSKeyValueCodingAdditions.Utility class is a convenience
 that allows one to access the properties of NSKeyValueCodingAdditions
 objects and non-NSKeyValueCodingAdditions objects using the
 same code.
- See Also: 
- NSKeyValueCodingAdditions,- NSKeyValueCodingAdditions.DefaultImplementation
| Method Summary | 
| static void | takeValueForKeyPath(Object object,
                    Object value,
                    String keyPath)If
 objectis an NSKeyValueCodingAdditions, invokestakeValueForKeyPathonobject; otherwise invokes
 NSKeyValueCodingAdditions.DefaultImplementation'stakeValueForKeyPathmethod withobjectas the object on which to operate. | 
| static Object | valueForKeyPath(Object object,
                String keyPath)If
 objectis an NSKeyValueCodingAdditions, invokesvalueForKeyPathonobject; otherwise invokes
 NSKeyValueCodingAdditions.DefaultImplementation'svalueForKeyPathmethod withobjectas the object on which to operate. | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
takeValueForKeyPath
public static void takeValueForKeyPath(Object object,
                                       Object value,
                                       String keyPath)
- If objectis an NSKeyValueCodingAdditions, invokestakeValueForKeyPathonobject; otherwise invokes
 NSKeyValueCodingAdditions.DefaultImplementation'stakeValueForKeyPathmethod withobjectas the object on which to operate.
- 
- Parameters:
- object- the object on which to operate
- value- object's property identified by keypath is set to this
- keyPath- identifies the property of an object
- See Also: 
- NSKeyValueCodingAdditions.takeValueForKeyPath(java.lang.Object, java.lang.String),- NSKeyValueCodingAdditions.DefaultImplementation
 
valueForKeyPath
public static Object valueForKeyPath(Object object,
                                     String keyPath)
- If objectis an NSKeyValueCodingAdditions, invokesvalueForKeyPathonobject; otherwise invokes
 NSKeyValueCodingAdditions.DefaultImplementation'svalueForKeyPathmethod withobjectas the object on which to operate.
- 
- Parameters:
- object- the object on which to operate
- keyPath- identifies the property of an object
- Returns:
- the value for the derived property identified by keyPath
- See Also: 
- NSKeyValueCodingAdditions.valueForKeyPath(java.lang.String),- NSKeyValueCodingAdditions.DefaultImplementation
 
Copyright © 2003 Apple Computer, Inc.