public static class Constraints.ValidatePayloadWithValidator extends Constraints.ValidatorWithPayload<java.lang.Object> implements javax.validation.ConstraintValidator<Constraints.ValidatePayloadWith,java.lang.Object>
@ValidatePayloadWith
fields.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
defaultMessage |
Constructor and Description |
---|
ValidatePayloadWithValidator() |
ValidatePayloadWithValidator(java.lang.Class clazz) |
Modifier and Type | Method and Description |
---|---|
F.Tuple<java.lang.String,java.lang.Object[]> |
getErrorMessageKey() |
void |
initialize(Constraints.ValidatePayloadWith constraintAnnotation) |
boolean |
isValid(java.lang.Object object,
Constraints.ValidationPayload payload) |
isValid
public static final java.lang.String defaultMessage
public ValidatePayloadWithValidator()
public ValidatePayloadWithValidator(java.lang.Class clazz)
public void initialize(Constraints.ValidatePayloadWith constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<Constraints.ValidatePayloadWith,java.lang.Object>
public boolean isValid(java.lang.Object object, Constraints.ValidationPayload payload)
isValid
in class Constraints.ValidatorWithPayload<java.lang.Object>
object
- the value to test.payload
- the payload providing validation context information.true
if this value is valid.public F.Tuple<java.lang.String,java.lang.Object[]> getErrorMessageKey()
getErrorMessageKey
in class Constraints.ValidatorWithPayload<java.lang.Object>