org.rblasch.convert.converters.lang
Class CastConverter
java.lang.Object
org.rblasch.convert.converters.AbstractConverter
org.rblasch.convert.converters.lang.CastConverter
- All Implemented Interfaces:
- Converter, MetaConverter
- public class CastConverter
- extends AbstractConverter
- Author:
- Ronald Blaschke
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CastConverter
public CastConverter(Type sourceType,
Type destinationType)
CastConverter
public CastConverter(java.lang.Class sourceClass,
java.lang.Class destinationClass)
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.