Package org.exolab.castor.xml
Class XMLMappingLoader.IdentityConvertor
- java.lang.Object
-
- org.exolab.castor.xml.XMLMappingLoader.IdentityConvertor
-
- All Implemented Interfaces:
TypeConvertor
- Enclosing class:
- XMLMappingLoader
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.
-
-
Constructor Summary
Constructors Constructor Description IdentityConvertor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
Description copied from interface:TypeConvertor
Convert the object from one type to another.- Specified by:
convert
in interfaceTypeConvertor
- Parameters:
object
- The object to convert.- Returns:
- The converted object.
-
-