|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.japano.action.RegExValidator
public class RegExValidator
Validates a HTTP parameter with a regular expression.
Constructor Summary | |
---|---|
RegExValidator(java.lang.String regex)
|
Method Summary | |
---|---|
java.lang.String |
toString()
|
java.lang.String |
validate(java.lang.String name,
java.lang.String value)
Validates the value and returns it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RegExValidator(java.lang.String regex)
Method Detail |
---|
public java.lang.String validate(java.lang.String name, java.lang.String value) throws InvalidParameterException
Validator
validate
in interface Validator
name
- parameter namevalue
- parameter value to validate.
InvalidParameterException
- if the value is invalid.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |