|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.ref.model.constraint.role.impl.AndRoleConstraint
public class AndRoleConstraint
The Class AndRoleConstraint is an implementation of RoleConstraint that is used to compose several other constraints. This constraint checks if all the constraints passed as input to the constructor check
Constructor Summary | |
---|---|
AndRoleConstraint(RoleConstraint... constraints)
Instantiates a new and role constraint. |
Method Summary | |
---|---|
boolean |
checkConstraint(Entity role)
Check check if the input entity fulfills the constraint |
java.util.Set<Entity> |
getCompatibleEntities(java.util.Set<Entity> entities)
Returns the subset of all the input entities that fulfill the constraint |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AndRoleConstraint(RoleConstraint... constraints)
constraints
- the constraintsMethod Detail |
---|
public boolean checkConstraint(Entity role)
RoleConstraint
checkConstraint
in interface RoleConstraint
role
- the entity
public java.util.Set<Entity> getCompatibleEntities(java.util.Set<Entity> entities)
RoleConstraint
getCompatibleEntities
in interface RoleConstraint
entities
- the entities to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |