WebObjects 5.1

com.webobjects.eocontrol
Class EOKeyValueCodingAdditions.Utility

java.lang.Object
  |
  +--com.webobjects.eocontrol.EOKeyValueCodingAdditions.Utility
Enclosing class:
EOKeyValueCodingAdditions

public static class EOKeyValueCodingAdditions.Utility
extends Object

The EOKeyValueCodingAdditions.Utility class is a convenience that allows you to access the properties of EOKeyValueCodingAdditions objects and non-EOKeyValueCodingAdditions objects using the same code.

See Also:
EOKeyValueCodingAdditions

Method Summary
static void takeValuesFromDictionary(Object object, NSDictionary dictionary)
          If object implements EOKeyValueCodingAdditions, this method invokes takeValuesFromDictionary on object.
static NSDictionary valuesForKeys(Object object, NSArray keys)
          If object implements EOKeyValueCodingAdditions, this method invokes valuesForKeys on object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

takeValuesFromDictionary

public static void takeValuesFromDictionary(Object object,
                                            NSDictionary dictionary)
If object implements EOKeyValueCodingAdditions, this method invokes takeValuesFromDictionary on object. Otherwise it invokes EOKeyValueCodingAdditions.DefaultImplementation's takeValuesFromDictionary method with object as the object on which to operate.
Parameters:
object - the object on which to operate
dictionary - the key-value pairs to be set
See Also:
EOKeyValueCodingAdditions.takeValuesFromDictionary(NSDictionary), EOKeyValueCodingAdditions.DefaultImplementation

valuesForKeys

public static NSDictionary valuesForKeys(Object object,
                                         NSArray keys)
If object implements EOKeyValueCodingAdditions, this method invokes valuesForKeys on object. Otherwise it invokes EOKeyValueCodingAdditions.DefaultImplementation's valuesForKeys method with object as the object on which to operate.
Parameters:
object - the object on which to operate
keys - the array of keys whose values are to be retrieved
Returns:
the result of either object.valuesForKeys(keys) or EOKeyValueCodingAdditions.DefaultImplementation.valuesForKeys(object, keys)
See Also:
EOKeyValueCodingAdditions.valuesForKeys(NSArray), EOKeyValueCodingAdditions.DefaultImplementation

Last updated Thu Jan 10 18:10:21 PST 2002.

Copyright © 2002 Apple Computer, Inc.