Class ConstraintD<A extends Annotation>

  • All Implemented Interfaces:
    jakarta.validation.metadata.ConstraintDescriptor<A>

    public class ConstraintD<A extends Annotation>
    extends Object
    implements jakarta.validation.metadata.ConstraintDescriptor<A>
    • 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 interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
      • getGroups

        public Set<Class<?>> getGroups()
        Specified by:
        getGroups in interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
      • getPayload

        public Set<Class<? extends jakarta.validation.Payload>> getPayload()
        Specified by:
        getPayload in interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
      • getConstraintValidatorClasses

        public List<Class<? extends jakarta.validation.ConstraintValidator<A,​?>>> getConstraintValidatorClasses()
        Specified by:
        getConstraintValidatorClasses in interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
      • getAttributes

        public Map<String,​Object> getAttributes()
        Specified by:
        getAttributes in interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
      • getComposingConstraints

        public Set<jakarta.validation.metadata.ConstraintDescriptor<?>> getComposingConstraints()
        Specified by:
        getComposingConstraints in interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
      • isReportAsSingleViolation

        public boolean isReportAsSingleViolation()
        Specified by:
        isReportAsSingleViolation in interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
      • getMessageTemplate

        public String getMessageTemplate()
        Specified by:
        getMessageTemplate in interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
      • getValidationAppliesTo

        public jakarta.validation.ConstraintTarget getValidationAppliesTo()
        Specified by:
        getValidationAppliesTo in interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
      • getValueUnwrapping

        public jakarta.validation.metadata.ValidateUnwrappedValue getValueUnwrapping()
        Specified by:
        getValueUnwrapping in interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
      • unwrap

        public <U> U unwrap​(Class<U> type)
                     throws jakarta.validation.ValidationException
        Specified by:
        unwrap in interface jakarta.validation.metadata.ConstraintDescriptor<A extends Annotation>
        Throws:
        jakarta.validation.ValidationException
      • getScope

        public jakarta.validation.metadata.Scope getScope()
      • getDeclaringClass

        public Class<?> getDeclaringClass()