org.tm4j.topicmap.utils.extractors
Class AssociationGroupsExtractor.AssociationGroup

java.lang.Object
  extended byorg.tm4j.topicmap.utils.extractors.AssociationGroupsExtractor.AssociationGroup
Enclosing class:
AssociationGroupsExtractor

public class AssociationGroupsExtractor.AssociationGroup
extends java.lang.Object


Constructor Summary
AssociationGroupsExtractor.AssociationGroup(Topic assocType, Topic dominantRole)
           
 
Method Summary
 void addMember(Member _m)
           
 java.util.Collection getAssociations()
           
 java.util.Iterator getAssociationsIterator()
           
 Topic getAssociationType()
           
 java.util.Set getDominantRolePlayersSet()
           
 Topic getDominantRoleType()
           
 java.util.Collection getRolePlayers(Topic roleType)
           
 java.util.Set getSubordinateRolePlayersSet()
           
 java.util.Collection getSubordinateRoleTypes()
           
 java.util.Iterator getSubordinateRoleTypesIterator()
           
 boolean isBinary()
          Determines if all of this association group represents a collection of binary associations.
 boolean isMaster()
          Determines if this association is the master in a collection of binary associations.
 void setRoleTest(uk.co.jezuk.mango.Predicate f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationGroupsExtractor.AssociationGroup

public AssociationGroupsExtractor.AssociationGroup(Topic assocType,
                                                   Topic dominantRole)
Method Detail

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)