Package org.apache.bval.jsr.metadata
Class ValidatorMapping<A extends Annotation>
- java.lang.Object
-
- org.apache.bval.jsr.metadata.ValidatorMapping<A>
-
- All Implemented Interfaces:
HasAnnotationBehavior
public class ValidatorMapping<A extends Annotation> extends Object implements HasAnnotationBehavior
-
-
Constructor Summary
Constructors Constructor Description ValidatorMapping(String source, List<Class<? extends jakarta.validation.ConstraintValidator<A,?>>> validatorTypes)
ValidatorMapping(String source, List<Class<? extends jakarta.validation.ConstraintValidator<A,?>>> validatorTypes, AnnotationBehavior annotationBehavior)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <A extends Annotation>
ValidatorMapping<A>empty()
boolean
equals(Object obj)
AnnotationBehavior
getAnnotationBehavior()
String
getSource()
List<Class<? extends jakarta.validation.ConstraintValidator<A,?>>>
getValidatorTypes()
boolean
hasBehavior(AnnotationBehavior annotationBehavior)
int
hashCode()
boolean
isEmpty()
static <A extends Annotation>
ValidatorMapping<A>merge(List<? extends ValidatorMapping<A>> validatorMappings, AnnotationBehaviorMergeStrategy annotationBehaviorMergeStrategy)
String
toString()
-
-
-
Constructor Detail
-
ValidatorMapping
public ValidatorMapping(String source, List<Class<? extends jakarta.validation.ConstraintValidator<A,?>>> validatorTypes)
-
ValidatorMapping
public ValidatorMapping(String source, List<Class<? extends jakarta.validation.ConstraintValidator<A,?>>> validatorTypes, AnnotationBehavior annotationBehavior)
-
-
Method Detail
-
empty
public static <A extends Annotation> ValidatorMapping<A> empty()
-
merge
public static <A extends Annotation> ValidatorMapping<A> merge(List<? extends ValidatorMapping<A>> validatorMappings, AnnotationBehaviorMergeStrategy annotationBehaviorMergeStrategy)
-
getValidatorTypes
public List<Class<? extends jakarta.validation.ConstraintValidator<A,?>>> getValidatorTypes()
-
getAnnotationBehavior
public AnnotationBehavior getAnnotationBehavior()
- Specified by:
getAnnotationBehavior
in interfaceHasAnnotationBehavior
-
isEmpty
public boolean isEmpty()
-
getSource
public String getSource()
-
hasBehavior
public boolean hasBehavior(AnnotationBehavior annotationBehavior)
-
-