|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.converter.ToStringTypeConverter
public class ToStringTypeConverter
A simple converter that can convert any object to a String type by using the toString() method of the object.
Constructor Summary | |
---|---|
ToStringTypeConverter()
|
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 |
|
|
mandatoryConvertTo(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). |
|
|
mandatoryConvertTo(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 |
---|
public ToStringTypeConverter()
Method Detail |
---|
public <T> T convertTo(Class<T> toType, Object value)
TypeConverter
convertTo
in interface TypeConverter
toType
- the requested typevalue
- the value to be converted
public <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 converted
public <T> T mandatoryConvertTo(Class<T> type, Object value)
TypeConverter
mandatoryConvertTo
in interface TypeConverter
type
- the requested typevalue
- the value to be converted
public <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 converted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |