public interface GlobalParameterConstraint
Interface for specifying global parameter constraints, i.e. constraints addressing several parameters.
Each class specifying a global parameter constraint should implement this interface.
The parameters to be tested should be defined as private attributes and should be
initialized in the respective constructor of the class, i.e. they are parameters of the constructor.
The proper constraint test should be implemented in the method test()
.
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of this global constraint.
|
void |
test()
Checks if the respective parameters satisfy the parameter constraint.
|
void test() throws ParameterException
ParameterException
- if the parameters don't satisfy the parameter constraint.String getDescription()