public static class Constraints.RequiredValidator extends Constraints.Validator<Object> implements javax.validation.ConstraintValidator<Constraints.Required,Object>
@Required
fields.Constructor and Description |
---|
RequiredValidator() |
Modifier and Type | Method and Description |
---|---|
F.Tuple<String,Object[]> |
getErrorMessageKey() |
void |
initialize(Constraints.Required constraintAnnotation) |
boolean |
isValid(Object object) |
isValid
public static final String message
public void initialize(Constraints.Required constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<Constraints.Required,Object>
public boolean isValid(Object object)
isValid
in class Constraints.Validator<Object>
object
- the value to test.true
if this value is valid.public F.Tuple<String,Object[]> getErrorMessageKey()
getErrorMessageKey
in class Constraints.Validator<Object>