|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.text.KeyLookupRecord
public class KeyLookupRecord
A data structure used to maintain mappings between argument key names and names of properties which depend on the looking up the key name in an argument map.
Nested Class Summary | |
---|---|
static class |
KeyLookupRecord.KeyDescriptor
A data structure that holds information on how to associate a key in an argument with a property value of a composite object. |
Field Summary | |
---|---|
protected java.lang.String |
_currentPropertyName
The name of the current property whose value is being created. |
protected java.util.Map |
_keyToDescriptorMap
A map from keys for argument maps to instances of KeyDescriptor . |
Constructor Summary | |
---|---|
KeyLookupRecord()
|
Method Summary | |
---|---|
KeyLookupRecord |
clearPropertyName()
Set the property name to null so any further lookups are
not associated with the current property name. |
java.util.Map |
getKeyToDescriptorMap()
Return the argument map key to KeyDescriptor map. |
void |
recordKeyLookup(java.lang.String key,
IObjectMapper fromMapValueConverter,
IObjectMapper toMapValueConverter,
boolean readArgMap,
boolean updateArgMap,
boolean writeArgMap)
Record that a lookup in the argument map has taken place using the argument key. |
KeyLookupRecord |
reset()
Put this instance back into its initial state. |
KeyLookupRecord |
setPropertyName(java.lang.String propertyName)
Associate the next argument map key with propertyName
the next time recordKeyLookup() is called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.Map _keyToDescriptorMap
KeyDescriptor
.
protected java.lang.String _currentPropertyName
Constructor Detail |
---|
public KeyLookupRecord()
Method Detail |
---|
public KeyLookupRecord setPropertyName(java.lang.String propertyName)
propertyName
the next time recordKeyLookup()
is called. Return this
instance.
public KeyLookupRecord clearPropertyName()
null
so any further lookups are
not associated with the current property name. Return this instance.
public KeyLookupRecord reset()
public void recordKeyLookup(java.lang.String key, IObjectMapper fromMapValueConverter, IObjectMapper toMapValueConverter, boolean readArgMap, boolean updateArgMap, boolean writeArgMap)
setPropertyName()
, unless it is null
.
Set the last property name to null
so that it is not
reused.
public java.util.Map getKeyToDescriptorMap()
KeyDescriptor
map.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |