Interface Constraint
-
- All Known Implementing Classes:
AbstractConstraint
,MethodBasedConstraint
,TupleBasedConstraint
public interface Constraint
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Constraint.ConstraintConstants
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkIfValid(Combination combination)
Checks whether the given combination is valid or not.ConstraintStatus
getConstraintStatus()
ConstraintConverterFactory
getConverterFactory()
String
getName()
List<String>
getParameterNames()
void
setName(String name)
-
-
-
Method Detail
-
setName
void setName(String name)
- Parameters:
name
- new name of the constraint.
-
getName
String getName()
- Returns:
- name of the constraint.
-
getConstraintStatus
ConstraintStatus getConstraintStatus()
- Returns:
- status of the constraint.
-
checkIfValid
boolean checkIfValid(Combination combination)
Checks whether the given combination is valid or not.- Parameters:
combination
- combination to be checked.- Returns:
true
iff the combination is valid.
-
getConverterFactory
ConstraintConverterFactory getConverterFactory()
- Returns:
ConstraintConverterFactory
that can be used to convert this constraint.
-
-