net.ontopia.topicmaps.impl.tmapi2
Class AssociationImpl

java.lang.Object
  extended by net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
      extended by net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
          extended by 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
protected  TopicMapImpl topicMap
           
 
Constructor Summary
AssociationImpl(TopicMapImpl topicMap, AssociationIF assoc)
           
 
Method Summary
 void addItemIdentifier(org.tmapi.core.Locator iid)
           
 RoleImpl createRole(org.tmapi.core.Topic type, org.tmapi.core.Topic player)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getId()
           
 java.util.Set<org.tmapi.core.Locator> getItemIdentifiers()
           
 TopicMapImpl getParent()
           
 java.util.Set<org.tmapi.core.Role> getRoles()
           
 java.util.Set<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type)
           
 java.util.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
 
Methods inherited from interface org.tmapi.core.Reifiable
getReifier, setReifier
 
Methods inherited from interface org.tmapi.core.Scoped
addTheme, getScope, removeTheme
 
Methods inherited from interface org.tmapi.core.Construct
addItemIdentifier, equals, getId, getItemIdentifiers, getTopicMap, hashCode, remove, removeItemIdentifier
 

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 interface org.tmapi.core.Association

getParent

public TopicMapImpl getParent()
Specified by:
getParent in interface org.tmapi.core.Association
Specified by:
getParent in interface org.tmapi.core.Construct

getRoleTypes

public java.util.Set<org.tmapi.core.Topic> getRoleTypes()
Specified by:
getRoleTypes in interface org.tmapi.core.Association

getRoles

public java.util.Set<org.tmapi.core.Role> getRoles()
Specified by:
getRoles in interface org.tmapi.core.Association

getRoles

public java.util.Set<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type)
Specified by:
getRoles in interface org.tmapi.core.Association

getType

public org.tmapi.core.Topic getType()
Specified by:
getType in interface org.tmapi.core.Typed

setType

public void setType(org.tmapi.core.Topic type)
Specified by:
setType in interface org.tmapi.core.Typed

getId

public java.lang.String getId()
Specified by:
getId in interface org.tmapi.core.Construct

getItemIdentifiers

public java.util.Set<org.tmapi.core.Locator> getItemIdentifiers()
Specified by:
getItemIdentifiers in interface org.tmapi.core.Construct

addItemIdentifier

public void addItemIdentifier(org.tmapi.core.Locator iid)
Specified by:
addItemIdentifier in interface org.tmapi.core.Construct

removeItemIdentifier

public void removeItemIdentifier(org.tmapi.core.Locator iid)
Specified by:
removeItemIdentifier in interface org.tmapi.core.Construct

getTopicMap

public TopicMapImpl getTopicMap()
Specified by:
getTopicMap in interface org.tmapi.core.Construct

remove

public void remove()
Specified by:
remove in interface org.tmapi.core.Construct

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface org.tmapi.core.Construct
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface org.tmapi.core.Construct
Overrides:
hashCode in class java.lang.Object


Copyright © 2000-2012 Ontopia.