Package org.smooks.engine.converter
Class PreprocessTypeConverter
- java.lang.Object
-
- org.smooks.engine.converter.PreprocessTypeConverter
-
- All Implemented Interfaces:
TypeConverter<String,Object>
,Configurable
public class PreprocessTypeConverter extends Object implements Configurable, TypeConverter<String,Object>
Data Preprocesses Decoder. Wraps the underlying decoder, allowing you to preprocess the data before passing to the base decoder.- Author:
- tom.fennelly@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
DELEGATE_TYPE_CONVERTER_FACTORY
static String
VALUE_PRE_PROCESSING
-
Constructor Summary
Constructors Constructor Description PreprocessTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
convert(String value)
Properties
getConfiguration()
Get the component configuration.TypeConverter<? super String,?>
getDelegateTypeConverter()
void
postConstruct()
void
setConfiguration(Properties properties)
Set the component configuration.void
setDelegateTypeConverter(TypeConverter<? super String,?> delegateTypeConverter)
-
-
-
Field Detail
-
VALUE_PRE_PROCESSING
public static final String VALUE_PRE_PROCESSING
- See Also:
- Constant Field Values
-
DELEGATE_TYPE_CONVERTER_FACTORY
public static final String DELEGATE_TYPE_CONVERTER_FACTORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
postConstruct
@PostConstruct public void postConstruct()
-
getDelegateTypeConverter
public TypeConverter<? super String,?> getDelegateTypeConverter()
-
setDelegateTypeConverter
public void setDelegateTypeConverter(TypeConverter<? super String,?> delegateTypeConverter)
-
setConfiguration
public void setConfiguration(Properties properties) throws SmooksConfigException
Description copied from interface:Configurable
Set the component configuration.- Specified by:
setConfiguration
in interfaceConfigurable
- Parameters:
properties
- The component configuration properties.- Throws:
SmooksConfigException
- Bad component configuration.
-
getConfiguration
public Properties getConfiguration()
Description copied from interface:Configurable
Get the component configuration.- Specified by:
getConfiguration
in interfaceConfigurable
- Returns:
- The component configuration properties.
-
-