|
DRAFT | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConstraintDescriptor<T extends java.lang.annotation.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. |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns a map containing the annotation attribute names as keys and the annotation attribute values as value. |
java.util.Set<ConstraintDescriptor<?>> |
getComposingConstraints()
Return a set of composing ConstraintDescriptors where each
descriptor describes a composing constraint. |
java.util.List<java.lang.Class<? extends ConstraintValidator<T,?>>> |
getConstraintValidatorClasses()
List of the constraint validation implementation classes. |
java.util.Set<java.lang.Class<?>> |
getGroups()
The set of groups the constraint is applied on. |
java.util.Set<java.lang.Class<? extends Payload>> |
getPayload()
The set of payload the constraint hosts. |
boolean |
isReportAsSingleViolation()
|
| Method Detail |
|---|
T getAnnotation()
java.util.Set<java.lang.Class<?>> getGroups()
Default
group is returned.
java.util.Set<java.lang.Class<? extends Payload>> getPayload()
java.util.List<java.lang.Class<? extends ConstraintValidator<T,?>>> getConstraintValidatorClasses()
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
java.util.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 constraints.boolean isReportAsSingleViolation()
@ReportAsSingleViolation
|
DRAFT | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.
Generated on 24-November-2009 03:24