net.sf.jsefa.flr.annotation
Annotation Type FlrSubRecordList


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface FlrSubRecordList

An annotation declaring a list of FLR sub records.

Author:
Norman Lahme-Huetig

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.
 Record[] records
          The array of Record annotations describing the list items.
 
Optional Element Summary
 String[] constraints
          The constraints to validate.
 boolean required
          True, if a value is required; false otherwise.
 Class<? extends Validator> validatorType
          Specifies the validator type to be used.
 

Element Detail

pos

public abstract 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.
The positions of all fields must specify a total order of the fields.


records

public abstract Record[] records
The array of Record annotations describing the list items.

required

public abstract boolean required
True, if a value is required; false otherwise.

Default:
false

validatorType

public abstract Class<? extends Validator> validatorType
Specifies the validator type to be used. In the default case the validator type is determined using the type of the java field with this annotation.

Default:
net.sf.jsefa.common.annotation.NoValidatorType.class

constraints

public abstract String[] constraints
The constraints to validate. Each constraint is a String of the form 'name=value' where name is the name of the constraint and value is its value. The allowed set of constraints depend on the validator type.

Default:
{}


Copyright © 2014. All rights reserved.