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