WebObjects 5.2.3

com.webobjects.foundation
Class NSKeyValueCodingAdditions.Utility

java.lang.Object
  extended bycom.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 object is an NSKeyValueCodingAdditions, invokes takeValueForKeyPath on object; otherwise invokes NSKeyValueCodingAdditions.DefaultImplementation's takeValueForKeyPath method with object as the object on which to operate.
static Object valueForKeyPath(Object object, String keyPath)
          If object is an NSKeyValueCodingAdditions, invokes valueForKeyPath on object; otherwise invokes NSKeyValueCodingAdditions.DefaultImplementation's valueForKeyPath method with object as the object on which to operate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

takeValueForKeyPath

public static void takeValueForKeyPath(Object object,
                                       Object value,
                                       String keyPath)
If object is an NSKeyValueCodingAdditions, invokes takeValueForKeyPath on object; otherwise invokes NSKeyValueCodingAdditions.DefaultImplementation's takeValueForKeyPath method with object as 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 object is an NSKeyValueCodingAdditions, invokes valueForKeyPath on object; otherwise invokes NSKeyValueCodingAdditions.DefaultImplementation's valueForKeyPath method with object as 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

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

Copyright © 2004 Apple Computer, Inc.