
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 GlobalParameterConstraintParameterException - if the parameters don't satisfy the parameter constraint.public String getDescription()
GlobalParameterConstraintgetDescription in interface GlobalParameterConstraint