net.ontopia.topicmaps.impl.tmapi2
Class TopicImpl

java.lang.Object
  extended by net.ontopia.topicmaps.impl.tmapi2.TopicImpl
All Implemented Interfaces:
org.tmapi.core.Construct, org.tmapi.core.Topic

public class TopicImpl
extends java.lang.Object
implements org.tmapi.core.Topic

INTERNAL: OKS->TMAPI 2 object wrapper.


Field Summary
protected  TopicMapImpl topicMap
           
 
Constructor Summary
TopicImpl(TopicMapImpl topicMap, TopicIF topic)
           
 
Method Summary
 void addItemIdentifier(org.tmapi.core.Locator iid)
           
 void addSubjectIdentifier(org.tmapi.core.Locator sid)
           
 void addSubjectLocator(org.tmapi.core.Locator slo)
           
 void addType(org.tmapi.core.Topic type)
           
 org.tmapi.core.Name createName(java.lang.String value, java.util.Collection<org.tmapi.core.Topic> scope)
           
 org.tmapi.core.Name createName(java.lang.String value, org.tmapi.core.Topic... scope)
           
 org.tmapi.core.Name createName(org.tmapi.core.Topic type, java.lang.String value, java.util.Collection<org.tmapi.core.Topic> scope)
           
 org.tmapi.core.Name createName(org.tmapi.core.Topic type, java.lang.String value, org.tmapi.core.Topic... scope)
           
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type, org.tmapi.core.Locator value, java.util.Collection<org.tmapi.core.Topic> scope)
           
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type, org.tmapi.core.Locator value, org.tmapi.core.Topic... scope)
           
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type, java.lang.String value, java.util.Collection<org.tmapi.core.Topic> scope)
           
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type, java.lang.String value, org.tmapi.core.Locator datatype, java.util.Collection<org.tmapi.core.Topic> scope)
           
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type, java.lang.String value, org.tmapi.core.Locator datatype, org.tmapi.core.Topic... scope)
           
 org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type, java.lang.String value, org.tmapi.core.Topic... scope)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getId()
           
 java.util.Set<org.tmapi.core.Locator> getItemIdentifiers()
           
 java.util.Set<org.tmapi.core.Name> getNames()
           
 java.util.Set<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type)
           
 java.util.Set<org.tmapi.core.Occurrence> getOccurrences()
           
 java.util.Set<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type)
           
 TopicMapImpl getParent()
           
 org.tmapi.core.Reifiable getReified()
           
 java.util.Set<org.tmapi.core.Role> getRolesPlayed()
           
 java.util.Set<org.tmapi.core.Role> getRolesPlayed(org.tmapi.core.Topic type)
           
 java.util.Set<org.tmapi.core.Role> getRolesPlayed(org.tmapi.core.Topic type, org.tmapi.core.Topic assocType)
           
 java.util.Set<org.tmapi.core.Locator> getSubjectIdentifiers()
           
 java.util.Set<org.tmapi.core.Locator> getSubjectLocators()
           
 TopicMapImpl getTopicMap()
           
 java.util.Set<org.tmapi.core.Topic> getTypes()
           
 int hashCode()
           
 void mergeIn(org.tmapi.core.Topic topic)
           
 void remove()
           
 void removeItemIdentifier(org.tmapi.core.Locator iid)
           
 void removeSubjectIdentifier(org.tmapi.core.Locator sid)
           
 void removeSubjectLocator(org.tmapi.core.Locator slo)
           
 void removeType(org.tmapi.core.Topic type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tmapi.core.Topic
addItemIdentifier
 
Methods inherited from interface org.tmapi.core.Construct
equals, getId, getItemIdentifiers, getTopicMap, hashCode, removeItemIdentifier
 

Field Detail

topicMap

protected TopicMapImpl topicMap
Constructor Detail

TopicImpl

public TopicImpl(TopicMapImpl topicMap,
                 TopicIF topic)
Method Detail

getSubjectIdentifiers

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

addSubjectIdentifier

public void addSubjectIdentifier(org.tmapi.core.Locator sid)
Specified by:
addSubjectIdentifier in interface org.tmapi.core.Topic

removeSubjectIdentifier

public void removeSubjectIdentifier(org.tmapi.core.Locator sid)
Specified by:
removeSubjectIdentifier in interface org.tmapi.core.Topic

getSubjectLocators

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

addSubjectLocator

public void addSubjectLocator(org.tmapi.core.Locator slo)
Specified by:
addSubjectLocator in interface org.tmapi.core.Topic

removeSubjectLocator

public void removeSubjectLocator(org.tmapi.core.Locator slo)
Specified by:
removeSubjectLocator in interface org.tmapi.core.Topic

getTypes

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

addType

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

removeType

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

createName

public org.tmapi.core.Name createName(java.lang.String value,
                                      org.tmapi.core.Topic... scope)
Specified by:
createName in interface org.tmapi.core.Topic

createName

public org.tmapi.core.Name createName(java.lang.String value,
                                      java.util.Collection<org.tmapi.core.Topic> scope)
Specified by:
createName in interface org.tmapi.core.Topic

createName

public org.tmapi.core.Name createName(org.tmapi.core.Topic type,
                                      java.lang.String value,
                                      org.tmapi.core.Topic... scope)
Specified by:
createName in interface org.tmapi.core.Topic

createName

public org.tmapi.core.Name createName(org.tmapi.core.Topic type,
                                      java.lang.String value,
                                      java.util.Collection<org.tmapi.core.Topic> scope)
Specified by:
createName in interface org.tmapi.core.Topic

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type,
                                                  java.lang.String value,
                                                  org.tmapi.core.Topic... scope)
Specified by:
createOccurrence in interface org.tmapi.core.Topic

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type,
                                                  java.lang.String value,
                                                  java.util.Collection<org.tmapi.core.Topic> scope)
Specified by:
createOccurrence in interface org.tmapi.core.Topic

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type,
                                                  org.tmapi.core.Locator value,
                                                  org.tmapi.core.Topic... scope)
Specified by:
createOccurrence in interface org.tmapi.core.Topic

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type,
                                                  org.tmapi.core.Locator value,
                                                  java.util.Collection<org.tmapi.core.Topic> scope)
Specified by:
createOccurrence in interface org.tmapi.core.Topic

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type,
                                                  java.lang.String value,
                                                  org.tmapi.core.Locator datatype,
                                                  org.tmapi.core.Topic... scope)
Specified by:
createOccurrence in interface org.tmapi.core.Topic

createOccurrence

public org.tmapi.core.Occurrence createOccurrence(org.tmapi.core.Topic type,
                                                  java.lang.String value,
                                                  org.tmapi.core.Locator datatype,
                                                  java.util.Collection<org.tmapi.core.Topic> scope)
Specified by:
createOccurrence in interface org.tmapi.core.Topic

getNames

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

getNames

public java.util.Set<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type)
Specified by:
getNames in interface org.tmapi.core.Topic

getOccurrences

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

getOccurrences

public java.util.Set<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type)
Specified by:
getOccurrences in interface org.tmapi.core.Topic

getParent

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

getReified

public org.tmapi.core.Reifiable getReified()
Specified by:
getReified in interface org.tmapi.core.Topic

getRolesPlayed

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

getRolesPlayed

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

getRolesPlayed

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

mergeIn

public void mergeIn(org.tmapi.core.Topic topic)
Specified by:
mergeIn in interface org.tmapi.core.Topic

remove

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

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

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.