Package play.data.validation
Class Constraints.ValidatorWithPayload<T>
java.lang.Object
play.data.validation.Constraints.ValidatorWithPayload<T>
- Direct Known Subclasses:
Constraints.ValidatePayloadWithValidator
- Enclosing class:
- Constraints
Super-type for validators with a payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract booleanisValid(T object, Constraints.ValidationPayload payload)
-
Constructor Details
-
ValidatorWithPayload
public ValidatorWithPayload()
-
-
Method Details
-
isValid
- Parameters:
object- the value to test.payload- the payload providing validation context information.- Returns:
trueif this value is valid.
-
isValid
- Parameters:
object- the object to checkconstraintContext- The JSR-303 validation context.- Returns:
trueif this value is valid for the given constraint.
-
getErrorMessageKey
-