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

public abstract class AbstractTypeConvertor extends 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 Details

    • AbstractTypeConvertor

      public AbstractTypeConvertor(Class<?> fromType, Class<?> toType)
      Construct a Converter between given fromType an toType.
      Parameters:
      fromType - The type being converted from.
      toType - The type being converted to.
  • Method Details

    • clone

      public final Object clone()
      Creates and returns a copy of this object.
      Specified by:
      clone in interface TypeConvertor
      Overrides:
      clone in class Object
      Returns:
      A clone of this instance.
    • fromType

      public final Class<?> fromType()
      Get the type being converted from.
      Specified by:
      fromType in interface TypeConvertor
      Returns:
      The type being converted from.
    • toType

      public final Class<?> toType()
      Get the type being converted to.
      Specified by:
      toType in interface TypeConvertor
      Returns:
      The type being converted to.
    • toString

      public final String toString()
      Overrides:
      toString in class Object