dsto.dfc.databeans.io
Interface TextDecoder

All Known Implementing Classes:
TextDefaultCodec

public interface TextDecoder

An object that can decode the text representation of an object into an instance.

Version:
$Revision$
Author:
mpp

Method Summary
 Object decode(Class type, String text)
          Decode a text value.
 

Method Detail

decode

Object decode(Class type,
              String text)
              throws IllegalArgumentException
Decode a text value.

Parameters:
type - The type of value expected.
text - The text form of the value.
Returns:
Object The decoded value.
Throws:
IllegalArgumentException - if the value cannot be decoded.


Copyright © 2008 Commonwealth of Australia