jodd.typeconverter
Interface TypeConverter

All Known Implementing Classes:
BigDecimalConverter, BigIntegerConverter, BooleanArrayConverter, BooleanConverter, ByteArrayConverter, ByteConverter, CharacterConverter, DoubleArrayConverter, DoubleConverter, FileUploadConverter, FloatArrayConverter, FloatConverter, IntegerArrayConverter, IntegerConverter, JDateTimeConverter, LongArrayConverter, LongConverter, MutableByteConverter, MutableDoubleConverter, MutableFloatConverter, MutableIntegerConverter, MutableLongConverter, MutableShortConverter, ShortArrayConverter, ShortConverter, SqlDateConverter, SqlTimeConverter, SqlTimestampConverter, StringArrayConverter, StringConverter

public interface TypeConverter

Object converter interface.

See Also:
TypeConverterManager

Method Summary
 java.lang.Object convert(java.lang.Object obj)
          Converts object received as parameter into object of another class.
 

Method Detail

convert

java.lang.Object convert(java.lang.Object obj)
Converts object received as parameter into object of another class. For example, in a IntegerConverter implementation of this interface, this method should convert all objects into Integer object. Conversion has to be done correctly, with investigation of given object.

If conversion is not possible TypeConversionException should be thrown.

Parameters:
obj - object to convert from
Returns:
resulting object


Copyright ©2008 Jodd Team