hirondelle.web4jtools.util
Class Check
Object
Check
hirondelle.web4jtools.util.Check
public final class Check
- extends Check
Custom validations.
This is an example of extending the framework's Check class with
custom validations. Note that the name of this class is the same as the name of
the framework class. This is unusual. It allows the calling code to retain the same
look when using custom validations.
Constructor Summary |
Check()
|
Method Summary |
static Validator |
isRegex()
Return true only if Object.toString() forms a valid regular expression. |
Methods inherited from class Check |
email, forSpam, isFalse, isTrue, max, max, max, max, min, min, min, min, numDecimalsAlways, numDecimalsMax, optional, pattern, range, range, range, range, required, required |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Check
public Check()
isRegex
public static Validator isRegex()
- Return true only if Object.toString() forms a valid regular expression.
If the Object is an instance of SafeText, then perform the test on
SafeText.getRawString() instead.
Copyright Hirondelle Systems - Generated 2013Oct19.12.26