Class SimpleTypeConverter
java.lang.Object
org.apache.camel.support.SimpleTypeConverter
- All Implemented Interfaces:
org.apache.camel.TypeConverter
Another base class for
TypeConverter implementations.
Implementators need only to implement a SimpleTypeConverter.ConversionMethod method, and can rely on the default implementations
of the other methods from this support class.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.camel.TypeConverter
MISS_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionSimpleTypeConverter(boolean allowNull, SimpleTypeConverter.ConversionMethod method) -
Method Summary
Modifier and TypeMethodDescriptionboolean<T> T<T> T<T> TmandatoryConvertTo(Class<T> type, Object value) <T> TmandatoryConvertTo(Class<T> type, org.apache.camel.Exchange exchange, Object value) <T> TtryConvertTo(Class<T> type, Object value) <T> TtryConvertTo(Class<T> type, org.apache.camel.Exchange exchange, Object value)
-
Constructor Details
-
SimpleTypeConverter
-
-
Method Details
-
allowNull
public boolean allowNull()- Specified by:
allowNullin interfaceorg.apache.camel.TypeConverter
-
convertTo
-
mandatoryConvertTo
public <T> T mandatoryConvertTo(Class<T> type, Object value) throws org.apache.camel.TypeConversionException, org.apache.camel.NoTypeConversionAvailableException - Specified by:
mandatoryConvertToin interfaceorg.apache.camel.TypeConverter- Throws:
org.apache.camel.TypeConversionExceptionorg.apache.camel.NoTypeConversionAvailableException
-
mandatoryConvertTo
public <T> T mandatoryConvertTo(Class<T> type, org.apache.camel.Exchange exchange, Object value) throws org.apache.camel.TypeConversionException, org.apache.camel.NoTypeConversionAvailableException - Specified by:
mandatoryConvertToin interfaceorg.apache.camel.TypeConverter- Throws:
org.apache.camel.TypeConversionExceptionorg.apache.camel.NoTypeConversionAvailableException
-
tryConvertTo
-
tryConvertTo
-
convertTo
-