org.milyn.javabean.decoders
Class MappingDecoder
java.lang.Object
org.milyn.javabean.decoders.MappingDecoder
- All Implemented Interfaces:
- Serializable, Configurable, DataDecoder
public class MappingDecoder
- extends Object
- implements DataDecoder, Configurable
Mapping decoder.
Decodes the supplied data by using it to lookup the decode mapping from the
decoders configuration parameters.
- Author:
- tom.fennelly@gmail.com
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingDecoder
public MappingDecoder()
setConfiguration
public void setConfiguration(Properties resourceConfig)
- Description copied from interface:
Configurable
- Set the component configuration.
- Specified by:
setConfiguration in interface Configurable
- Parameters:
resourceConfig - The component configuration properties.
getConfiguration
public Properties getConfiguration()
- Description copied from interface:
Configurable
- Get the component configuration.
- Specified by:
getConfiguration in interface Configurable
- Returns:
- The component configuration properties.
decode
public Object decode(String data)
throws DataDecodeException
- Description copied from interface:
DataDecoder
- Decode the supplied String data into a new Object data instance.
- Specified by:
decode in interface DataDecoder
- Parameters:
data - Data to be decoded.
- Returns:
- Decoded data Object.
- Throws:
DataDecodeException - Error decoding data.
setStrict
public void setStrict(boolean strict)
Copyright © 2018. All rights reserved.