@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 PropertyEditorTypeConverter()
public void clear()
public boolean allowNull()
TypeConverter
allowNull
in interface TypeConverter
public <T> T convertTo(Class<T> type, Object value)
TypeConverter
convertTo
in interface TypeConverter
type
- the requested typevalue
- the value to be convertedpublic <T> T convertTo(Class<T> type, Exchange exchange, Object value)
TypeConverter
convertTo
in interface TypeConverter
type
- the requested typeexchange
- the current exchangevalue
- the value to be convertedpublic <T> T mandatoryConvertTo(Class<T> type, Object value)
TypeConverter
mandatoryConvertTo
in interface TypeConverter
type
- the requested typevalue
- the value to be convertedpublic <T> T mandatoryConvertTo(Class<T> type, Exchange exchange, Object value)
TypeConverter
mandatoryConvertTo
in interface TypeConverter
type
- the requested typeexchange
- the current exchangevalue
- the value to be convertedpublic <T> T tryConvertTo(Class<T> type, Exchange exchange, Object value)
TypeConverter
tryConvertTo
in interface TypeConverter
type
- the requested typeexchange
- the current exchangevalue
- the value to be convertedpublic <T> T tryConvertTo(Class<T> type, Object value)
TypeConverter
tryConvertTo
in interface TypeConverter
type
- the requested typevalue
- the value to be convertedApache Camel