|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.text.ChainedInterpolatingConverter
public class ChainedInterpolatingConverter
A converter based on another converter, which has its value converted by
an implementation of IObjectMapper
.
Field Summary | |
---|---|
protected IInterpolatingConverter |
_decoratee
The interpolating converter used to get the intermediate result. |
protected IObjectMapper |
_mapper
The object mapper used to convert the intermediate result to the final result. |
Constructor Summary | |
---|---|
ChainedInterpolatingConverter(IInterpolatingConverter decoratee,
IObjectMapper mapper)
|
Method Summary | |
---|---|
java.lang.String |
name()
Return the name of the converter decorated by this instance. |
java.lang.Object |
toObject(java.util.ResourceBundle bundle,
java.lang.String baseKey,
INoReturnMap argMap,
KeyLookupRecord context)
Use the decoratee to convert the bundle key, then pass the result to the object mapper to obtain the final result. |
java.lang.Object |
toObject(java.lang.String s,
java.util.ResourceBundle bundle,
INoReturnMap argMap,
KeyLookupRecord context)
Use the decoratee to convert the string, then pass the result to the object mapper to obtain the final result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IInterpolatingConverter _decoratee
protected IObjectMapper _mapper
Constructor Detail |
---|
public ChainedInterpolatingConverter(IInterpolatingConverter decoratee, IObjectMapper mapper)
Method Detail |
---|
public java.lang.Object toObject(java.lang.String s, java.util.ResourceBundle bundle, INoReturnMap argMap, KeyLookupRecord context) throws java.text.ParseException, java.util.MissingResourceException
toObject
in interface IInterpolatingStringToObjectConverter
java.text.ParseException
java.util.MissingResourceException
public java.lang.Object toObject(java.util.ResourceBundle bundle, java.lang.String baseKey, INoReturnMap argMap, KeyLookupRecord context) throws java.text.ParseException, java.util.MissingResourceException
toObject
in interface IInterpolatingResourceBundleToObjectConverter
java.text.ParseException
java.util.MissingResourceException
public java.lang.String name()
name
in interface IInterpolatingConverter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |