|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.echobinding.validation.RegexValidator
public class RegexValidator
A validator the uses a regular expression to validate user input.
Constructor Summary | |
---|---|
RegexValidator(java.lang.String regex)
Constructs the regular expression validator. |
Method Summary | |
---|---|
ValidationReport |
validate(java.lang.Object bean,
java.lang.Object input)
Checks if the input string matches the regular expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegexValidator(java.lang.String regex)
regex
- - the regular expression to useMethod Detail |
---|
public ValidationReport validate(java.lang.Object bean, java.lang.Object input)
validate
in interface Validator
input
- - the user input
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |