java.lang.Object
net.fortuna.ical4j.validate.ParameterValidator
Deprecated.
$Id$ [15-May-2004]
Defines methods for validating parameters and parameter
lists.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertNone(String paramName, List<Parameter> parameters) Deprecated.Ensure a parameter doesn't occur in the specified list.static voidassertNullOrEqual(Parameter param, List<Parameter> parameters) Deprecated.static voidDeprecated.Ensure a parameter occurs once.static voidassertOneOrLess(String paramName, List<Parameter> parameters) Deprecated.Ensure a parameter occurs no more than once.
-
Method Details
-
assertOneOrLess
public static void assertOneOrLess(String paramName, List<Parameter> parameters) throws ValidationException Deprecated.Ensure a parameter occurs no more than once.- Parameters:
paramName- the parameter nameparameters- a list of parameters to query- Throws:
ValidationException- when the specified parameter occurs more than once
-
assertOne
public static void assertOne(String paramName, List<Parameter> parameters) throws ValidationException Deprecated.Ensure a parameter occurs once.- Parameters:
paramName- the parameter nameparameters- a list of parameters to query- Throws:
ValidationException- when the specified parameter does not occur once
-
assertNone
public static void assertNone(String paramName, List<Parameter> parameters) throws ValidationException Deprecated.Ensure a parameter doesn't occur in the specified list.- Parameters:
paramName- the name of a parameterparameters- a list of parameters- Throws:
ValidationException- thrown when the specified property is found in the list of properties
-
assertNullOrEqual
public static void assertNullOrEqual(Parameter param, List<Parameter> parameters) throws ValidationException Deprecated.- Parameters:
param- a parameter instanceparameters- a list of parameters- Throws:
ValidationException- where the assertion fails
-
PropertyRuleSet.