public class ConstraintDescriptorImpl<T extends Annotation> extends Object implements ConstraintDescriptor<T>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ConstraintDescriptorImpl.ConstraintType
The type of a constraint.
|
Constructor and Description |
---|
ConstraintDescriptorImpl(ConstraintHelper constraintHelper,
Member member,
T annotation,
ElementType type) |
ConstraintDescriptorImpl(ConstraintHelper constraintHelper,
Member member,
T annotation,
ElementType type,
Class<?> implicitGroup,
ConstraintOrigin definedOn,
ConstraintDescriptorImpl.ConstraintType externalConstraintType) |
ConstraintDescriptorImpl(ConstraintHelper constraintHelper,
Member member,
T annotation,
ElementType type,
ConstraintDescriptorImpl.ConstraintType constraintType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
T |
getAnnotation() |
Class<T> |
getAnnotationType() |
Map<String,Object> |
getAttributes() |
Set<ConstraintDescriptorImpl<?>> |
getComposingConstraintImpls() |
Set<ConstraintDescriptor<?>> |
getComposingConstraints() |
CompositionType |
getCompositionType() |
ConstraintDescriptorImpl.ConstraintType |
getConstraintType() |
List<Class<? extends ConstraintValidator<T,?>>> |
getConstraintValidatorClasses() |
ConstraintOrigin |
getDefinedOn() |
ElementType |
getElementType() |
Set<Class<?>> |
getGroups() |
List<Class<? extends ConstraintValidator<T,?>>> |
getMatchingConstraintValidatorClasses()
Returns those validators registered with this constraint which apply to
the given constraint type (either generic or cross-parameter).
|
String |
getMessageTemplate() |
Set<Class<? extends Payload>> |
getPayload() |
ConstraintTarget |
getValidationAppliesTo() |
int |
hashCode() |
boolean |
isReportAsSingleViolation() |
String |
toString() |
public ConstraintDescriptorImpl(ConstraintHelper constraintHelper, Member member, T annotation, ElementType type, Class<?> implicitGroup, ConstraintOrigin definedOn, ConstraintDescriptorImpl.ConstraintType externalConstraintType)
public ConstraintDescriptorImpl(ConstraintHelper constraintHelper, Member member, T annotation, ElementType type)
public ConstraintDescriptorImpl(ConstraintHelper constraintHelper, Member member, T annotation, ElementType type, ConstraintDescriptorImpl.ConstraintType constraintType)
public T getAnnotation()
getAnnotation
in interface ConstraintDescriptor<T extends Annotation>
public String getMessageTemplate()
getMessageTemplate
in interface ConstraintDescriptor<T extends Annotation>
public Set<Class<?>> getGroups()
getGroups
in interface ConstraintDescriptor<T extends Annotation>
public Set<Class<? extends Payload>> getPayload()
getPayload
in interface ConstraintDescriptor<T extends Annotation>
public ConstraintTarget getValidationAppliesTo()
getValidationAppliesTo
in interface ConstraintDescriptor<T extends Annotation>
public List<Class<? extends ConstraintValidator<T,?>>> getConstraintValidatorClasses()
getConstraintValidatorClasses
in interface ConstraintDescriptor<T extends Annotation>
public List<Class<? extends ConstraintValidator<T,?>>> getMatchingConstraintValidatorClasses()
public Map<String,Object> getAttributes()
getAttributes
in interface ConstraintDescriptor<T extends Annotation>
public Set<ConstraintDescriptor<?>> getComposingConstraints()
getComposingConstraints
in interface ConstraintDescriptor<T extends Annotation>
public Set<ConstraintDescriptorImpl<?>> getComposingConstraintImpls()
public boolean isReportAsSingleViolation()
isReportAsSingleViolation
in interface ConstraintDescriptor<T extends Annotation>
public ElementType getElementType()
public ConstraintOrigin getDefinedOn()
public ConstraintDescriptorImpl.ConstraintType getConstraintType()
public CompositionType getCompositionType()
Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved