|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=FIELD) public @interface FlrField
FLR field annotation.
Required Element Summary | |
---|---|
int |
pos
The position of the field with the following semantic: If the position of a field A is less than the position of a field B, than field A comes (not necessarily directly) before field B. |
Optional Element Summary | |
---|---|
Align |
align
The alignment of values which length is less than the required fixed length. |
String[] |
constraints
The constraints to validate. |
Class<? extends SimpleTypeConverter> |
converterType
Specifies the converter type to be used. |
boolean |
crop
Relevant for the serializing operation. |
String |
dataTypeName
The name of the data type of the FLR field this annotation describes. |
String[] |
format
The format to be used to construct a SimpleTypeConverter for this field. |
int |
length
The length of the field in characters. |
SimpleListItem |
listItem
In case of a simple type list this annotation parameter provides details about the list items. |
char |
padCharacter
The pad character used to fill empty space. |
boolean |
required
True, if a value is required; false otherwise. |
Class<? extends Validator> |
validatorType
Specifies the validator type to be used. |
Element Detail |
---|
public abstract int pos
If the position of a field A is less than the position of a field B, than field A comes (not necessarily
directly) before field B.
The positions of all fields must specify a total order.
public abstract String dataTypeName
It should be explicitly set if the type mapping should not be created from the annotations given in the class of the annotated field. This is useful when mixing explicit type mapping creation with annotation based type mapping creation.
public abstract String[] format
SimpleTypeConverter
for this field. The
SimpleTypeConverter
class will be determined using the type of the annotated java field.
public abstract int length
public abstract boolean crop
true
an overlong field value will
be cropped to the specified length (column width). Default behavior until JSefa version 0.9.4.
If set to false
a SerializationException
is thrown in case of an overlong value
length (default behavior now).
Remind that configuring this setting to true
generally may suit to string fields but
is less favorable for Date
and other data types. By setting to true
you
may loose information while serializing.
public abstract char padCharacter
public abstract Align align
public abstract Class<? extends SimpleTypeConverter> converterType
public abstract SimpleListItem listItem
public abstract boolean required
public abstract Class<? extends Validator> validatorType
public abstract String[] constraints
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |