org.exolab.castor.xml

Class XMLMappingLoader.IdentityConvertor

Enclosing Class:
XMLMappingLoader
Implemented Interfaces:
TypeConvertor

(package private) class XMLMappingLoader.IdentityConvertor
extends java.lang.Object
implements TypeConvertor

A special TypeConvertor that simply returns the object given. This is used for preventing the FieldHandlerImpl from using a CollectionHandler when getValue is called.

Method Summary

Object
convert(Object object, String param)
Convert the object from one type to another.

Method Details

convert

public Object convert(Object object,
                      String param)
            throws ClassCastException
Convert the object from one type to another.
Specified by:
convert in interface TypeConvertor
Parameters:
object - The object to convert
param - The parameter for the convertor (null if is not specified)
Returns:
The converted object

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com