|
||||||||||
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.NoConstraint
public class NoConstraint
The Class NoConstraint is an implementation of the RoleConstraint that is actually a dummy check. All the entities are accepted.
Constructor Summary | |
---|---|
NoConstraint()
|
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 NoConstraint()
Method 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 |