it.assist.jrecordbind
Interface Converter

All Known Implementing Classes:
IntegerConverter, LongConverter, StringConverter, VoidConverter

public interface Converter

Used by both the Marshaller and the Unmarshaller to convert a String into an appropriate object and back. Must have a default constructor and must be stateless.
See it.assist.jrecordbind.converters for the default ones.

Author:
Federico Fissore

Method Summary
 Object convert(String value)
          Converts a String into an object, e.g. a Date
 String toString(Object value)
          Converts an object into string
 

Method Detail

convert

Object convert(String value)
Converts a String into an object, e.g. a Date

Parameters:
value - the string to convert
Returns:
the converted object

toString

String toString(Object value)
Converts an object into string

Parameters:
value - the object to convert
Returns:
a string rapresentation of the object


Copyright © 2009-2011. All Rights Reserved.