Package org.exolab.castor.mapping
Interface TypeConvertor
-
- All Known Subinterfaces:
TypeConvertor
- All Known Implementing Classes:
AbstractDateTypeConvertor
,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
,Introspector.IdentityConvertor
,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
,StringToSqlTimestamp
,XMLMappingLoader.IdentityConvertor
public interface TypeConvertor
Interface for a type convertor. A type convertor converts a Java object from one type to another. A type convertor implementation is required for each type of conversion.- Version:
- $Revision: 7272 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Assaf Arkin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
convert(java.lang.Object object)
Convert the object from one type to another.
-
-
-
Method Detail
-
convert
java.lang.Object convert(java.lang.Object object) throws java.lang.ClassCastException
Convert the object from one type to another.- Parameters:
object
- The object to convert.- Returns:
- The converted object.
- Throws:
java.lang.ClassCastException
- The object is not of the type supported by this convertor.
-
-