PATH Documentation > WebObjects

Table of Contents

NSKeyValueCoding.DefaultImplementation


Inherits from:
Object
Package:
com.webobjects.foundation


Class Description


The NSKeyValueCoding. DefaultImplementation class provides default implementations of the NSKeyValueCoding and NSKeyValueCoding.ErrorHandling interfaces. For more information, see the NSKeyValueCoding and NSKeyValueCoding.ErrorHandling interface specifications.




Static Methods



handleQueryWithUnboundKey

public static Object handleQueryWithUnboundKey( Object anObject, String key)

Throws an NSKeyValueCoding. UnknownKeyException with anObject as the exception's object and key as the exception's key. Invoked from valueForKey when it finds no property binding for key.

See Also: NSKeyValueCoding.ErrorHandling



handleTakeValueForUnboundKey

public static void handleTakeValueForUnboundKey( Object anObject, Object value, String key)

Throws an NSKeyValueCoding. UnknownKeyException with anObject as the exception's object and key as the exception's key. Invoked from takeValueForKey when it finds no property binding for key.

See Also: NSKeyValueCoding.ErrorHandling



takeValueForKey

public static void takeValueForKey( Object anObject, Object value, String key)

Sets anObject's property identified by key to value, or invokes handleTakeValueForUnboundKey.

See Also: takeValueForKey ( NSKeyValueCoding)



unableToSetNullForKey

public static void unableToSetNullForKey( Object anObject, String key)

Throws an IllegalArgumentException. Invoked from takeValueForKey when it's given a null value for a scalar property (such as an int or a float).

See Also: NSKeyValueCoding.ErrorHandling



valueForKey

public static Object valueForKey( Object anObject, String key)

Returns anObject's value for the property identified by key, or invokes handleQueryWithUnboundKey.

See Also: valueForKey ( NSKeyValueCoding)



© 2001 Apple Computer, Inc. (Last Published April 17, 2001)


Table of Contents