WebObjects 5.2

com.webobjects.foundation
Class NSKeyValueCodingAdditions.DefaultImplementation

java.lang.Object
  |
  +--com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation
Enclosing class:
NSKeyValueCodingAdditions

public static class NSKeyValueCodingAdditions.DefaultImplementation
extends Object

The NSKeyValueCodingAdditions.DefaultImplementation class provides default implementations of the NSKeyValueCodingAdditions interface.

See Also:
NSKeyValueCodingAdditions, NSKeyValueCodingAdditions.Utility

Method Summary
static void takeValueForKeyPath(Object object, Object value, String keyPath)
          Sets object's property identified by keyPath to value.
static Object valueForKeyPath(Object object, String keyPath)
          A key path has the form relationship.property (with one or more relationships).
 
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)
Sets object's property identified by keyPath to value. A key path has the form relationship.property (with one or more relationships). This method gets the destination object for each relationship using valueForKey, and sends the final object a takeValueForKey message with value and property.
Parameters:
object - the object to operate upon
value - the new value for the property identified by keyPath
keyPath - identifies the object's property
See Also:
NSKeyValueCodingAdditions.takeValueForKeyPath(java.lang.Object, java.lang.String), NSKeyValueCoding.takeValueForKey(java.lang.Object, java.lang.String)

valueForKeyPath

public static Object valueForKeyPath(Object object,
                                     String keyPath)
A key path has the form relationship.property (with one or more relationships). This method gets the destination object for each relationship using valueForKey, and returns the result of a valueForKey message to the final object.
Parameters:
object - the final object whose property is to be set
keyPath - identifies the derived property of the object
Returns:
object's value for the derived property identified by keyPath
See Also:
NSKeyValueCodingAdditions.valueForKeyPath(java.lang.String), NSKeyValueCoding.valueForKey(java.lang.String)

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.