public class PatternValidationRule extends ValidationRule
error
Modifier and Type | Method and Description |
---|---|
boolean |
validate(Answer answer)
Validates the given string based on the pattern.
|
getError
public boolean validate(Answer answer)
validate
in class ValidationRule
answer
- To validate