Class AbstractTypeConvertor
java.lang.Object
org.castor.cpa.persistence.convertor.AbstractTypeConvertor
- All Implemented Interfaces:
Cloneable,TypeConvertor,TypeConvertor
- Direct Known Subclasses:
AbstractDateTypeConvertor,AbstractLobTypeConvertor,AbstractSimpleTypeConvertor,BooleanToBigDecimal,BooleanToInteger,BooleanToShort,BooleanToString,LongToCastorTime,StringToBoolean
Abstract base class to convert from one type to another.
- Since:
- 1.1.3
- Version:
- $Revision: 7134 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ralf Joachim
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractTypeConvertor(Class<?> fromType, Class<?> toType) Construct a Converter between given fromType an toType. -
Method Summary
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.castor.cpa.persistence.convertor.TypeConvertor
configure, convert, parameterize
-
Constructor Details
-
AbstractTypeConvertor
Construct a Converter between given fromType an toType.- Parameters:
fromType- The type being converted from.toType- The type being converted to.
-
-
Method Details
-
clone
Creates and returns a copy of this object.- Specified by:
clonein interfaceTypeConvertor- Overrides:
clonein classObject- Returns:
- A clone of this instance.
-
fromType
Get the type being converted from.- Specified by:
fromTypein interfaceTypeConvertor- Returns:
- The type being converted from.
-
toType
Get the type being converted to.- Specified by:
toTypein interfaceTypeConvertor- Returns:
- The type being converted to.
-
toString
-