public class OneMustBeSetGlobalConstraint extends Object implements GlobalParameterConstraint
Parameter
) has to be
set.Modifier and Type | Field and Description |
---|---|
private List<Parameter<?,?>> |
parameters
List of parameters to be checked.
|
Constructor and Description |
---|
OneMustBeSetGlobalConstraint(List<Parameter<?,?>> params)
Creates a One-Must-Be-Set global parameter constraint.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of this global constraint.
|
void |
test()
Checks if at least one parameter value of the list of parameters specified
is set.
|
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