Package net.fortuna.ical4j.validate
Class ParameterValidator
- java.lang.Object
-
- net.fortuna.ical4j.validate.ParameterValidator
-
@Deprecated public final class ParameterValidator extends Object
Deprecated.default property validation moved to relevant property. See alsoPropertyRuleSet.$Id$ [15-May-2004] Defines methods for validating parameters and parameter lists.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 voidassertOne(String paramName, List<Parameter> parameters)Deprecated.Ensure a parameter occurs once.static voidassertOneOrLess(String paramName, List<Parameter> parameters)Deprecated.Ensure a parameter occurs no more than once.
-
-
-
Method Detail
-
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
-
-