public class AllOrNoneMustBeSetGlobalConstraint extends Object implements GlobalParameterConstraint
Parameter
) must be set, or none of them.Modifier and Type | Field and Description |
---|---|
private Parameter<?>[] |
parameterList
List of parameters to be checked
|
Constructor and Description |
---|
AllOrNoneMustBeSetGlobalConstraint(Parameter<?>... parameters)
Constructs a global parameter constraint for testing if either all elements
of a list of parameters are set or none of them.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of this global constraint.
|
void |
test()
Checks if either all elements of a list of parameters are set, or none of
them.
|
private Parameter<?>[] parameterList
public AllOrNoneMustBeSetGlobalConstraint(Parameter<?>... parameters)
parameters
- list of parameters to be checkedpublic void test() throws ParameterException
test
in interface GlobalParameterConstraint
ParameterException
- if the parameters don't satisfy the parameter constraint.public String getDescription()
GlobalParameterConstraint
getDescription
in interface GlobalParameterConstraint
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.