org.milyn.javabean.decoders
Class EnumDecoder
java.lang.Object
org.milyn.javabean.decoders.EnumDecoder
- All Implemented Interfaces:
- ContentHandler, DataDecoder
@DecodeType(value=java.lang.Enum.class)
public class EnumDecoder
- extends Object
- implements DataDecoder
Enum instance decoder.
The enumeration type is specified through the "enumType" configuration
param. Enum constant value mappings can be performed as per the
MappingDecoder.
- Author:
- tom.fennelly@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumDecoder
public EnumDecoder()
setConfiguration
public void setConfiguration(SmooksResourceConfiguration resourceConfig)
throws SmooksConfigurationException
- Throws:
SmooksConfigurationException
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.
Copyright © 2008. All Rights Reserved.