|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.foundation.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 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 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 objectNSKeyValueCoding.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 uponNSKeyValueCoding.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 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 object
NSKeyValueCoding.takeValueForKey(java.lang.Object, java.lang.String)
,
NSKeyValueCoding.DefaultImplementation
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)
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 retrieveobject.valueForKey(key)
or NSKeyValueCoding.DefaultImplementation.valueForKey(object, key)
NSKeyValueCoding.valueForKey(java.lang.String)
,
NSKeyValueCoding.DefaultImplementation
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |