com.taco.text
Class KeyLookupRecord.KeyDescriptor

java.lang.Object
  extended by com.taco.text.KeyLookupRecord.KeyDescriptor
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
KeyLookupRecord

public static class KeyLookupRecord.KeyDescriptor
extends java.lang.Object
implements java.io.Serializable

A data structure that holds information on how to associate a key in an argument with a property value of a composite object.

See Also:
Serialized Form

Field Summary
 IObjectMapper fromMapValueConverter
          Specifies how to convert the associated value in the argument map to a property value of the composite.
 java.lang.String propertyName
          The property name of the composite the key is associated with.
 boolean readArgMap
          True if the value from the argument map should be used for a value.
 IObjectMapper toMapValueConverter
          Specifies how to convert a property value of the composite to a value to be put in the argument map.
 boolean updateArgMap
          True if a listener should be installed in the argument map to update the converted object when the value associated with the key changes.
 boolean writeArgMap
          True if changes to a property of a composite object should be reflected in the argument map.
 
Constructor Summary
KeyLookupRecord.KeyDescriptor(java.lang.String propertyName, IObjectMapper fromMapValueConverter, IObjectMapper toMapValueConverter, boolean readArgMap, boolean updateArgMap, boolean writeArgMap)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyName

public java.lang.String propertyName
The property name of the composite the key is associated with.


fromMapValueConverter

public IObjectMapper fromMapValueConverter
Specifies how to convert the associated value in the argument map to a property value of the composite. If null, no conversion is required.


toMapValueConverter

public IObjectMapper toMapValueConverter
Specifies how to convert a property value of the composite to a value to be put in the argument map. If null, no conversion is required. If BAD_OBJECT_MAPPER, an error occurred parsing the converter, so no map consistency listener should be added.


readArgMap

public boolean readArgMap
True if the value from the argument map should be used for a value.


updateArgMap

public boolean updateArgMap
True if a listener should be installed in the argument map to update the converted object when the value associated with the key changes.


writeArgMap

public boolean writeArgMap
True if changes to a property of a composite object should be reflected in the argument map. This requires that a map consistency listener be added to a composite object.

Constructor Detail

KeyLookupRecord.KeyDescriptor

public KeyLookupRecord.KeyDescriptor(java.lang.String propertyName,
                                     IObjectMapper fromMapValueConverter,
                                     IObjectMapper toMapValueConverter,
                                     boolean readArgMap,
                                     boolean updateArgMap,
                                     boolean writeArgMap)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object