public class RequiredValidationRule extends ValidationRule
error
Constructor and Description |
---|
RequiredValidationRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(Answer answer)
Verifies whether the string to validate is present.
|
getError
public boolean validate(Answer answer)
validate
in class ValidationRule
answer
- to validate.