org.castor.cpa.persistence.convertor
Class EnumTypeConvertor

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.EnumTypeConvertor
All Implemented Interfaces:
Cloneable, TypeConvertor

public class EnumTypeConvertor
extends AbstractSimpleTypeConvertor

Custom convertor used to handle enum types.


Constructor Summary
EnumTypeConvertor(Class<?> fromType, Class<?> toType, Method method)
           
 
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

EnumTypeConvertor

public EnumTypeConvertor(Class<?> fromType,
                         Class<?> toType,
                         Method method)
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.