org.castor.cpa.persistence.convertor
Class EnumToOrdinal

java.lang.Object
  extended by org.castor.cpa.persistence.convertor.AbstractTypeConvertor
      extended by org.castor.cpa.persistence.convertor.AbstractSimpleTypeConvertor
          extended by org.castor.cpa.persistence.convertor.EnumToOrdinal
All Implemented Interfaces:
Cloneable, TypeConvertor

public class EnumToOrdinal
extends AbstractSimpleTypeConvertor


Constructor Summary
EnumToOrdinal()
          Creates an instance of this class.
 
Method Summary
 Object convert(Object object)
          Convert the object from one type to another.
 
Methods inherited from class org.castor.cpa.persistence.convertor.AbstractSimpleTypeConvertor
configure, parameterize
 
Methods inherited from class org.castor.cpa.persistence.convertor.AbstractTypeConvertor
clone, fromType, toString, toType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumToOrdinal

public EnumToOrdinal()
Creates an instance of this class.

Method Detail

convert

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

Parameters:
object - The object to convert.
Returns:
The converted object.


Copyright © 2011. All Rights Reserved.