org.exolab.castor.mapping
Interface TypeConvertor

All Known Implementing Classes:
Introspector.IdentityConvertor, XMLMappingLoader.IdentityConvertor

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: 7272 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
Author:
Assaf Arkin

Method Summary
 java.lang.Object convert(java.lang.Object object)
          Convert the object from one type to another.
 

Method Detail

convert

public java.lang.Object convert(java.lang.Object object)
                         throws java.lang.ClassCastException
Convert the object from one type to another.

Parameters:
object - The object to convert.
Returns:
The converted object.
Throws:
java.lang.ClassCastException - The object is not of the type supported by this convertor.


Copyright 2008 null. All Rights Reserved.