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