public static class Constraints.MaxLengthValidator extends Constraints.Validator<String> implements javax.validation.ConstraintValidator<Constraints.MaxLength,String>
@MaxLength
fields.Constructor and Description |
---|
MaxLengthValidator() |
MaxLengthValidator(long value) |
Modifier and Type | Method and Description |
---|---|
F.Tuple<String,Object[]> |
getErrorMessageKey() |
void |
initialize(Constraints.MaxLength constraintAnnotation) |
boolean |
isValid(String object) |
isValid
public static final String message
public MaxLengthValidator()
public MaxLengthValidator(long value)
public void initialize(Constraints.MaxLength constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<Constraints.MaxLength,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>