|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConstraintDescriptor<T extends Annotation>
Describes a single constraint and its composing constraints.
T is the constraint's annotation type.
| Method Summary | |
|---|---|
T |
getAnnotation()
Returns the annotation describing the constraint declaration. |
Map<String,Object> |
getAttributes()
Returns a map containing the annotation attribute names as keys and the annotation attribute values as value. |
Set<ConstraintDescriptor<?>> |
getComposingConstraints()
Return a set of composing ConstraintDescriptors where each
descriptor describes a composing constraint. |
List<Class<? extends ConstraintValidator<T,?>>> |
getConstraintValidatorClasses()
List of the constraint validation implementation classes. |
Set<Class<?>> |
getGroups()
The set of groups the constraint is applied on. |
String |
getMessageTemplate()
The non-interpolated error message |
Set<Class<? extends Payload>> |
getPayload()
The set of payload the constraint hosts. |
ConstraintTarget |
getValidationAppliesTo()
The ConstraintTarget value of validationAppliesTo if the constraint
hosts it or null otherwise. |
boolean |
isReportAsSingleViolation()
|
| Method Detail |
|---|
T getAnnotation()
String getMessageTemplate()
Set<Class<?>> getGroups()
Default
group is returned.
Set<Class<? extends Payload>> getPayload()
ConstraintTarget getValidationAppliesTo()
ConstraintTarget value of validationAppliesTo if the constraint
hosts it or null otherwise.
ConstraintTarget value or nullList<Class<? extends ConstraintValidator<T,?>>> getConstraintValidatorClasses()
Map<String,Object> getAttributes()
Set<ConstraintDescriptor<?>> getComposingConstraints()
ConstraintDescriptors where each
descriptor describes a composing constraint. ConstraintDescriptor
instances of composing constraints reflect overridden attribute values in
getAttributes() and getAnnotation().
ConstraintDescriptor objects or an empty set
in case there are no composing constraintsboolean isReportAsSingleViolation()
true if the constraint is annotated with ReportAsSingleViolation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||