play.data.validation
Class Constraints.MinLengthValidator
java.lang.Object
play.data.validation.Constraints.Validator<java.lang.String>
play.data.validation.Constraints.MinLengthValidator
- All Implemented Interfaces:
- javax.validation.ConstraintValidator<Constraints.MinLength,java.lang.String>
- Enclosing class:
- Constraints
public static class Constraints.MinLengthValidator
- extends Constraints.Validator<java.lang.String>
- implements javax.validation.ConstraintValidator<Constraints.MinLength,java.lang.String>
Validator for @MinLength
fields.
Field Summary |
static java.lang.String |
message
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.validation.ConstraintValidator |
isValid |
message
public static final java.lang.String message
- See Also:
- Constant Field Values
Constraints.MinLengthValidator
public Constraints.MinLengthValidator()
Constraints.MinLengthValidator
public Constraints.MinLengthValidator(long value)
initialize
public void initialize(Constraints.MinLength constraintAnnotation)
- Specified by:
initialize
in interface javax.validation.ConstraintValidator<Constraints.MinLength,java.lang.String>
isValid
public boolean isValid(java.lang.String object)
- Description copied from class:
Constraints.Validator
- Returns
true
if this value is valid.
- Specified by:
isValid
in class Constraints.Validator<java.lang.String>