Public Member Functions | |
Object | convert (Object object, String param) throws ClassCastException |
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.
Object org.exolab.castor.mapping.TypeConvertor.convert | ( | Object | object, | |
String | param | |||
) | throws ClassCastException |
Convert the object from one type to another.
object | The object to convert | |
param | The parameter for the convertor (null if is not specified) |
ClassCastException | The object is not of the type supported by this convertor |
Implemented in org.exolab.castor.xml.Introspector.IdentityConvertor, and org.exolab.castor.xml.XMLMappingLoader.IdentityConvertor.
Referenced by org.exolab.castor.mapping.loader.FieldHandlerImpl.getValue(), and org.exolab.castor.mapping.loader.FieldHandlerImpl.setValue().