| Modifier and Type | Method and Description |
|---|---|
String |
getInvalidSpecificationMessage()
If the specification itself is invalid (such as a bad regex string), this
will build a message describing the problem to the user.
|
String |
getTheValueMustDescription()
Get a description of the validation rule.
|
boolean |
isSpecificationValid()
Returns true if the validation criteria itself is valid.
|
boolean |
isValid(String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInvalidMessagepublic Regex(String regex)
public boolean isSpecificationValid()
ValidatorisSpecificationValid in interface Validator<String>public String getInvalidSpecificationMessage()
ValidatorgetInvalidSpecificationMessage in interface Validator<String>public String getTheValueMustDescription()
ValidatorgetTheValueMustDescription in interface Validator<String>Copyright © 2017. All rights reserved.