public static class Constraints.PatternValidator extends Constraints.Validator<String> implements javax.validation.ConstraintValidator<Constraints.Pattern,String>
@Pattern
fields.Constructor and Description |
---|
PatternValidator() |
PatternValidator(String regex) |
Modifier and Type | Method and Description |
---|---|
F.Tuple<String,Object[]> |
getErrorMessageKey() |
void |
initialize(Constraints.Pattern constraintAnnotation) |
boolean |
isValid(String object) |
isValid
public static final String message
public PatternValidator()
public PatternValidator(String regex)
public void initialize(Constraints.Pattern constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<Constraints.Pattern,String>
public boolean isValid(String object)
isValid
in class Constraints.Validator<String>
object
- the value to test.true
if this value is valid.public F.Tuple<String,Object[]> getErrorMessageKey()
getErrorMessageKey
in class Constraints.Validator<String>