org.tm4j.topicmap.unified
Class UnifiedMember

java.lang.Object
  extended byorg.tm4j.topicmap.unified.UnifiedTopicMapObject
      extended byorg.tm4j.topicmap.unified.UnifiedMember
All Implemented Interfaces:
Member, TopicMapObject

public class UnifiedMember
extends UnifiedTopicMapObject
implements Member


Field Summary
 
Fields inherited from class org.tm4j.topicmap.unified.UnifiedTopicMapObject
m_tm
 
Constructor Summary
UnifiedMember(UnifiedTopicMap tm, Member base)
           
 
Method Summary
 void addPlayer(Topic player)
          Adds a topic as a player, meaning one of the topics that define this member.
 Association getParent()
          Returns the association to which the Member belongs.
 java.util.Collection getPlayers()
          Returns an unmodifiable collection of the Topics which are players of this Member.
 Topic getRoleSpec()
          Returns the topic which defines the type of this Member.
 void removePlayer(Topic player)
          Removes the specified topic from the list of players of this Member object.
 void setParent(Association parent)
           
 void setPlayers(Topic[] players)
          Sets the collection of Topics which are players of this Member.
 void setRoleSpec(Topic roleSpec)
          Sets the topic which defines the type of this Member.
 
Methods inherited from class org.tm4j.topicmap.unified.UnifiedTopicMapObject
addMultiValuePropertyChangeListener, addMultiValuePropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addSourceLocator, addVetoableChangeListener, destroy, equals, fireMultiValuePropertyChange, fireMultiValuePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getBaseObject, getID, getResourceLocator, getSourceLocators, getTopicMap, hashCode, removeMultiValuePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeSourceLocator, removeVetoableChangeListener, setID, setResourceLocator, unsupported
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tm4j.topicmap.TopicMapObject
addMultiValuePropertyChangeListener, addMultiValuePropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addSourceLocator, addVetoableChangeListener, destroy, fireMultiValuePropertyChange, fireMultiValuePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getID, getResourceLocator, getSourceLocators, getTopicMap, removeMultiValuePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeSourceLocator, removeVetoableChangeListener, setID, setResourceLocator
 

Constructor Detail

UnifiedMember

public UnifiedMember(UnifiedTopicMap tm,
                     Member base)
Method Detail

getParent

public Association getParent()
Description copied from interface: Member
Returns the association to which the Member belongs.

Specified by:
getParent in interface Member
Returns:
The member's parent association, or null if the member is currently not part of any association.

getPlayers

public java.util.Collection getPlayers()
Description copied from interface: Member
Returns an unmodifiable collection of the Topics which are players of this Member.

Specified by:
getPlayers in interface Member
Returns:
The collection of Topics that define this member. If no players are currently defined for this member, the returned collection is empty; it is never null.

getRoleSpec

public Topic getRoleSpec()
Description copied from interface: Member
Returns the topic which defines the type of this Member.

Specified by:
getRoleSpec in interface Member
Returns:
The role-defining topic of this member.

setParent

public void setParent(Association parent)

addPlayer

public void addPlayer(Topic player)
Description copied from interface: Member
Adds a topic as a player, meaning one of the topics that define this member. A topic may be a player in multiple Members of multiple Associations.

Specified by:
addPlayer in interface Member
Parameters:
player - the topic to be added to the set of topics that define this member.

setPlayers

public void setPlayers(Topic[] players)
Description copied from interface: Member
Sets the collection of Topics which are players of this Member. The specified array replaces all the existing players of this Member.

Specified by:
setPlayers in interface Member
Parameters:
players - the new set of topics to define this member. If this is null, all the existing players of this member are removed.

removePlayer

public void removePlayer(Topic player)
Description copied from interface: Member
Removes the specified topic from the list of players of this Member object. If the specified Topic is not in the list of players for this Member object, then this method has no effect.

Specified by:
removePlayer in interface Member
Parameters:
player - the topic to be removed from the set of topics that define this member.

setRoleSpec

public void setRoleSpec(Topic roleSpec)
Description copied from interface: Member
Sets the topic which defines the type of this Member. If the Member already has a type defined, then the existing type is replaced by the new one.

Specified by:
setRoleSpec in interface Member
Parameters:
roleSpec - the new role-defining topic of this member.