org.tm4j.topicmap.utils.extractors
Class AssociationGroupsExtractor.AssociationGroup
java.lang.Object
org.tm4j.topicmap.utils.extractors.AssociationGroupsExtractor.AssociationGroup
- Enclosing class:
- AssociationGroupsExtractor
- public class AssociationGroupsExtractor.AssociationGroup
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssociationGroupsExtractor.AssociationGroup
public AssociationGroupsExtractor.AssociationGroup(Topic assocType,
Topic dominantRole)
setRoleTest
public void setRoleTest(uk.co.jezuk.mango.Predicate f)
isBinary
public boolean isBinary()
- Determines if all of this association group represents
a collection of binary associations.
- Returns:
- true if all associations in this group have only two roles
and if there is only one subordinate role.
isMaster
public boolean isMaster()
- Determines if this association is the master in
a collection of binary associations.
To be the master, this topic must be the only
topic playing the dominant role in all associations in the group.
getDominantRolePlayersSet
public java.util.Set getDominantRolePlayersSet()
getSubordinateRolePlayersSet
public java.util.Set getSubordinateRolePlayersSet()
addMember
public void addMember(Member _m)
getAssociationType
public Topic getAssociationType()
getDominantRoleType
public Topic getDominantRoleType()
getSubordinateRoleTypes
public java.util.Collection getSubordinateRoleTypes()
getSubordinateRoleTypesIterator
public java.util.Iterator getSubordinateRoleTypesIterator()
getAssociations
public java.util.Collection getAssociations()
getAssociationsIterator
public java.util.Iterator getAssociationsIterator()
getRolePlayers
public java.util.Collection getRolePlayers(Topic roleType)