|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) public @interface Constraint
This annotation denotes a single constraint. A getter may contain
multiple constraints: The Constraints
annotation is used
to group constraints.
Required Element Summary | |
---|---|
java.lang.String[] |
condition
Returns the constraints condition. |
Optional Element Summary | |
---|---|
java.lang.String |
errorCode
The error code, which is used for type "validation" only. |
java.lang.String |
scope
Returns the constraints scope. |
java.lang.String |
type
Returns the constraints type. |
Element Detail |
---|
public abstract java.lang.String[] condition
Condition
by the ConditionFactory
.
ConditionFactory
public abstract java.lang.String type
public abstract java.lang.String scope
Scope
by the ScopeFactory
.
ScopeFactory
public abstract java.lang.String errorCode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |