|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.fortuna.ical4j.util.ParameterValidator
Defines methods for validating parameters and parameter lists.
Method Summary | |
void |
assertNone(String paramName,
ParameterList parameters)
Ensure a parameter doesn't occur in the specified list. |
void |
assertOne(String paramName,
ParameterList parameters)
Ensure a parameter occurs once. |
void |
assertOneOrLess(String paramName,
ParameterList parameters)
Ensure a parameter occurs no more than once. |
static ParameterValidator |
getInstance()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void assertOneOrLess(String paramName, ParameterList parameters) throws ValidationException
paramName
- the parameter nameparameters
- a list of parameters to query
ValidationException
- when the specified parameter occurs more than oncepublic void assertOne(String paramName, ParameterList parameters) throws ValidationException
paramName
- the parameter nameparameters
- a list of parameters to query
ValidationException
- when the specified parameter does not occur oncepublic void assertNone(String paramName, ParameterList parameters) throws ValidationException
ValidationException
- thrown when the specified property
is found in the list of propertiespublic static ParameterValidator getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |