Package org.apache.bval.jsr.descriptor
Class ConstraintD<A extends Annotation>
- java.lang.Object
-
- org.apache.bval.jsr.descriptor.ConstraintD<A>
-
- All Implemented Interfaces:
jakarta.validation.metadata.ConstraintDescriptor<A>
public class ConstraintD<A extends Annotation> extends Object implements jakarta.validation.metadata.ConstraintDescriptor<A>
-
-
Constructor Summary
Constructors Constructor Description ConstraintD(A annotation, jakarta.validation.metadata.Scope scope, Meta<?> meta, ApacheValidatorFactory validatorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description A
getAnnotation()
Map<String,Object>
getAttributes()
Set<jakarta.validation.metadata.ConstraintDescriptor<?>>
getComposingConstraints()
List<Class<? extends jakarta.validation.ConstraintValidator<A,?>>>
getConstraintValidatorClasses()
ElementType
getDeclaredOn()
Class<?>
getDeclaringClass()
Set<Class<?>>
getGroups()
String
getMessageTemplate()
Set<Class<? extends jakarta.validation.Payload>>
getPayload()
jakarta.validation.metadata.Scope
getScope()
jakarta.validation.ConstraintTarget
getValidationAppliesTo()
jakarta.validation.metadata.ValidateUnwrappedValue
getValueUnwrapping()
boolean
isReportAsSingleViolation()
String
toString()
<U> U
unwrap(Class<U> type)
-
-
-
Constructor Detail
-
ConstraintD
public ConstraintD(A annotation, jakarta.validation.metadata.Scope scope, Meta<?> meta, ApacheValidatorFactory validatorFactory)
-
-
Method Detail
-
getAnnotation
public A getAnnotation()
- Specified by:
getAnnotation
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
-
getGroups
public Set<Class<?>> getGroups()
- Specified by:
getGroups
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
-
getPayload
public Set<Class<? extends jakarta.validation.Payload>> getPayload()
- Specified by:
getPayload
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
-
getConstraintValidatorClasses
public List<Class<? extends jakarta.validation.ConstraintValidator<A,?>>> getConstraintValidatorClasses()
- Specified by:
getConstraintValidatorClasses
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
-
getAttributes
public Map<String,Object> getAttributes()
- Specified by:
getAttributes
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
-
getComposingConstraints
public Set<jakarta.validation.metadata.ConstraintDescriptor<?>> getComposingConstraints()
- Specified by:
getComposingConstraints
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
-
isReportAsSingleViolation
public boolean isReportAsSingleViolation()
- Specified by:
isReportAsSingleViolation
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
-
getMessageTemplate
public String getMessageTemplate()
- Specified by:
getMessageTemplate
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
-
getValidationAppliesTo
public jakarta.validation.ConstraintTarget getValidationAppliesTo()
- Specified by:
getValidationAppliesTo
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
-
getValueUnwrapping
public jakarta.validation.metadata.ValidateUnwrappedValue getValueUnwrapping()
- Specified by:
getValueUnwrapping
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
-
unwrap
public <U> U unwrap(Class<U> type) throws jakarta.validation.ValidationException
- Specified by:
unwrap
in interfacejakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
- Throws:
jakarta.validation.ValidationException
-
getScope
public jakarta.validation.metadata.Scope getScope()
-
getDeclaringClass
public Class<?> getDeclaringClass()
-
getDeclaredOn
public ElementType getDeclaredOn()
-
-