|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoleConstraint
The Interface RoleConstraint represents a constraint over a given role of a relationship.
Instances of classes that implement this interface can be used in two different
ways:
1) by using the checkConstraint method, it can check if a given entity fulfills the
constraint
2) by using the getCompatibleEntities method, it can filter entities taht do not
fulfill the 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 |
Method Detail |
---|
boolean checkConstraint(Entity role)
role
- the entity
java.util.Set<Entity> getCompatibleEntities(java.util.Set<Entity> entities)
entities
- the entities to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |