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