Class RoleImpl
- java.lang.Object
-
- net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
-
- net.ontopia.topicmaps.impl.tmapi2.RoleImpl
-
- All Implemented Interfaces:
org.tmapi.core.Construct
,org.tmapi.core.Reifiable
,org.tmapi.core.Role
,org.tmapi.core.Typed
public class RoleImpl extends ReifiableImpl implements org.tmapi.core.Role
INTERNAL: OKS->TMAPI 2 object wrapper.
-
-
Field Summary
Fields Modifier and Type Field Description protected TopicMapImpl
topicMap
-
Constructor Summary
Constructors Constructor Description RoleImpl(TopicMapImpl topicMap, AssociationRoleIF role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItemIdentifier(org.tmapi.core.Locator iid)
boolean
equals(Object obj)
String
getId()
Set<org.tmapi.core.Locator>
getItemIdentifiers()
org.tmapi.core.Association
getParent()
org.tmapi.core.Topic
getPlayer()
TopicMapImpl
getTopicMap()
org.tmapi.core.Topic
getType()
AssociationRoleIF
getWrapped()
int
hashCode()
void
remove()
void
removeItemIdentifier(org.tmapi.core.Locator iid)
void
setPlayer(org.tmapi.core.Topic player)
void
setType(org.tmapi.core.Topic type)
-
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
getReifier, setReifier
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
topicMap
protected TopicMapImpl topicMap
-
-
Constructor Detail
-
RoleImpl
public RoleImpl(TopicMapImpl topicMap, AssociationRoleIF role)
-
-
Method Detail
-
getWrapped
public AssociationRoleIF getWrapped()
-
getParent
public org.tmapi.core.Association getParent()
- Specified by:
getParent
in interfaceorg.tmapi.core.Construct
- Specified by:
getParent
in interfaceorg.tmapi.core.Role
-
getPlayer
public org.tmapi.core.Topic getPlayer()
- Specified by:
getPlayer
in interfaceorg.tmapi.core.Role
-
setPlayer
public void setPlayer(org.tmapi.core.Topic player)
- Specified by:
setPlayer
in interfaceorg.tmapi.core.Role
-
getType
public org.tmapi.core.Topic getType()
- Specified by:
getType
in interfaceorg.tmapi.core.Typed
-
setType
public void setType(org.tmapi.core.Topic type)
- Specified by:
setType
in interfaceorg.tmapi.core.Typed
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.tmapi.core.Construct
-
getItemIdentifiers
public Set<org.tmapi.core.Locator> getItemIdentifiers()
- Specified by:
getItemIdentifiers
in interfaceorg.tmapi.core.Construct
-
addItemIdentifier
public void addItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
addItemIdentifier
in interfaceorg.tmapi.core.Construct
-
removeItemIdentifier
public void removeItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
removeItemIdentifier
in interfaceorg.tmapi.core.Construct
-
getTopicMap
public TopicMapImpl getTopicMap()
- Specified by:
getTopicMap
in interfaceorg.tmapi.core.Construct
-
remove
public void remove()
- Specified by:
remove
in interfaceorg.tmapi.core.Construct
-
equals
public boolean equals(Object obj)
-
-