org.apache.camel.dataformat.bindy.annotation
Annotation Type KeyValuePairField


@Documented
@Retention(value=RUNTIME)
public @interface KeyValuePairField

An annotation used to identify in a POJO which property is link to a key value pair field The tag (mandatory) identifies the key of the key value pair (e.g. 8 equals the begin string in FIX The name (optional) could be used in the future to bind a property which a different name The pattern (optional) allows to define the pattern of the data (useful for Date, BigDecimal ...) The precision (optional) reflects the precision to be used with BigDecimal number The required (optional) field allows to define if the field is required or not. This property is not yet used but will be useful in the future with the validation The position (optional) field is used to order the tags during the creation of the message


Required Element Summary
 int tag
          tag identifying the field in the message (mandatory)
 
Optional Element Summary
 String name
          name of the field (optional)
 String pattern
          pattern that the formater will use to transform the data (optional)
 int position
          Position of the field in the message generated
 int precision
          precision of the BigDecimal number to be created
 boolean required
           
 

Element Detail

tag

public abstract int tag
tag identifying the field in the message (mandatory)

Returns:
int

name

public abstract String name
name of the field (optional)

Returns:
String
Default:
""

pattern

public abstract String pattern
pattern that the formater will use to transform the data (optional)

Returns:
String
Default:
""

position

public abstract int position
Position of the field in the message generated

Returns:
int
Default:
0

precision

public abstract int precision
precision of the BigDecimal number to be created

Returns:
int
Default:
0

required

public abstract boolean required
Default:
false


Apache CAMEL