javax.validation.constraints
Annotation Type AssertTrue
@Target(value={METHOD,FIELD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
@Constraint(validatedBy={})
public @interface AssertTrue
The annotated element must be true.
Supported types are boolean
and Boolean
null
elements are considered valid.
- Author:
- Emmanuel Bernard
Optional Element Summary |
java.lang.Class<?>[] |
groups
|
java.lang.String |
message
|
message
public abstract java.lang.String message
- Default:
- "{constraint.assertTrue}"
groups
public abstract java.lang.Class<?>[] groups
- Default:
- {}
Copyright © 2007-2009. All Rights Reserved.