Class AbstractTypeConvertor
- java.lang.Object
-
- org.castor.cpa.persistence.convertor.AbstractTypeConvertor
-
- All Implemented Interfaces:
java.lang.Cloneable
,TypeConvertor
,TypeConvertor
- Direct Known Subclasses:
AbstractDateTypeConvertor
,AbstractLobTypeConvertor
,AbstractSimpleTypeConvertor
,BooleanToBigDecimal
,BooleanToInteger
,BooleanToShort
,BooleanToString
,LongToCastorTime
,StringToBoolean
public abstract class AbstractTypeConvertor extends java.lang.Object implements TypeConvertor
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
Constructors Constructor Description AbstractTypeConvertor(java.lang.Class<?> fromType, java.lang.Class<?> toType)
Construct a Converter between given fromType an toType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Creates and returns a copy of this object.java.lang.Class<?>
fromType()
Get the type being converted from.java.lang.String
toString()
java.lang.Class<?>
toType()
Get the type being converted to.-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.castor.cpa.persistence.convertor.TypeConvertor
configure, convert, parameterize
-
-
-
-
Method Detail
-
clone
public final java.lang.Object clone()
Creates and returns a copy of this object.- Specified by:
clone
in interfaceTypeConvertor
- Overrides:
clone
in classjava.lang.Object
- Returns:
- A clone of this instance.
-
fromType
public final java.lang.Class<?> fromType()
Get the type being converted from.- Specified by:
fromType
in interfaceTypeConvertor
- Returns:
- The type being converted from.
-
toType
public final java.lang.Class<?> toType()
Get the type being converted to.- Specified by:
toType
in interfaceTypeConvertor
- Returns:
- The type being converted to.
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-