@DecodeType(value=java.lang.Enum.class) public class EnumDecoder extends Object implements DataDecoder, Configurable
MappingDecoder.DataDecoder.Factory| Constructor and Description |
|---|
EnumDecoder() |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(String data)
Decode the supplied String data into a new Object data instance.
|
Properties |
getConfiguration()
Get the component configuration.
|
void |
setConfiguration(Properties resourceConfig)
Set the component configuration.
|
void |
setEnumType(Class enumType) |
public void setConfiguration(Properties resourceConfig) throws SmooksConfigurationException
ConfigurablesetConfiguration in interface ConfigurableresourceConfig - The component configuration properties.SmooksConfigurationException - Bad component configuration.public Properties getConfiguration()
ConfigurablegetConfiguration in interface Configurablepublic void setEnumType(Class enumType)
public Object decode(String data) throws DataDecodeException
DataDecoderdecode in interface DataDecoderdata - Data to be decoded.DataDecodeException - Error decoding data.Copyright © 2016. All rights reserved.