|
||||||||||
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.OrRoleConstraint
public class OrRoleConstraint
The Class OrRoleConstraint is an implementation of RoleConstraint that is used to compose several other constraints. This constraint checks if at least one of the constraints passed as input to the constructor checks
Constructor Summary | |
---|---|
OrRoleConstraint(RoleConstraint... constraints)
Instantiates a new or 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 OrRoleConstraint(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 |