it.assist.jrecordbind.converters
Class StringConverter

java.lang.Object
  extended by it.assist.jrecordbind.converters.StringConverter
All Implemented Interfaces:
Converter

public class StringConverter
extends Object
implements Converter


Constructor Summary
StringConverter()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringConverter

public StringConverter()
Method Detail

convert

public Object convert(String value)
Description copied from interface: Converter
Converts a String into an object, e.g. a Date

Specified by:
convert in interface Converter
Parameters:
value - the string to convert
Returns:
the converted object

toString

public String toString(Object value)
Description copied from interface: Converter
Converts an object into string

Specified by:
toString in interface Converter
Parameters:
value - the object to convert
Returns:
a string rapresentation of the object


Copyright © 2009-2011. All Rights Reserved.