org.exolab.castor.xml
Class Introspector.IdentityConvertor

java.lang.Object
  extended by org.exolab.castor.xml.Introspector.IdentityConvertor
All Implemented Interfaces:
TypeConvertor
Enclosing class:
Introspector

 class Introspector.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.


Constructor Summary
Introspector.IdentityConvertor()
           
 
Method Summary
 java.lang.Object convert(java.lang.Object object, java.lang.String param)
          Convert the object from one type to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Introspector.IdentityConvertor

Introspector.IdentityConvertor()
Method Detail

convert

public java.lang.Object convert(java.lang.Object object,
                                java.lang.String param)
                         throws java.lang.ClassCastException
Description copied from interface: TypeConvertor
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
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