org.milyn.javabean.decoders
Class MappingDecoder

java.lang.Object
  extended by org.milyn.javabean.decoders.MappingDecoder
All Implemented Interfaces:
ContentHandler, DataDecoder

public class MappingDecoder
extends Object
implements DataDecoder

Mapping decoder.

Decodes the supplied data by using it to lookup the decode mapping from the decoders configuration parameters.

Author:
tom.fennelly@gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.milyn.javabean.DataDecoder
DataDecoder.Factory
 
Constructor Summary
MappingDecoder()
           
 
Method Summary
 Object decode(String data)
          Decode the supplied String data into a new Object data instance.
 void setConfiguration(SmooksResourceConfiguration resourceConfig)
           
 void setStrict(boolean strict)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingDecoder

public MappingDecoder()
Method Detail

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.

setStrict

public void setStrict(boolean strict)


Copyright © 2008. All Rights Reserved.