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 forBindyDataFormat
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BindyDataFormat.Builder
allowEmptyStream(boolean allowEmptyStream)
Whether to allow empty streams in the unmarshal process.BindyDataFormat.Builder
allowEmptyStream(String allowEmptyStream)
Whether to allow empty streams in the unmarshal process.BindyDataFormat.Builder
classType(Class<?> classType)
Name of model class to use.BindyDataFormat.Builder
classType(String classType)
Name of model class to use.BindyDataFormat
end()
Ends the build of the data format.BindyDataFormat.Builder
locale(String locale)
To configure a default locale to use, such as us for united states.BindyDataFormat.Builder
type(String type)
Whether to use Csv, Fixed, or KeyValue.BindyDataFormat.Builder
type(BindyType type)
BindyDataFormat.Builder
unwrapSingleInstance(boolean unwrapSingleInstance)
When unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List.BindyDataFormat.Builder
unwrapSingleInstance(String unwrapSingleInstance)
When unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List.
-
-
-
Method Detail
-
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 classType)
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 interfaceDataFormatBuilder<BindyDataFormat>
- Returns:
- the data format fully built.
-
-