@Documented @Retention(value=RUNTIME) public @interface DataField
Modifier and Type | Required Element and Description |
---|---|
int |
pos
Position of the data in the input record, must start from 1 (mandatory).
|
Modifier and Type | Optional Element and Description |
---|---|
String |
align
Align the text to the right or left.
|
boolean |
clip
Indicates to clip data in the field if it exceeds the allowed length when using fixed length.
|
String |
columnName
Name of the header column (optional)
|
String |
decimalSeparator
Decimal Separator to be used with BigDecimal number
|
String |
defaultValue
Field's default value in case no value is set
|
String |
delimiter
Optional delimiter to be used if the field has a variable length
|
String |
groupingSeparator
Grouping Separator to be used with BigDecimal number
when we would like to format/parse to number with grouping
e.g.
|
boolean |
impliedDecimalSeparator
Indicates if there is a decimal point implied at a specified location
|
int |
length
Length of the data block (number of characters) if the record is set to a fixed length
|
int |
lengthPos
Identifies a data field in the record that defines the expected fixed length for this field
|
String |
method
Method name to call to apply such customization
on DataField.
|
String |
name
Name of the field (optional)
|
char |
paddingChar
The char to pad with if the record is set to a fixed length
|
String |
pattern
Pattern that the formatter will use to transform the data (optional)
|
int |
position
Position of the field in the output message generated (should start from 1)
|
int |
precision
precision of the
BigDecimal number to be created |
boolean |
required
Indicates if the field is mandatory
|
String |
rounding
Round mode to be used to round/scale a BigDecimal
Values : UP, DOWN, CEILING, FLOOR, HALF_UP, HALF_DOWN,HALF_EVEN, UNNECESSARY
e.g : Number = 123456.789, Precision = 2, Rounding = CEILING
Result : 123456.79
|
String |
timezone |
boolean |
trim
Indicates if the value should be trimmed
|
public abstract int pos
public abstract String name
public abstract String columnName
public abstract String pattern
public abstract String timezone
public abstract int length
public abstract int lengthPos
public abstract String align
public abstract char paddingChar
public abstract int precision
BigDecimal
number to be createdpublic abstract int position
pos()
public abstract boolean clip
public abstract String delimiter
public abstract String defaultValue
public abstract boolean impliedDecimalSeparator
public abstract String decimalSeparator
public abstract String groupingSeparator
public abstract String rounding
public abstract String method
Apache Camel