Package org.exolab.castor.mapping
Interface TypeConvertor
public interface TypeConvertor
Interface for a type convertor. A type convertor converts a Java object from one type to another.
A type convertor implementation is required for each type of conversion.
- Version:
- $Revision$ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Assaf Arkin
-
Method Summary
-
Method Details
-
convert
Convert the object from one type to another.- Parameters:
object
- The object to convert.- Returns:
- The converted object.
- Throws:
ClassCastException
- The object is not of the type supported by this convertor.
-