net.wotonomy.foundation
Interface NSKeyValueCodingAdditions

All Superinterfaces:
NSKeyValueCoding

public interface NSKeyValueCodingAdditions
extends NSKeyValueCoding

NSKeyValueCodingAdditions defines an interface for classes that need to have more control over the wotonomy's bulk property copying and cloning facilities.

Version:
$Revision: 893 $
Author:
michael@mpowers.net, $Author: cgruber $

Nested Class Summary
static class NSKeyValueCodingAdditions.DefaultImplementation
          Provides a reflection-based implementation for classes that don't implement NSKeyValueCodingAdditions.
static class NSKeyValueCodingAdditions.Utility
          Static utility methods that call the appropriate method if the object implements NSKeyValueCodingAdditions, otherwise calls the method on DefaultImplementation.
 
Nested classes/interfaces inherited from interface net.wotonomy.foundation.NSKeyValueCoding
NSKeyValueCoding.Null
 
Field Summary
 
Fields inherited from interface net.wotonomy.foundation.NSKeyValueCoding
NullValue
 
Method Summary
 void takeValueForKeyPath(java.lang.Object aValue, java.lang.String aKeyPath)
          Sets the value for the specified key path, which is a series of keys delimited by ".", for example: "createTime.year.length".
 void takeValuesFromDictionary(java.util.Map aMap)
          Takes the keys from the specified map as properties and applies the corresponding values, each of which might be set by calling takeValueForKey.
 java.lang.Object valueForKeyPath(java.lang.String aKeyPath)
          Returns the value for the specified key path, which is a series of keys delimited by ".", for example: "createTime.year.length".
 NSDictionary valuesForKeys(java.util.List aKeyList)
          Returns a Map of the specified keys to their values, each of which might be obtained by calling valueForKey.
 
Methods inherited from interface net.wotonomy.foundation.NSKeyValueCoding
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, storedValueForKey, takeStoredValueForKey, takeValueForKey, unableToSetNullForKey, valueForKey
 

Method Detail

valueForKeyPath

java.lang.Object valueForKeyPath(java.lang.String aKeyPath)
Returns the value for the specified key path, which is a series of keys delimited by ".", for example: "createTime.year.length".


takeValueForKeyPath

void takeValueForKeyPath(java.lang.Object aValue,
                         java.lang.String aKeyPath)
Sets the value for the specified key path, which is a series of keys delimited by ".", for example: "createTime.year.length". The value is set for the last object referenced by the key path.


valuesForKeys

NSDictionary valuesForKeys(java.util.List aKeyList)
Returns a Map of the specified keys to their values, each of which might be obtained by calling valueForKey.


takeValuesFromDictionary

void takeValuesFromDictionary(java.util.Map aMap)
Takes the keys from the specified map as properties and applies the corresponding values, each of which might be set by calling takeValueForKey.



Copyright © 2006 null. All Rights Reserved.