org.rblasch.convert.converters.lang
Class IdentityConverter

java.lang.Object
  extended byorg.rblasch.convert.converters.AbstractConverter
      extended byorg.rblasch.convert.converters.lang.IdentityConverter
All Implemented Interfaces:
Converter, MetaConverter

public class IdentityConverter
extends AbstractConverter

Author:
Ronald Blaschke

Constructor Summary
IdentityConverter(Type type)
           
 
Method Summary
 java.lang.Object convert(java.lang.Object obj)
          Try to convert the given Object.
 Type getDestinationType()
           
 Type getSourceType()
           
 int getWeight()
           
 
Methods inherited from class org.rblasch.convert.converters.AbstractConverter
equals, getConverter, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentityConverter

public IdentityConverter(Type type)
Method Detail

getSourceType

public Type getSourceType()

getDestinationType

public Type getDestinationType()

getWeight

public int getWeight()

convert

public java.lang.Object convert(java.lang.Object obj)
                         throws java.lang.Exception
Description copied from interface: Converter
Try to convert the given Object.

Parameters:
obj - Object
Returns:
converted Object
Throws:
java.lang.Exception - Conversion failed for some reason


Copyright © 2004 Ronald Blaschke. All Rights Reserved.