@Deprecated public class PropertyEditorTypeConverter extends Object implements TypeConverter
PropertyEditor conversion system to convert Objects to
and from String values.| Constructor and Description |
|---|
PropertyEditorTypeConverter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowNull()
Deprecated.
Whether the type converter allows returning null as a valid response.
|
void |
clear()
Deprecated.
|
<T> T |
convertTo(Class<T> type,
Exchange exchange,
Object value)
Deprecated.
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).
|
<T> T |
convertTo(Class<T> type,
Object value)
Deprecated.
Converts the value to the specified type
|
<T> T |
mandatoryConvertTo(Class<T> type,
Exchange exchange,
Object value)
Deprecated.
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).
|
<T> T |
mandatoryConvertTo(Class<T> type,
Object value)
Deprecated.
Converts the value to the specified type
|
<T> T |
tryConvertTo(Class<T> type,
Exchange exchange,
Object value)
Deprecated.
Tries to convert the value to the specified type in the context of an exchange,
returning null if not possible to convert.
|
<T> T |
tryConvertTo(Class<T> type,
Object value)
Deprecated.
Tries to convert the value to the specified type,
returning null if not possible to convert.
|
public void clear()
public boolean allowNull()
TypeConverterallowNull in interface TypeConverterpublic <T> T convertTo(Class<T> type, Object value)
TypeConverterconvertTo in interface TypeConvertertype - the requested typevalue - the value to be convertedpublic <T> T convertTo(Class<T> type, Exchange exchange, Object value)
TypeConverterconvertTo in interface TypeConvertertype - the requested typeexchange - the current exchangevalue - the value to be convertedpublic <T> T mandatoryConvertTo(Class<T> type, Object value)
TypeConvertermandatoryConvertTo in interface TypeConvertertype - the requested typevalue - the value to be convertedpublic <T> T mandatoryConvertTo(Class<T> type, Exchange exchange, Object value)
TypeConvertermandatoryConvertTo in interface TypeConvertertype - the requested typeexchange - the current exchangevalue - the value to be convertedpublic <T> T tryConvertTo(Class<T> type, Exchange exchange, Object value)
TypeConvertertryConvertTo in interface TypeConvertertype - the requested typeexchange - the current exchangevalue - the value to be convertedpublic <T> T tryConvertTo(Class<T> type, Object value)
TypeConvertertryConvertTo in interface TypeConvertertype - the requested typevalue - the value to be convertedApache Camel