|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tm4j.topicmap.unified.UnifiedTopicMapObject
org.tm4j.topicmap.unified.UnifiedMember
| 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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UnifiedMember(UnifiedTopicMap tm,
Member base)
| Method Detail |
public Association getParent()
Member
getParent in interface Membernull
if the member is currently not part of any association.public java.util.Collection getPlayers()
Member
getPlayers in interface MemberTopics that define
this member.
If no players are currently defined for this
member, the returned collection is empty;
it is never null.public Topic getRoleSpec()
Member
getRoleSpec in interface Memberpublic void setParent(Association parent)
public void addPlayer(Topic player)
Member
addPlayer in interface Memberplayer - the topic to be added to the set of topics
that define this member.public void setPlayers(Topic[] players)
Member
setPlayers in interface Memberplayers - the new set of topics to define
this member. If this is null,
all the existing players of this member
are removed.public void removePlayer(Topic player)
Member
removePlayer in interface Memberplayer - the topic to be removed from the set of topics
that define this member.public void setRoleSpec(Topic roleSpec)
Member
setRoleSpec in interface MemberroleSpec - the new role-defining topic of this member.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||