|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.ref.model.constraint.relationship.impl.AndRelationshipConstraint
public class AndRelationshipConstraint
The Class AndRelationshipConstraint is an implementation of RelationshipConstraint that is used to compose several other constraints. This constraint checks if all the constraints passed as input to the constructor check
Constructor Summary | |
---|---|
AndRelationshipConstraint(RelationshipConstraint... constraints)
Instantiates a new AndRelationshipConstraint. |
Method Summary | |
---|---|
boolean |
checkConstraint(Relationship rel)
Checks if the relationship constraint is fulfilled on the input relationship. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AndRelationshipConstraint(RelationshipConstraint... constraints)
constraints
- the constraintsMethod Detail |
---|
public boolean checkConstraint(Relationship rel)
RelationshipConstraint
checkConstraint
in interface RelationshipConstraint
rel
- the relationship where the constraint is to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |