org.javalid.annotations.validation
Annotation Type ValidateList


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface ValidateList

Annotate a method returning a java.util.List, where the elements in the list require validation. The framework will then validate each element in the list. It is recommended that the List contains the same type of elements, however this is not a requirement.

Since:
1.0
Version:
1.0
Author:
M.Reuvers

Optional Element Summary
 java.lang.String[] applyToGroups
          Specify for which groups this annotation must be applied.
 boolean globalMessage
          If this annotation's message must be added as global message instead of real validation path.
 

applyToGroups

public abstract java.lang.String[] applyToGroups
Specify for which groups this annotation must be applied. By default if you annotate without this variable, the annotation is applied for any group on that method (which is what you usually want). However by specifying the exact groups you can turn on/off a validation on a method depending on the group you validate.

Defaults to JvGroup.GROUP_APPLY_ALL

Default:
"_all_"

globalMessage

public abstract boolean globalMessage
If this annotation's message must be added as global message instead of real validation path. Defaults to false (thus will be added with validation path if invalid).

Default:
false