com.taco.text
Class ImmutableCompositeConverter

java.lang.Object
  extended by com.taco.text.AbstractInterpolatingStringToObjectConverter
      extended by com.taco.text.InterpolatingConverter
          extended by com.taco.text.CompositeConverter
              extended by com.taco.text.BracedPropertyCompositeConverter
                  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.taco.text.CompositeConverter
CompositeConverter.AbstractCompositeUpdater, CompositeConverter.AbstractMapConsistencyListener, CompositeConverter.CompositeUpdater, CompositeConverter.DefaultMapConsistencyListener, CompositeConverter.DelayedConvertedResult, CompositeConverter.ICompositeUpdater, CompositeConverter.IMapConsistencyListener, CompositeConverter.ISetPropertyAction, CompositeConverter.NotUpdaterListenerFilter, CompositeConverter.ReflectionSetPropertyAction
 
Field Summary
 
Fields inherited from class com.taco.text.BracedPropertyCompositeConverter
_KEEP_ENCLOSING_PUNCTUATION_PATTERN
 
Fields inherited from class com.taco.text.CompositeConverter
_DEFAULT_COMPOSITE_CONVERTER_MAP, _DEFAULT_COMPOSITE_CREATION_PROPERTY_NAMES, _SHOULD_READ_GLOBAL_NAME
 
Fields inherited from class com.taco.text.InterpolatingConverter
_BAD_OBJECT_MAPPER, _IGNORE_PROPERTY_VALUE, _IMPORTS, _STATIC_IMPORTS, _TO_OBJECT_MAPPER_CONVERTER, DEFAULT_INSTANCE
 
Fields inherited from class com.taco.text.AbstractInterpolatingStringToObjectConverter
_defArgMap, _defBundle
 
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
 
Constructor Summary
ImmutableCompositeConverter()
           
 
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.BracedPropertyCompositeConverter
_addProperties, _extractPropertiesSubSequence, _extractPropertyValue, _gatherPropertyMatchResults, _literalToObject, _shouldKeepEnclosingPunctuation
 
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 com.taco.text.AbstractInterpolatingStringToObjectConverter
toObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableCompositeConverter

public ImmutableCompositeConverter()
Method Detail

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