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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowEmptyStream
(boolean allowEmptyStream) Whether to allow empty streams in the unmarshal process.allowEmptyStream
(String allowEmptyStream) Whether to allow empty streams in the unmarshal process.Name of model class to use.Name of model class to use.end()
Ends the build of the data format.To configure a default locale to use, such as us for united states.Whether to use Csv, Fixed, or KeyValue.unwrapSingleInstance
(boolean unwrapSingleInstance) When unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List.unwrapSingleInstance
(String unwrapSingleInstance) When unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Whether to use Csv, Fixed, or KeyValue. -
type
-
classType
Name of model class to use. -
classType
Name of model class to use. -
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
When unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List. -
unwrapSingleInstance
When unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List. -
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
Whether to allow empty streams in the unmarshal process. If true, no exception will be thrown when a body without records is provided. -
end
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<BindyDataFormat>
- Returns:
- the data format fully built.
-