com.taco.text
Class AbstractInterpolatingStringToObjectConverter

java.lang.Object
  extended by com.taco.text.AbstractInterpolatingStringToObjectConverter
All Implemented Interfaces:
IInterpolatingStringToObjectConverter, IStringToObjectConverter
Direct Known Subclasses:
InterpolatingConverter

public abstract class AbstractInterpolatingStringToObjectConverter
extends java.lang.Object
implements IInterpolatingStringToObjectConverter, IStringToObjectConverter

An abstract implementation of IInterpolatingStringToObjectConverter which provides a way for interpolating string to object converters to act like ordinary string to object converters by specifying a resource bundle and an argument map to use in the constructor.


Field Summary
protected  INoReturnMap _defArgMap
          The argument map used to resolve references in the implementation of IStringToObjectConverter.
protected  java.util.ResourceBundle _defBundle
          The resource bundle used to resolve references in the implementation of IStringToObjectConverter.
 
Constructor Summary
protected AbstractInterpolatingStringToObjectConverter()
          Create a new instance whose implementation of IStringToObjectConverter is incapable of resolving references.
protected AbstractInterpolatingStringToObjectConverter(java.util.ResourceBundle bundle, INoReturnMap argMap)
          Create a new instance whose implementation of IStringToObjectConverter uses the specified resource bundle and argument map to resolve references.
 
Method Summary
 java.lang.Object toObject(java.lang.String s)
          Implement IStringToObjectConverter by using the default resource bundle and argument map specified by the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.taco.text.IInterpolatingStringToObjectConverter
toObject
 

Field Detail

_defBundle

protected final java.util.ResourceBundle _defBundle
The resource bundle used to resolve references in the implementation of IStringToObjectConverter.


_defArgMap

protected final INoReturnMap _defArgMap
The argument map used to resolve references in the implementation of IStringToObjectConverter.

Constructor Detail

AbstractInterpolatingStringToObjectConverter

protected AbstractInterpolatingStringToObjectConverter()
Create a new instance whose implementation of IStringToObjectConverter is incapable of resolving references.


AbstractInterpolatingStringToObjectConverter

protected AbstractInterpolatingStringToObjectConverter(java.util.ResourceBundle bundle,
                                                       INoReturnMap argMap)
Create a new instance whose implementation of IStringToObjectConverter uses the specified resource bundle and argument map to resolve references.

Method Detail

toObject

public java.lang.Object toObject(java.lang.String s)
                          throws java.text.ParseException
Implement IStringToObjectConverter by using the default resource bundle and argument map specified by the constructor.

Specified by:
toObject in interface IStringToObjectConverter
Throws:
java.text.ParseException