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) |
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<Type,Class<? extends ConstraintValidator<T,?>>> getAvailableValidatorTypes()
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-2019 Red Hat, Inc. All Rights Reserved