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: 1.1.1.1 $ $Date: 2003/03/03 07:08:28 $
- Author:
- Assaf Arkin
Method Summary |
java.lang.Object |
convert(java.lang.Object object,
java.lang.String param)
Convert the object from one type to another. |
convert
public java.lang.Object convert(java.lang.Object object,
java.lang.String param)
throws java.lang.ClassCastException
- Convert the object from one type to another.
- Parameters:
object
- The object to convertparam
- The parameter for the convertor (null if is not specified)
- Returns:
- The converted object
- Throws:
java.lang.ClassCastException
- The object is not of the type
supported by this convertor
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com