Package play.data.validation
Class Constraints.MinLengthValidator
java.lang.Object
play.data.validation.Constraints.Validator<String>
play.data.validation.Constraints.MinLengthValidator
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<Constraints.MinLength,String>
- Enclosing class:
- Constraints
public static class Constraints.MinLengthValidator
extends Constraints.Validator<String>
implements jakarta.validation.ConstraintValidator<Constraints.MinLength,String>
Validator for
@MinLength fields.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(Constraints.MinLength constraintAnnotation) booleanMethods inherited from class play.data.validation.Constraints.Validator
isValidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
isValid
-
Field Details
-
message
- See Also:
-
-
Constructor Details
-
MinLengthValidator
public MinLengthValidator() -
MinLengthValidator
public MinLengthValidator(long value)
-
-
Method Details
-
initialize
- Specified by:
initializein interfacejakarta.validation.ConstraintValidator<Constraints.MinLength,String>
-
isValid
- Specified by:
isValidin classConstraints.Validator<String>- Parameters:
object- the value to test.- Returns:
trueif this value is valid.
-
getErrorMessageKey
- Specified by:
getErrorMessageKeyin classConstraints.Validator<String>
-