|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.fortuna.ical4j.util.ParameterValidator
public final class ParameterValidator
$Id$ [15-May-2004] 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 |
assertNullOrEqual(Parameter param,
ParameterList parameters)
|
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
paramName
- the name of a parameterparameters
- a list of parameters
ValidationException
- thrown when the specified property
is found in the list of propertiespublic void assertNullOrEqual(Parameter param, ParameterList parameters) throws ValidationException
param
- a parameter instanceparameters
- a list of parameters
ValidationException
- where the assertion failspublic static ParameterValidator getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |