PATH  Documentation > WebObjects 4.5 > EOControl Reference

Table of Contents

EOKeyValueCoding.KeyBindingCreation


Implemented by:
EOEnterpriseObject
EOCustomObject
EOGenericRecord
Implements:
(com.apple.client.eocontrol only) NSKeyValueCoding
Package:
com.apple.client.eocontrol
com.apple.yellow.eocontrol

Interface Description


The EOKeyValueCoding.KeyBindingCreation interface defines the methods that create and cache EOKeyValueCoding.KeyBindings-objects that associate a class/key pair to a mechanism for accessing the key.

EOCustomObject and EOGenericRecord provide default implementations of this interface. Apple doesn't anticipate the need for you to invoke or implement the methods in EOKeyValueCoding.KeyBindingCreation. It is used internally by Enterprise Objects Framework. You should never need to interact with it at all.



Instance Methods



createKeyValueBindingForKey

public abstract EOKeyValueCoding.KeyBinding createKeyValueBindingForKey( String key, int bindingTypeMask)

If bindingTypeMask is SetKeyBindingMask, returns the binding responsible for setting the value for key ; otherwise if bindingTypeMask is StoredKeyBindingMask, returns the binding responsible for retrieving the value for key. EOCustomObject and EOGenericRecord's implementations look for methods and instance variables fitting the key-value coding naming conventions as described in the method descriptions for takeValueForKey and valueForKey.

keyValueBindingForKey

public abstract EOKeyValueCoding.KeyBinding keyValueBindingForKey( String key, int bindingTypeMask)

Returns the binding responsible for setting or retrieving the value for key, creating and caching the binding if it isn't cached already. When a binding cannot be found for the specified key, or if the receiver has overridden the default implementation of an EOKeyValueCoding accessor method, a binding that simply invokes that accessor is returned.


Table of Contents