C
- Constraint typeS
- Parameter typepublic class ParameterFlagGlobalConstraint<S,C extends S> extends Object implements GlobalParameterConstraint
Modifier and Type | Field and Description |
---|---|
private List<ParameterConstraint<S>> |
cons
List of parameter constraints.
|
private Flag |
flag
Flag the checking of the parameter constraints is dependent on.
|
private boolean |
flagConstraint
Indicates at which status of the flag the parameter is to be checked.
|
private Parameter<S,C> |
param
Parameter possibly to be checked.
|
Constructor and Description |
---|
ParameterFlagGlobalConstraint(Parameter<S,C> p,
List<ParameterConstraint<S>> c,
Flag f,
boolean flagConstraint)
Constructs a global parameter constraint specifying that the testing of the
parameter given for keeping the parameter constraints given is dependent on
the status of the flag given.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of this global constraint.
|
void |
test()
Checks the parameter for its parameter constraints dependent on the status
of the given flag.
|
private Flag flag
private boolean flagConstraint
private List<ParameterConstraint<S>> cons
public ParameterFlagGlobalConstraint(Parameter<S,C> p, List<ParameterConstraint<S>> c, Flag f, boolean flagConstraint)
p
- parameter possibly to be checkedc
- a list of parameter constraints, if the value is null, the parameter is just tested if it is set.f
- flag controlling the checking of the parameter constraintsflagConstraint
- indicates at which status of the flag the parameter
is to be checkedpublic 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