Package org.apache.bval.constraints
Class AbstractPatternValidator<A extends Annotation,T extends CharSequence>
- java.lang.Object
-
- org.apache.bval.constraints.AbstractPatternValidator<A,T>
-
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<A,T>
- Direct Known Subclasses:
EmailValidator
,PatternValidator
public abstract class AbstractPatternValidator<A extends Annotation,T extends CharSequence> extends Object implements jakarta.validation.ConstraintValidator<A,T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AbstractPatternValidator.PatternDescriptor
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPatternValidator(Function<A,AbstractPatternValidator.PatternDescriptor> toDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(A constraintAnnotation)
boolean
isValid(T value, jakarta.validation.ConstraintValidatorContext context)
-
-
-
Field Detail
-
pattern
protected Pattern pattern
-
-
Constructor Detail
-
AbstractPatternValidator
protected AbstractPatternValidator(Function<A,AbstractPatternValidator.PatternDescriptor> toDescriptor)
-
-
Method Detail
-
initialize
public void initialize(A constraintAnnotation)
- Specified by:
initialize
in interfacejakarta.validation.ConstraintValidator<A extends Annotation,T extends CharSequence>
-
isValid
public boolean isValid(T value, jakarta.validation.ConstraintValidatorContext context)
- Specified by:
isValid
in interfacejakarta.validation.ConstraintValidator<A extends Annotation,T extends CharSequence>
-
-