|
WebObjects 5.4.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webobjects.foundation.NSKeyValueCoding.Utility
public static class NSKeyValueCoding.Utility
The NSKeyValueCoding.Utility class is a convenience that allows you to access the properties of NSKeyValueCoding objects and non-NSKeyValueCoding objects using the same code.
NSKeyValueCoding| Method Summary | |
|---|---|
static Object |
handleQueryWithUnboundKey(Object object,
String key)
If object implements NSKeyValueCoding.ErrorHandling, this method invokes handleQueryWithUnboundKey on object. |
static void |
handleTakeValueForUnboundKey(Object object,
Object value,
String key)
If object is an NSKeyValueCoding.ErrorHandling, this method invokes handleTakeValueForUnboundKey on object. |
static Object |
nullValue()
Returns the Null Object (NSKeyValueCoding.NullValue ). |
static void |
takeValueForKey(Object object,
Object value,
String key)
If object implements NSKeyValueCoding, this method invokes takeValueForKey on object. |
static void |
unableToSetNullForKey(Object object,
String key)
If object is an NSKeyValueCoding.ErrorHandling, this method invokes unableToSetNullForKey on object. |
static Object |
valueForKey(Object object,
String key)
If object implements NSKeyValueCoding, this method invokes valueForKey on object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final Object nullValue()
Implementation note: Implementations of this method need not create a separate NSKeyValueCoding.Null object for each call. Using this method is likely to have comparable cost to using the like-named field. (Unlike this method, the field does not provide type safety.)
NSKeyValueCoding.NullValue
public static Object valueForKey(Object object,
String key)
object implements NSKeyValueCoding, this method invokes valueForKey on object. Otherwise it invokes NSKeyValueCoding.DefaultImplementation's valueForKey method with object as the object on which to operate.
object - the object on which to operatekey - identifies the property of object to retrieve
object.valueForKey(key) or NSKeyValueCoding.DefaultImplementation.valueForKey(object, key)NSKeyValueCoding.valueForKey(java.lang.String),
NSKeyValueCoding.DefaultImplementation
public static void takeValueForKey(Object object,
Object value,
String key)
object implements NSKeyValueCoding, this method invokes takeValueForKey on object. Otherwise it invokes NSKeyValueCoding.DefaultImplementation's takeValueForKey method with object as the object on which to
operate.
object - the object on which to operatevalue - new value for the key propertykey - identifies the property of a objectNSKeyValueCoding.takeValueForKey(java.lang.Object, java.lang.String),
NSKeyValueCoding.DefaultImplementation
public static Object handleQueryWithUnboundKey(Object object,
String key)
object implements NSKeyValueCoding.ErrorHandling, this method invokes handleQueryWithUnboundKey on object. Otherwise it invokes NSKeyValueCoding.DefaultImplementation's handleQueryWithUnboundKey method with
object as the object on which to operate.
object - the object on which to operatekey - identifies the property of an object
NSKeyValueCoding.UnknownKeyException. - The default implementation always throws.NSKeyValueCoding.UnknownKeyException,
NSKeyValueCoding.ErrorHandling.handleQueryWithUnboundKey(java.lang.String),
NSKeyValueCoding.DefaultImplementation.handleQueryWithUnboundKey(java.lang.Object, java.lang.String)
public static void handleTakeValueForUnboundKey(Object object,
Object value,
String key)
object is an NSKeyValueCoding.ErrorHandling, this method invokes handleTakeValueForUnboundKey on object. Otherwise it invokes NSKeyValueCoding.DefaultImplementation's handleTakeValueForUnboundKey method with
object as the object on which to operate.
object - the object on which to operatevalue - the new value to set the key property tokey - identifies the property on object to operate upon
NSKeyValueCoding.UnknownKeyException. - The default implementation always throws.NSKeyValueCoding.UnknownKeyException,
NSKeyValueCoding.ErrorHandling.handleTakeValueForUnboundKey(java.lang.Object, java.lang.String),
NSKeyValueCoding.DefaultImplementation.handleTakeValueForUnboundKey(java.lang.Object, java.lang.Object, java.lang.String)
public static void unableToSetNullForKey(Object object,
String key)
object is an NSKeyValueCoding.ErrorHandling, this method invokes unableToSetNullForKey on object. Otherwise it invokes NSKeyValueCoding.DefaultImplementation's unableToSetNullForKey method with object as the
object on which to operate.
object - the object on which to operatekey - identifies the property of an objectNSKeyValueCoding.ErrorHandling.unableToSetNullForKey(java.lang.String),
NSKeyValueCoding.DefaultImplementation.unableToSetNullForKey(java.lang.Object, java.lang.String)
|
Last updated June 2008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||