Package play.data.validation
Class Constraints.ValidateWithValidator
- Object
-
- play.data.validation.Constraints.Validator<Object>
-
- play.data.validation.Constraints.ValidateWithValidator
-
- All Implemented Interfaces:
javax.validation.ConstraintValidator<Constraints.ValidateWith,Object>
- Enclosing class:
- Constraints
public static class Constraints.ValidateWithValidator extends Constraints.Validator<Object> implements javax.validation.ConstraintValidator<Constraints.ValidateWith,Object>
Validator for@ValidateWith
fields.
-
-
Field Summary
Fields Modifier and Type Field Description static String
defaultMessage
-
Constructor Summary
Constructors Constructor Description ValidateWithValidator()
ValidateWithValidator(Class clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description F.Tuple<String,Object[]>
getErrorMessageKey()
void
initialize(Constraints.ValidateWith constraintAnnotation)
boolean
isValid(Object object)
-
Methods inherited from class play.data.validation.Constraints.Validator
isValid
-
-
-
-
Field Detail
-
defaultMessage
public static final String defaultMessage
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ValidateWithValidator
public ValidateWithValidator()
-
ValidateWithValidator
public ValidateWithValidator(Class clazz)
-
-
Method Detail
-
initialize
public void initialize(Constraints.ValidateWith constraintAnnotation)
- Specified by:
initialize
in interfacejavax.validation.ConstraintValidator<Constraints.ValidateWith,Object>
-
isValid
public boolean isValid(Object object)
- Specified by:
isValid
in classConstraints.Validator<Object>
- Parameters:
object
- the value to test.- Returns:
true
if this value is valid.
-
getErrorMessageKey
public F.Tuple<String,Object[]> getErrorMessageKey()
- Specified by:
getErrorMessageKey
in classConstraints.Validator<Object>
-
-