|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.japano.action.ListValidator
public class ListValidator
Validates a http parameter against a list of valid values.
Constructor Summary | |
---|---|
ListValidator()
|
Method Summary | |
---|---|
void |
setValidValues(java.util.List values)
Sets the valid values for this ListValidator |
java.lang.String |
validate(java.lang.String name,
java.lang.String value)
Validates the given http parameter against the list of valid values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListValidator()
Method Detail |
---|
public void setValidValues(java.util.List values)
values
- List which contains the legal values.public java.lang.String validate(java.lang.String name, java.lang.String value) throws InvalidParameterException
validate
in interface Validator
name
- name of the parameter to validatevalue
- value to validate
InvalidParameterException
- if the value is invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |