WebObjects 5.4.2

com.webobjects.foundation
Class NSKeyValueCodingAdditions.Utility

java.lang.Object
  extended by com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
Enclosing interface:
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

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

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

Last updated June 2008

Copyright © 2000-2008 Apple Inc.