public class OnlyOneIsAllowedToBeSetGlobalConstraint extends Object implements GlobalParameterConstraint
Parameter
) is allowed to be set.Modifier and Type | Field and Description |
---|---|
private List<Parameter<?,?>> |
parameters
List of parameters to be checked.
|
Constructor and Description |
---|
OnlyOneIsAllowedToBeSetGlobalConstraint(List<Parameter<?,?>> params)
Constructs a global parameter constraint for testing if only one parameter
of a list of parameters is set.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of this global constraint.
|
void |
test()
Checks if only one parameter of a list of parameters 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