Class BindyDataFormat.Builder

java.lang.Object
org.apache.camel.model.dataformat.BindyDataFormat.Builder
All Implemented Interfaces:
DataFormatBuilder<BindyDataFormat>
Enclosing class:
BindyDataFormat

public static class BindyDataFormat.Builder extends Object implements DataFormatBuilder<BindyDataFormat>
Builder is a specific builder for BindyDataFormat.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • type

      public BindyDataFormat.Builder type(String type)
      Whether to use Csv, Fixed, or KeyValue.
    • type

      public BindyDataFormat.Builder type(BindyType type)
    • classType

      public BindyDataFormat.Builder classType(String classTypeAsString)
      Name of model class to use.
    • classType

      public BindyDataFormat.Builder classType(Class<?> classType)
      Name of model class to use.
    • locale

      public BindyDataFormat.Builder locale(String locale)
      To configure a default locale to use, such as us for united states.

      To use the JVM platform default locale then use the name default

    • unwrapSingleInstance

      public BindyDataFormat.Builder unwrapSingleInstance(String unwrapSingleInstance)
      When unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List.
    • unwrapSingleInstance

      public BindyDataFormat.Builder unwrapSingleInstance(boolean unwrapSingleInstance)
      When unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List.
    • allowEmptyStream

      public BindyDataFormat.Builder allowEmptyStream(String allowEmptyStream)
      Whether to allow empty streams in the unmarshal process. If true, no exception will be thrown when a body without records is provided.
    • allowEmptyStream

      public BindyDataFormat.Builder allowEmptyStream(boolean allowEmptyStream)
      Whether to allow empty streams in the unmarshal process. If true, no exception will be thrown when a body without records is provided.
    • end

      public BindyDataFormat end()
      Description copied from interface: DataFormatBuilder
      Ends the build of the data format.
      Specified by:
      end in interface DataFormatBuilder<BindyDataFormat>
      Returns:
      the data format fully built.