org.javalid.annotations.core
Annotation Type StopValidation


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

This annotation can be used to abort processing of a field and/or method. This is especially useful when you're using recursive validation or for certain groups do not want to validate (it is similar to JvGroups disableRecursionForGroups but the name is more clear).

Since:
1.2
Version:
1.0
Author:
M.Reuvers

Optional Element Summary
 java.lang.String group
          What group to stop validation for.
 java.lang.String[] groups
          What groups to stop validation for.
 

group

public abstract java.lang.String group
What group to stop validation for. Defaults to JvGroup.DEFAULT_GROUP

See Also:
JvGroup
Default:
"1"

groups

public abstract java.lang.String[] groups
What groups to stop validation for. Defaults to nothing (empty). Note if this is set, it overrides the group() setting!

See Also:
JvGroup
Default:
{}