com.taco.text
Class ImmutableCompositeConverter
java.lang.Object
com.taco.text.AbstractInterpolatingStringToObjectConverter
com.taco.text.InterpolatingConverter
com.taco.text.CompositeConverter
com.taco.text.BracedPropertyCompositeConverter
com.taco.text.ImmutableCompositeConverter
- All Implemented Interfaces:
- ICommonRegexConstants, IInterpolatingConverter, IInterpolatingStringToObjectConverter, IStringToObjectConverter, IInterpolatingResourceBundleToObjectConverter, java.lang.Cloneable
- Direct Known Subclasses:
- BevelBorderConverter, CompoundBorderConverter, DispatchingLayoutConverter.BorderLayoutConverter, DispatchingLayoutConverter.CardLayoutConverter, DispatchingLayoutConverter.ContainerDependentLayoutConverter, DispatchingLayoutConverter.FlowLayoutConverter, DispatchingLayoutConverter.GridLayoutConverter, EtchedBorderConverter, ImageIconConverter, InsetsConverter, LineBorderConverter, MatteBorderConverter, SeparatorConverter, TitledBorderConverter
public abstract class ImmutableCompositeConverter
- extends BracedPropertyCompositeConverter
An abstract subclass of BracedPropertyCompositeConverter
which creates an object whose properties cannot be changed. This class
overloads methods that add updater and map consistency listeners to do
nothing. Also since all properties must be set in
_createComposite()
, _getActionForProperty()
returns null
.
Fields inherited from interface com.taco.text.ICommonRegexConstants |
BOOLEAN_REGEX_STRING, CHAR_REGEX_STRING, FLOAT_REGEX_STRING, HEX_NUMBER_REGEX_STRING, INTEGER_REGEX_STRING, JAVA_CLASS_NAME_REGEX_STRING, LONG_HEX_REGEX_STRING, LONG_INTEGER_REGEX_STRING, NON_NEGATIVE_FLOAT_REGEX_STRING, PROPERTY_PREFIX_PATTERN, PROPERTY_PREFIX_REGEX_STRING, QUOTED_STRING_REGEX_STRING, WHITESPACE_PATTERN |
Method Summary |
protected void |
_addMapConsistencyListeners(KeyLookupRecord keyLookupRecord,
java.lang.Object composite,
INoReturnMap argMap)
Do nothing, since properties cannot be changed after creation. |
protected void |
_addUpdaterListeners(KeyLookupRecord keyLookupRecord,
java.lang.Object composite,
INoReturnMap argMap)
Do nothing, since properties cannot be changed after creation. |
protected CompositeConverter.ISetPropertyAction |
_getActionForProperty(java.lang.String propertyName)
Return an instance ISetPropertyAction for the argument
property name. |
protected void |
_setProperties(java.lang.Object composite,
java.util.Map propertyMap,
java.util.ResourceBundle bundle,
INoReturnMap argMap)
Do nothing, since properties cannot be changed after creation. |
abstract java.util.Collection |
getCreationPropertyNames()
Return all property names of the composite. |
java.util.Collection |
getPropertyNames()
Return an empty collection, since no properties are configurable after
construction time. |
Methods inherited from class com.taco.text.CompositeConverter |
_addMapConsistencyListener, _addProperties, _configureComposite, _createComposite, _createUpdaterListener, _makeInitConverter, _setProperties, _toObject, configureComposite, getConverterForProperty, getConverterNameForProperty, isPropertyReadable, isPropertyUpdatable, isPropertyWritable |
Methods inherited from class com.taco.text.InterpolatingConverter |
_argMapReferenceToObject, _getStandardImports, _getStandardStaticImports, _literalResultToObject, _scriptSnippetToObject, _toObjectMapper, clone, name, toObject, toObject, toObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImmutableCompositeConverter
public ImmutableCompositeConverter()
getCreationPropertyNames
public abstract java.util.Collection getCreationPropertyNames()
- Return all property names of the composite.
- Overrides:
getCreationPropertyNames
in class CompositeConverter
getPropertyNames
public final java.util.Collection getPropertyNames()
- Return an empty collection, since no properties are configurable after
construction time.
- Specified by:
getPropertyNames
in class CompositeConverter
_setProperties
protected void _setProperties(java.lang.Object composite,
java.util.Map propertyMap,
java.util.ResourceBundle bundle,
INoReturnMap argMap)
- Do nothing, since properties cannot be changed after creation.
_getActionForProperty
protected CompositeConverter.ISetPropertyAction _getActionForProperty(java.lang.String propertyName)
- Description copied from class:
CompositeConverter
- Return an instance
ISetPropertyAction
for the argument
property name. If no action is associated with the property name,
return null
.
- Specified by:
_getActionForProperty
in class CompositeConverter
_addUpdaterListeners
protected void _addUpdaterListeners(KeyLookupRecord keyLookupRecord,
java.lang.Object composite,
INoReturnMap argMap)
- Do nothing, since properties cannot be changed after creation.
- Overrides:
_addUpdaterListeners
in class CompositeConverter
_addMapConsistencyListeners
protected void _addMapConsistencyListeners(KeyLookupRecord keyLookupRecord,
java.lang.Object composite,
INoReturnMap argMap)
- Do nothing, since properties cannot be changed after creation.
- Overrides:
_addMapConsistencyListeners
in class CompositeConverter