org.castor.cpa.persistence.convertor
Class AbstractTypeConvertor

java.lang.Object
  extended by org.castor.cpa.persistence.convertor.AbstractTypeConvertor
All Implemented Interfaces:
Cloneable, 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: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Ralf Joachim

Constructor Summary
AbstractTypeConvertor(Class<?> fromType, Class<?> toType)
          Construct a Converter between given fromType an toType.
 
Method Summary
 Object clone()
          Creates and returns a copy of this object.
 Class<?> fromType()
          Get the type being converted from.
 String toString()
          
 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
 

Constructor Detail

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 Detail

clone

public final Object clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.

fromType

public final Class<?> fromType()
Get the type being converted from.

Returns:
The type being converted from.

toType

public final Class<?> toType()
Get the type being converted to.

Returns:
The type being converted to.

toString

public final String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.