Public Member Functions

org.exolab.castor.mapping.TypeConvertor Interface Reference

Inheritance diagram for org.exolab.castor.mapping.TypeConvertor:
org.exolab.castor.xml.Introspector.IdentityConvertor org.exolab.castor.xml.XMLMappingLoader.IdentityConvertor

List of all members.

Public Member Functions

Object convert (Object object, String param) throws ClassCastException

Detailed Description

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.

Author:
Assaf Arkin
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:08:28

Member Function Documentation

Object org.exolab.castor.mapping.TypeConvertor.convert ( Object  object,
String  param 
) throws ClassCastException

Convert the object from one type to another.

Parameters:
object The object to convert
param The parameter for the convertor (null if is not specified)
Returns:
The converted object
Exceptions:
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().


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties