public class WebServiceAssociation extends java.lang.Object implements Association
| Modifier and Type | Field and Description |
|---|---|
private java.util.HashMap<Topic,Topic> |
players |
private WebServiceTopicMap |
tm |
private Topic |
type |
private TopicMapServiceStub.WSAssociation |
wsassociation |
| Constructor and Description |
|---|
WebServiceAssociation(WebServiceTopicMap tm,
TopicMapServiceStub.WSAssociation wsassociation) |
| 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.
|
private WebServiceTopicMap tm
private TopicMapServiceStub.WSAssociation wsassociation
private Topic type
public WebServiceAssociation(WebServiceTopicMap tm, TopicMapServiceStub.WSAssociation wsassociation) throws TopicMapException
TopicMapExceptionpublic void addPlayer(Topic player, Topic role) throws TopicMapException
AssociationaddPlayer in interface AssociationTopicMapExceptionpublic void addPlayers(java.util.Map<Topic,Topic> players) throws TopicMapException
AssociationaddPlayers in interface AssociationTopicMapExceptionpublic Topic getPlayer(Topic role) throws TopicMapException
AssociationgetPlayer in interface AssociationTopicMapExceptionpublic java.util.Collection<Topic> getRoles() throws TopicMapException
AssociationgetRoles in interface AssociationTopicMapExceptionpublic TopicMap getTopicMap()
AssociationgetTopicMap in interface Associationpublic Topic getType() throws TopicMapException
AssociationgetType in interface AssociationTopicMapExceptionpublic boolean isRemoved()
throws TopicMapException
AssociationisRemoved in interface AssociationTopicMapExceptionpublic void remove()
throws TopicMapException
Associationremove in interface AssociationTopicMapExceptionpublic void removePlayer(Topic role) throws TopicMapException
AssociationremovePlayer in interface AssociationTopicMapExceptionpublic void setType(Topic t) throws TopicMapException
AssociationsetType in interface AssociationTopicMapExceptionCopyright 2004-2015 Wandora Team