org.apache.camel.impl
Class DefaultTypeConverter

java.lang.Object
  extended by org.apache.camel.impl.DefaultTypeConverter
All Implemented Interfaces:
TypeConverter

public class DefaultTypeConverter
extends Object
implements TypeConverter

Version:
$Revision: 520517 $

Constructor Summary
DefaultTypeConverter()
           
 
Method Summary
<T> T
convertTo(Class<T> type, Object value)
          Converts the value to the specified type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTypeConverter

public DefaultTypeConverter()
Method Detail

convertTo

public <T> T convertTo(Class<T> type,
                       Object value)
Description copied from interface: TypeConverter
Converts the value to the specified type

Specified by:
convertTo in interface TypeConverter
Parameters:
type - the requested type
value - the value to be converted
Returns:
the converted value or null if it can not be converted


Copyright © 2007 Apache Software Foundation. All Rights Reserved.