public class AllOrNoneMustBeSetGlobalConstraint extends Object implements GlobalParameterConstraint
Parameter
)
must be set, or none of them.Modifier and Type | Field and Description |
---|---|
private List<Parameter<?,?>> |
parameterList
List of parameters to be checked
|
Constructor and Description |
---|
AllOrNoneMustBeSetGlobalConstraint(List<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.
|
public 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