|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited public @interface ValidateDefinition
Core annotation which must be defined on class level for each class you wish in one way or another to do validation on.
TODO: NOT YET IMPLEMENTED ->
forceDoubleValidation can be overridden when calling through the AnnotationValidator.
If special validation is used on a class, it can be disabled through the AnnotationValidator (thus
only performing ordinary group validation). Please note that you should use these
options only and only if no other choice (it can be confusing!).
| Optional Element Summary | |
|---|---|
boolean |
forceDoubleValidation
This property is ONLY used in conjunction with validationType=TYPE_LOOKUP or TYPE_BEAN. |
Lookup |
lookup
Set if validationType = TYPE_LOOKUP. |
java.lang.String |
primaryGroup
The name of the group to validate when no group is specified through the validator. |
int |
validationType
What type of validation to apply to annotated class. |
public abstract java.lang.String primaryGroup
Defaults to "1", the same as JvGroup defaults too, making it easy for you if you need quick validation and don't want to write any group anywhere.
public abstract int validationType
1) TYPE_NORMAL (performs normal validation)
2) TYPE_LOOKUP (performs validation through a lookup such as spring or a javabean), use @Lookup then.
You can force applying both the group rules and special validation by setting the property: forceDoubleValidation to true (default is false).
Defaults to TYPE_NORMAL.
Note: For TYPE_LOOKUP you must use @Lookup.
public abstract boolean forceDoubleValidation
Defaults to false.
public abstract Lookup lookup
Defaults to empty lookup, through this one you can specify what lookup you wish to use (bean, spring ..)
Lookup
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||