Class AbstractURLTopicMapReference

    • Field Detail

      • url

        protected URL url
      • base_address

        protected LocatorIF base_address
      • duplicate_suppression

        protected boolean duplicate_suppression
      • reuse_store

        protected boolean reuse_store
      • maintainFulltextIndexes

        protected boolean maintainFulltextIndexes
      • indexDirectory

        protected String indexDirectory
    • Constructor Detail

      • AbstractURLTopicMapReference

        public AbstractURLTopicMapReference​(String id,
                                            String title,
                                            URL url,
                                            LocatorIF base_address)
    • Method Detail

      • getURL

        public URL getURL()
        INTERNAL: Returns the URL of the topic map pointed at.
      • getBaseAddress

        public LocatorIF getBaseAddress()
        INTERNAL: Returns the base address locator to be used when loading the topic map.
      • setBaseAddress

        public void setBaseAddress​(LocatorIF base_address)
        INTERNAL: Sets the base address locator to be used when loading the topic map.
      • getDuplicateSuppression

        public boolean getDuplicateSuppression()
        INTERNAL: Gets the duplicate suppression flag. If the flag is true duplicate suppression is to be performed when loading the topic maps.
        Since:
        1.4.2
      • setDuplicateSuppression

        public void setDuplicateSuppression​(boolean duplicate_suppression)
        INTERNAL: Sets the duplicate suppression flag. If the flag is true duplicate suppression is to be performed when loading the topic maps.
        Since:
        1.4.2
      • getReuseStore

        public boolean getReuseStore()
        INTERNAL: Flag that indicates whether the same store should be returned by the createStore(boolean) method on every. If the flag is false then a new store will be returned every time. Returning a new store every time effectively means that the referenced topic map will be loaded on every method call.
        Since:
        2.1
      • setReuseStore

        public void setReuseStore​(boolean reuse_store)
        INTERNAL: Sets the reuse_store flag.
        Since:
        2.1
      • close

        public void close()
        Description copied from interface: TopicMapReferenceIF
        PUBLIC: Closes all open stores and the reference itself. Note that topic map stores created through this reference are closed and dereferenced when the reference is closed. The reference can be reopened after it has been closed.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface TopicMapReferenceIF
        Overrides:
        close in class AbstractTopicMapReference
      • delete

        public void delete()
        INTERNAL: Deletes the topic map pointed to. The reference is closed before the topic map is deleted. Note that only URIs pointing to through files can actually be deleted, i.e. "file:" URLs.
        Specified by:
        delete in interface TopicMapReferenceIF
        Overrides:
        delete in class AbstractTopicMapReference
        Since:
        1.3.2
      • getMaintainFulltextIndexes

        public boolean getMaintainFulltextIndexes()
        INTERNAL: Returns true if stores will keep underlying fulltext indexes up-to-date.
        Returns:
        True if fulltext indexes are maintained.
        Since:
        3.0
      • setMaintainFulltextIndexes

        public void setMaintainFulltextIndexes​(boolean maintainFulltextIndexes)
        INTERNAL: Specifies whether underlying fulltext indexes are to be kept up-to-date or not.
        Parameters:
        maintainFulltextIndexes - True if fulltext indexes are maintained.
        Since:
        3.0
      • getIndexDirectory

        public String getIndexDirectory()
      • setIndexDirectory

        public void setIndexDirectory​(String indexDirectory)