java.lang.Cloneable, TypeConvertorAbstractDateTypeConvertor, AbstractLobTypeConvertor, AbstractSimpleTypeConvertor, AbstractTypeConvertor, BigDecimalToBoolean, BigDecimalToByte, BigDecimalToDate, BigDecimalToDouble, BigDecimalToFloat, BigDecimalToInteger, BigDecimalToLong, BigDecimalToShort, BooleanToBigDecimal, BooleanToInteger, BooleanToShort, BooleanToString, ByteArrayToInputStream, ByteArrayToSerializable, ByteArrayToString, ByteToBigDecimal, ByteToInteger, ByteToShort, CastorDateToDate, CastorDateToSqlDate, CastorDurationToLong, CastorTimeToLong, CharArrayToSqlClob, CharArrayToString, DateToBigDecimal, DateToCastorDate, DateToDouble, DateToInteger, DateToLong, DateToSqlDate, DateToSqlTime, DateToSqlTimestamp, DateToString, DoubleToBigDecimal, DoubleToDate, DoubleToFloat, DoubleToInteger, DoubleToLong, EnumToOrdinal, EnumTypeConvertor, FloatToBigDecimal, FloatToDouble, FloatToInteger, FloatToLong, InputStreamToByteArray, InputStreamToSerializable, IntegerToBigDecimal, IntegerToBoolean, IntegerToByte, IntegerToDate, IntegerToDouble, IntegerToFloat, IntegerToLong, IntegerToShort, LongToBigDecimal, LongToCastorDuration, LongToCastorTime, LongToDate, LongToDouble, LongToFloat, LongToInteger, LongToShort, ObjectToString, SerializableToByteArray, SerializableToInputStream, ShortToBigDecimal, ShortToBoolean, ShortToByte, ShortToInteger, ShortToLong, SqlClobToCharArray, SqlClobToString, SqlDateToCastorDate, SqlDateToDate, SqlTimestampToDate, SqlTimestampToString, SqlTimeToDate, StringToBigDecimal, StringToBoolean, StringToByteArray, StringToCastorDuration, StringToCastorTime, StringToCharacter, StringToCharArray, StringToDate, StringToDouble, StringToFloat, StringToInteger, StringToLong, StringToShort, StringToSqlClob, StringToSqlTimestamppublic interface TypeConvertor extends TypeConvertor, java.lang.Cloneable
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
clone() |
Creates and returns a copy of this object.
|
void |
configure(AbstractProperties properties) |
Configure the converter with given configuration.
|
java.lang.Object |
convert(java.lang.Object object) |
Convert the object from one type to another.
|
java.lang.Class<?> |
fromType() |
Get the type being converted from.
|
void |
parameterize(java.lang.String parameter) |
Initialize the converter with the given parameter.
|
java.lang.Class<?> |
toType() |
Get the type being converted to.
|
void configure(AbstractProperties properties)
properties - Properties to use.void parameterize(java.lang.String parameter)
null which both should lead to
the default behaviour of the converter.parameter - The parameter for the convertor (null if is not specified).java.lang.Object clone()
java.lang.Class<?> fromType()
java.lang.Class<?> toType()
java.lang.Object convert(java.lang.Object object)
throws java.lang.ClassCastException
convert in interface TypeConvertorobject - The object to convert.java.lang.ClassCastException - The object is not of the type supported by this convertor.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com