org.castor.cpa.persistence.convertor
Class EnumTypeConvertor
java.lang.Object
org.castor.cpa.persistence.convertor.AbstractTypeConvertor
org.castor.cpa.persistence.convertor.AbstractSimpleTypeConvertor
org.castor.cpa.persistence.convertor.EnumTypeConvertor
- All Implemented Interfaces:
- Cloneable, TypeConvertor
public class EnumTypeConvertor
- extends AbstractSimpleTypeConvertor
Custom convertor used to handle enum types.
EnumTypeConvertor
public EnumTypeConvertor(Class<?> fromType,
Class<?> toType,
Method method)
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.