Package play.data.validation
Class Constraints.ValidateValidatorWithPayload
- Object
-
- play.data.validation.Constraints.ValidateValidatorWithPayload
-
- All Implemented Interfaces:
javax.validation.ConstraintValidator<Constraints.ValidateWithPayload,Constraints.ValidatableWithPayload<?>>
,Constraints.PlayConstraintValidator<Constraints.ValidateWithPayload,Constraints.ValidatableWithPayload<?>>
,Constraints.PlayConstraintValidatorWithPayload<Constraints.ValidateWithPayload,Constraints.ValidatableWithPayload<?>>
- Enclosing class:
- Constraints
public static class Constraints.ValidateValidatorWithPayload extends Object implements Constraints.PlayConstraintValidatorWithPayload<Constraints.ValidateWithPayload,Constraints.ValidatableWithPayload<?>>
-
-
Constructor Summary
Constructors Constructor Description ValidateValidatorWithPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(Constraints.ValidateWithPayload constraintAnnotation)
boolean
isValid(Constraints.ValidatableWithPayload<?> value, Constraints.ValidationPayload payload, javax.validation.ConstraintValidatorContext constraintValidatorContext)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface play.data.validation.Constraints.PlayConstraintValidator
reportValidationStatus, validationSuccessful
-
Methods inherited from interface play.data.validation.Constraints.PlayConstraintValidatorWithPayload
isValid
-
-
-
-
Method Detail
-
initialize
public void initialize(Constraints.ValidateWithPayload constraintAnnotation)
- Specified by:
initialize
in interfacejavax.validation.ConstraintValidator<Constraints.ValidateWithPayload,Constraints.ValidatableWithPayload<?>>
-
isValid
public boolean isValid(Constraints.ValidatableWithPayload<?> value, Constraints.ValidationPayload payload, javax.validation.ConstraintValidatorContext constraintValidatorContext)
- Specified by:
isValid
in interfaceConstraints.PlayConstraintValidatorWithPayload<Constraints.ValidateWithPayload,Constraints.ValidatableWithPayload<?>>
-
-