Class BindyDataFormat
- java.lang.Object
-
- org.apache.camel.model.IdentifiedType
-
- org.apache.camel.model.DataFormatDefinition
-
- org.apache.camel.model.dataformat.BindyDataFormat
-
@Metadata(firstVersion="2.0.0", label="dataformat,transformation,csv", title="Bindy") public class BindyDataFormat extends DataFormatDefinition
Marshal and unmarshal Java beans from and to flat payloads (such as CSV, delimited, fixed length formats, or FIX messages).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BindyDataFormat.Builder
Builder
is a specific builder forBindyDataFormat
.
-
Constructor Summary
Constructors Constructor Description BindyDataFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BindyDataFormat
allowEmptyStream(boolean allowEmptyStream)
BindyDataFormat
allowEmptyStream(String allowEmptyStream)
BindyDataFormat
classType(Class<?> classType)
BindyDataFormat
classType(String classType)
BindyDataFormat
csv()
BindyDataFormat
fixed()
String
getAllowEmptyStream()
Class<?>
getClassType()
String
getClassTypeAsString()
String
getDataFormatName()
String
getLocale()
String
getType()
String
getUnwrapSingleInstance()
BindyDataFormat
keyValue()
BindyDataFormat
locale(String locale)
BindyDataFormat
locale(Locale locale)
void
setAllowEmptyStream(String allowEmptyStream)
Whether to allow empty streams in the unmarshal process.void
setClassType(Class<?> classType)
Name of model class to use.void
setClassType(String classType)
Name of model class to use.void
setClassTypeAsString(String classType)
Name of model class to use.void
setLocale(String locale)
To configure a default locale to use, such as us for united states.void
setType(String type)
Whether to use Csv, Fixed, or KeyValue.void
setUnwrapSingleInstance(String unwrapSingleInstance)
When unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List.BindyDataFormat
type(String type)
BindyDataFormat
type(BindyType type)
BindyDataFormat
unwrapSingleInstance(boolean unwrapSingleInstance)
BindyDataFormat
unwrapSingleInstance(String unwrapSingleInstance)
-
Methods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getShortName, setDataFormat, setDataFormatName
-
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
-
-
-
Method Detail
-
getType
public String getType()
-
setType
public void setType(String type)
Whether to use Csv, Fixed, or KeyValue.
-
getClassTypeAsString
public String getClassTypeAsString()
-
getDataFormatName
public String getDataFormatName()
- Overrides:
getDataFormatName
in classDataFormatDefinition
-
setClassTypeAsString
public void setClassTypeAsString(String classType)
Name of model class to use.
-
setClassType
public void setClassType(String classType)
Name of model class to use.
-
setClassType
public void setClassType(Class<?> classType)
Name of model class to use.
-
getClassType
public Class<?> getClassType()
-
getLocale
public String getLocale()
-
setLocale
public void setLocale(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
-
getUnwrapSingleInstance
public String getUnwrapSingleInstance()
-
setUnwrapSingleInstance
public void setUnwrapSingleInstance(String unwrapSingleInstance)
When unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List.
-
getAllowEmptyStream
public String getAllowEmptyStream()
-
setAllowEmptyStream
public void setAllowEmptyStream(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.
-
csv
public BindyDataFormat csv()
-
fixed
public BindyDataFormat fixed()
-
keyValue
public BindyDataFormat keyValue()
-
type
public BindyDataFormat type(BindyType type)
-
type
public BindyDataFormat type(String type)
-
classType
public BindyDataFormat classType(Class<?> classType)
-
classType
public BindyDataFormat classType(String classType)
-
locale
public BindyDataFormat locale(Locale locale)
-
locale
public BindyDataFormat locale(String locale)
-
unwrapSingleInstance
public BindyDataFormat unwrapSingleInstance(boolean unwrapSingleInstance)
-
unwrapSingleInstance
public BindyDataFormat unwrapSingleInstance(String unwrapSingleInstance)
-
allowEmptyStream
public BindyDataFormat allowEmptyStream(boolean allowEmptyStream)
-
allowEmptyStream
public BindyDataFormat allowEmptyStream(String allowEmptyStream)
-
-