org.apache.camel.impl.converter
Class PropertyEditorTypeConverter
java.lang.Object
org.apache.camel.impl.converter.PropertyEditorTypeConverter
- All Implemented Interfaces:
- TypeConverter
public class PropertyEditorTypeConverter
- extends Object
- implements TypeConverter
Uses the PropertyEditor
conversion system to convert Objects to
and from String values.
- Version:
- $Revision: 46981 $
Method Summary |
|
convertTo(Class<T> type,
Exchange exchange,
Object value)
Converts the value to the specified type in the context of an exchange
Used when conversion requires extra information from the current
exchange (such as encoding). |
|
convertTo(Class<T> toType,
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 |
PropertyEditorTypeConverter
public PropertyEditorTypeConverter()
convertTo
public <T> T convertTo(Class<T> toType,
Object value)
- Description copied from interface:
TypeConverter
- Converts the value to the specified type
- Specified by:
convertTo
in interface TypeConverter
- Parameters:
toType
- the requested typevalue
- the value to be converted
- Returns:
- the converted value
convertTo
public <T> T convertTo(Class<T> type,
Exchange exchange,
Object value)
- Description copied from interface:
TypeConverter
- Converts the value to the specified type in the context of an exchange
Used when conversion requires extra information from the current
exchange (such as encoding).
- Specified by:
convertTo
in interface TypeConverter
- Parameters:
type
- the requested typeexchange
- the current exchangevalue
- the value to be converted
- Returns:
- the converted value
Copyright © 2009 IONA Open Source Community. All Rights Reserved.