play.data.validation
Class Constraints.ValidateWithValidator
java.lang.Object
play.data.validation.Constraints.Validator<java.lang.Object>
play.data.validation.Constraints.ValidateWithValidator
- All Implemented Interfaces:
- javax.validation.ConstraintValidator<Constraints.ValidateWith,java.lang.Object>
- Enclosing class:
- Constraints
public static class Constraints.ValidateWithValidator
- extends Constraints.Validator<java.lang.Object>
- implements javax.validation.ConstraintValidator<Constraints.ValidateWith,java.lang.Object>
Validator for @ValidateWith
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.ValidateWithValidator
public Constraints.ValidateWithValidator()
Constraints.ValidateWithValidator
public Constraints.ValidateWithValidator(java.lang.Class clazz)
initialize
public void initialize(Constraints.ValidateWith constraintAnnotation)
- Specified by:
initialize
in interface javax.validation.ConstraintValidator<Constraints.ValidateWith,java.lang.Object>
isValid
public boolean isValid(java.lang.Object object)
- Description copied from class:
Constraints.Validator
- Returns
true
if this value is valid.
- Specified by:
isValid
in class Constraints.Validator<java.lang.Object>
getErrorMessageKey
public F.Tuple<java.lang.String,java.lang.Object[]> getErrorMessageKey()
- Specified by:
getErrorMessageKey
in class Constraints.Validator<java.lang.Object>