Package javax.validation
Annotation Type Constraint
-
@Documented @Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface ConstraintMeta annotation to declare a constraint annotation. Every custom constraint annotation meta-annotated with this very annotation must implement the following fields:String message()- the message to be used if this constraint is violated.Class<?>[] groups() default {};- the validation group. SeeGroupSequence. If a constraint gets applied without any specific group thenDefaultis assumed.Class<? extends Payload>[] payload() default {};- CustomPayloadfor the contstraint.
- Version:
- $Rev$ $Date$
- See Also:
Built in Constraints
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends ConstraintValidator<?,?>>[]validatedBy
-
-
-
Element Detail
-
validatedBy
java.lang.Class<? extends ConstraintValidator<?,?>>[] validatedBy
- Returns:
- the
ConstraintValidatorwhich gets used when this constraint is applied to fields, methods (getters), types or parameter.
-
-