Package org.smooks.engine.converter
Class EnumTypeConverterFactory.EnumTypeConverter
- java.lang.Object
-
- org.smooks.engine.converter.EnumTypeConverterFactory.EnumTypeConverter
-
- All Implemented Interfaces:
TypeConverter<String,Enum>
,Configurable
- Enclosing class:
- EnumTypeConverterFactory
public static class EnumTypeConverterFactory.EnumTypeConverter extends Object implements TypeConverter<String,Enum>, Configurable
-
-
Constructor Summary
Constructors Constructor Description EnumTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enum<?>
convert(String value)
Properties
getConfiguration()
Get the component configuration.void
setConfiguration(Properties properties)
Set the component configuration.
-
-
-
Method Detail
-
convert
public Enum<?> convert(String value)
- Specified by:
convert
in interfaceTypeConverter<String,Enum>
-
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.
-
-