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.
|
getErrorpublic boolean validate(Answer answer)
validate in class ValidationRuleanswer - to validate.