Class AssociationImpl
- java.lang.Object
-
- net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
-
- net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
-
- net.ontopia.topicmaps.impl.tmapi2.AssociationImpl
-
- All Implemented Interfaces:
org.tmapi.core.Association
,org.tmapi.core.Construct
,org.tmapi.core.Reifiable
,org.tmapi.core.Scoped
,org.tmapi.core.Typed
public class AssociationImpl extends ScopedImpl implements org.tmapi.core.Association
INTERNAL: OKS->TMAPI 2 object wrapper.
-
-
Field Summary
Fields Modifier and Type Field Description protected TopicMapImpl
topicMap
-
Constructor Summary
Constructors Constructor Description AssociationImpl(TopicMapImpl topicMap, AssociationIF assoc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItemIdentifier(org.tmapi.core.Locator iid)
RoleImpl
createRole(org.tmapi.core.Topic type, org.tmapi.core.Topic player)
boolean
equals(Object obj)
String
getId()
Set<org.tmapi.core.Locator>
getItemIdentifiers()
TopicMapImpl
getParent()
Set<org.tmapi.core.Role>
getRoles()
Set<org.tmapi.core.Role>
getRoles(org.tmapi.core.Topic type)
Set<org.tmapi.core.Topic>
getRoleTypes()
TopicMapImpl
getTopicMap()
org.tmapi.core.Topic
getType()
AssociationIF
getWrapped()
int
hashCode()
void
remove()
void
removeItemIdentifier(org.tmapi.core.Locator iid)
void
setType(org.tmapi.core.Topic type)
-
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
addTheme, getScope, removeTheme
-
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
-
AssociationImpl
public AssociationImpl(TopicMapImpl topicMap, AssociationIF assoc)
-
-
Method Detail
-
getWrapped
public AssociationIF getWrapped()
-
createRole
public RoleImpl createRole(org.tmapi.core.Topic type, org.tmapi.core.Topic player)
- Specified by:
createRole
in interfaceorg.tmapi.core.Association
-
getParent
public TopicMapImpl getParent()
- Specified by:
getParent
in interfaceorg.tmapi.core.Association
- Specified by:
getParent
in interfaceorg.tmapi.core.Construct
-
getRoleTypes
public Set<org.tmapi.core.Topic> getRoleTypes()
- Specified by:
getRoleTypes
in interfaceorg.tmapi.core.Association
-
getRoles
public Set<org.tmapi.core.Role> getRoles()
- Specified by:
getRoles
in interfaceorg.tmapi.core.Association
-
getRoles
public Set<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type)
- Specified by:
getRoles
in interfaceorg.tmapi.core.Association
-
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)
-
-