public interface Association
| Modifier and Type | Method and Description |
|---|---|
void |
addPlayer(Topic player,
Topic role)
Sets the player with the specified role replacing previous player with
that role if it exists already.
|
void |
addPlayers(java.util.Map<Topic,Topic> players)
Adds players to the association.
|
Topic |
getPlayer(Topic role)
Gets the player with the specified role.
|
java.util.Collection<Topic> |
getRoles()
Gets a Collection of Topics containing the roles of this association.
|
TopicMap |
getTopicMap()
Gets the topic map this association belongs to.
|
Topic |
getType()
Gets the type of this association.
|
boolean |
isRemoved()
Tests if this association has been removed and thus this object is now
invalid.
|
void |
remove()
Removes this association.
|
void |
removePlayer(Topic role)
Removes the player with the specified role.
|
void |
setType(Topic t)
Sets the type of this association replacing the previous type.
|
Topic getType() throws TopicMapException
TopicMapExceptionvoid setType(Topic t) throws TopicMapException
TopicMapExceptionTopic getPlayer(Topic role) throws TopicMapException
TopicMapExceptionvoid addPlayer(Topic player, Topic role) throws TopicMapException
TopicMapExceptionvoid addPlayers(java.util.Map<Topic,Topic> players) throws TopicMapException
TopicMapExceptionvoid removePlayer(Topic role) throws TopicMapException
TopicMapExceptionjava.util.Collection<Topic> getRoles() throws TopicMapException
TopicMapExceptionTopicMap getTopicMap()
void remove()
throws TopicMapException
TopicMapExceptionboolean isRemoved()
throws TopicMapException
TopicMapExceptionCopyright 2004-2015 Wandora Team