public static class Constraints.PatternValidator extends Constraints.Validator<java.lang.String> implements javax.validation.ConstraintValidator<Constraints.Pattern,java.lang.String>
@Pattern
fields.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
message |
Constructor and Description |
---|
Constraints.PatternValidator() |
Constraints.PatternValidator(java.lang.String regex) |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Constraints.Pattern constraintAnnotation) |
boolean |
isValid(java.lang.String object)
Returns
true if this value is valid. |
isValid
public static final java.lang.String message
public Constraints.PatternValidator()
public Constraints.PatternValidator(java.lang.String regex)
public void initialize(Constraints.Pattern constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<Constraints.Pattern,java.lang.String>
public boolean isValid(java.lang.String object)
Constraints.Validator
true
if this value is valid.isValid
in class Constraints.Validator<java.lang.String>