Class TopicMapImpl

  • All Implemented Interfaces:
    org.tmapi.core.Construct, org.tmapi.core.Reifiable, org.tmapi.core.TopicMap

    public class TopicMapImpl
    extends ReifiableImpl
    implements org.tmapi.core.TopicMap
    INTERNAL: OKS->TMAPI 2 object wrapper.
    • Method Detail

      • getDefaultNameType

        protected TopicImpl getDefaultNameType()
      • getLocator

        public org.tmapi.core.Locator getLocator()
        Specified by:
        getLocator in interface org.tmapi.core.TopicMap
      • unwrapName

        public TopicNameIF unwrapName​(org.tmapi.core.Name name)
      • unwrapVariant

        public VariantNameIF unwrapVariant​(org.tmapi.core.Variant variant)
      • unwrapLocator

        public LocatorIF unwrapLocator​(org.tmapi.core.Locator loc)
      • close

        public void close()
        Specified by:
        close in interface org.tmapi.core.TopicMap
      • createAssociation

        public org.tmapi.core.Association createAssociation​(org.tmapi.core.Topic type,
                                                            org.tmapi.core.Topic... scope)
        Specified by:
        createAssociation in interface org.tmapi.core.TopicMap
      • createAssociation

        public org.tmapi.core.Association createAssociation​(org.tmapi.core.Topic type,
                                                            Collection<org.tmapi.core.Topic> scope)
        Specified by:
        createAssociation in interface org.tmapi.core.TopicMap
      • createLocator

        public org.tmapi.core.Locator createLocator​(String reference)
        Specified by:
        createLocator in interface org.tmapi.core.TopicMap
      • createTopic

        public TopicImpl createTopic()
        Specified by:
        createTopic in interface org.tmapi.core.TopicMap
      • createTopicByItemIdentifier

        public TopicImpl createTopicByItemIdentifier​(org.tmapi.core.Locator iid)
        Specified by:
        createTopicByItemIdentifier in interface org.tmapi.core.TopicMap
      • createTopicBySubjectIdentifier

        public TopicImpl createTopicBySubjectIdentifier​(org.tmapi.core.Locator sid)
        Specified by:
        createTopicBySubjectIdentifier in interface org.tmapi.core.TopicMap
      • createTopicBySubjectLocator

        public TopicImpl createTopicBySubjectLocator​(org.tmapi.core.Locator slo)
        Specified by:
        createTopicBySubjectLocator in interface org.tmapi.core.TopicMap
      • getAssociations

        public Set<org.tmapi.core.Association> getAssociations()
        Specified by:
        getAssociations in interface org.tmapi.core.TopicMap
      • getConstructById

        public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructById​(String id)
        Specified by:
        getConstructById in interface org.tmapi.core.TopicMap
      • getConstructByItemIdentifier

        public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructByItemIdentifier​(org.tmapi.core.Locator iid)
        Specified by:
        getConstructByItemIdentifier in interface org.tmapi.core.TopicMap
      • getIndex

        public <I extends org.tmapi.index.Index> I getIndex​(Class<I> idx)
        Specified by:
        getIndex in interface org.tmapi.core.TopicMap
      • getParent

        public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getParent()
        Specified by:
        getParent in interface org.tmapi.core.Construct
        Specified by:
        getParent in interface org.tmapi.core.TopicMap
      • getTopicBySubjectIdentifier

        public TopicImpl getTopicBySubjectIdentifier​(org.tmapi.core.Locator sid)
        Specified by:
        getTopicBySubjectIdentifier in interface org.tmapi.core.TopicMap
      • getTopicBySubjectLocator

        public TopicImpl getTopicBySubjectLocator​(org.tmapi.core.Locator slo)
        Specified by:
        getTopicBySubjectLocator in interface org.tmapi.core.TopicMap
      • getTopics

        public Set<org.tmapi.core.Topic> getTopics()
        Specified by:
        getTopics in interface org.tmapi.core.TopicMap
      • mergeIn

        public void mergeIn​(org.tmapi.core.TopicMap tm)
        Specified by:
        mergeIn in interface org.tmapi.core.TopicMap
      • remove

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

        public TopicIF unwrapTopic​(org.tmapi.core.Topic topic)
      • wrapTMObject

        public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl wrapTMObject​(TMObjectIF tmobject)
      • wrapOccurrence

        public org.tmapi.core.Occurrence wrapOccurrence​(OccurrenceIF occ)
      • wrapLocator

        public org.tmapi.core.Locator wrapLocator​(LocatorIF loc)
      • getId

        public String getId()
        Specified by:
        getId in interface org.tmapi.core.Construct
      • getItemIdentifiers

        public 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​(Object obj)
        Specified by:
        equals in interface org.tmapi.core.Construct
        Overrides:
        equals in class Object
      • hashCode

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