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
TopicMapException
void setType(Topic t) throws TopicMapException
TopicMapException
Topic getPlayer(Topic role) throws TopicMapException
TopicMapException
void addPlayer(Topic player, Topic role) throws TopicMapException
TopicMapException
void addPlayers(java.util.Map<Topic,Topic> players) throws TopicMapException
TopicMapException
void removePlayer(Topic role) throws TopicMapException
TopicMapException
java.util.Collection<Topic> getRoles() throws TopicMapException
TopicMapException
TopicMap getTopicMap()
void remove() throws TopicMapException
TopicMapException
boolean isRemoved() throws TopicMapException
TopicMapException
Copyright 2004-2015 Wandora Team