org.exolab.castor.mapping

Interface TypeConvertor

Known Subinterfaces:
TypeConvertor
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, CharArrayToSqlClob, CharArrayToString, DateToBigDecimal, DateToCastorDate, DateToDouble, DateToInteger, DateToLong, DateToSqlDate, DateToSqlTime, DateToSqlTimestamp, DateToString, DoubleToBigDecimal, DoubleToDate, DoubleToFloat, DoubleToInteger, DoubleToLong, FloatToBigDecimal, FloatToDouble, FloatToInteger, FloatToLong, InputStreamToByteArray, InputStreamToSerializable, IntegerToBigDecimal, IntegerToBoolean, IntegerToByte, IntegerToDate, IntegerToDouble, IntegerToFloat, IntegerToLong, IntegerToShort, Introspector.IdentityConvertor, LongToBigDecimal, LongToCastorDuration, LongToDate, LongToDouble, LongToFloat, LongToInteger, LongToShort, ObjectToString, SerializableToByteArray, SerializableToInputStream, ShortToBigDecimal, ShortToBoolean, ShortToByte, ShortToInteger, ShortToLong, SqlClobToCharArray, SqlClobToString, SqlDateToCastorDate, SqlDateToDate, SqlTimestampToDate, SqlTimestampToString, SqlTimeToDate, StringToBigDecimal, StringToBoolean, StringToByteArray, StringToCharArray, StringToCharacter, 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

Object
convert(Object object)
Convert the object from one type to another.

Method Details

convert

public Object convert(Object object)
            throws ClassCastException
Convert the object from one type to another.
Parameters:
object - The object to convert.
Returns:
The converted object.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com