dk.vajhoej.record
Annotation Type StructField


@Retention(value=RUNTIME)
public @interface StructField

Annotation for fields.


Required Element Summary
 int n
          Field number.
 FieldType type
          Field type.
 
Optional Element Summary
 int decimals
          Field decimals (for BCD's).
 java.lang.String encoding
          Field encoding (for strings).
 int length
          Field length (for fixed length strings and BCD's).
 byte zone
          Field zone value (for zoned BCD's).
 

Element Detail

n

public abstract int n
Field number.

Returns:
number starting at zero

type

public abstract FieldType type
Field type.

Returns:
type

length

public abstract int length
Field length (for fixed length strings and BCD's).

Returns:
length
Default:
0

decimals

public abstract int decimals
Field decimals (for BCD's).

Default:
0

encoding

public abstract java.lang.String encoding
Field encoding (for strings).

Returns:
encoding name
Default:
"ISO-8859-1"

zone

public abstract byte zone
Field zone value (for zoned BCD's).

Default:
15