Class EnumTypeConverter

java.lang.Object
org.apache.camel.support.TypeConverterSupport
org.apache.camel.impl.converter.EnumTypeConverter
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.spi.HasCamelContext, org.apache.camel.TypeConverter

public class EnumTypeConverter extends org.apache.camel.support.TypeConverterSupport implements org.apache.camel.CamelContextAware
A type converter which is used to convert from String to enum type
  • Field Summary

    Fields inherited from interface org.apache.camel.TypeConverter

    MISS_VALUE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    convertTo(Class<T> type, org.apache.camel.Exchange exchange, Object value)
     
    org.apache.camel.CamelContext
     
    void
    setCamelContext(org.apache.camel.CamelContext camelContext)
     

    Methods inherited from class org.apache.camel.support.TypeConverterSupport

    allowNull, convertTo, mandatoryConvertTo, mandatoryConvertTo, tryConvertTo, tryConvertTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EnumTypeConverter

      public EnumTypeConverter()
  • Method Details

    • getCamelContext

      public org.apache.camel.CamelContext getCamelContext()
      Specified by:
      getCamelContext in interface org.apache.camel.spi.HasCamelContext
    • setCamelContext

      public void setCamelContext(org.apache.camel.CamelContext camelContext)
      Specified by:
      setCamelContext in interface org.apache.camel.CamelContextAware
    • convertTo

      public <T> T convertTo(Class<T> type, org.apache.camel.Exchange exchange, Object value)
      Specified by:
      convertTo in interface org.apache.camel.TypeConverter