Class AbstractPathTopicMapSource

    • Constructor Detail

      • AbstractPathTopicMapSource

        public AbstractPathTopicMapSource()
      • AbstractPathTopicMapSource

        public AbstractPathTopicMapSource​(String path,
                                          String suffix)
      • AbstractPathTopicMapSource

        public AbstractPathTopicMapSource​(String path,
                                          FileFilter filter)
      • AbstractPathTopicMapSource

        public AbstractPathTopicMapSource​(String path,
                                          String suffix,
                                          LocatorIF base_address)
      • AbstractPathTopicMapSource

        public AbstractPathTopicMapSource​(String path,
                                          FileFilter filter,
                                          LocatorIF base_address)
    • Method Detail

      • setId

        public void setId​(String id)
        Description copied from interface: TopicMapSourceIF
        PUBLIC: Sets the id of the source. Note that this method is intended for use when the source is used in a TopicMapRepositoryIF. The source should throw an UnsupportedOperationException if it does not support setting the id.

        Specified by:
        setId in interface TopicMapSourceIF
      • getPath

        public String getPath()
        INTERNAL: Gets the path in which the source locates its references.
      • setPath

        public void setPath​(String path)
        INTERNAL: Sets the path in which the source locates its references.
      • getSuffix

        public String getSuffix()
        INTERNAL: Gets the file suffix that should be used for filtering.
      • setSuffix

        public void setSuffix​(String suffix)
        INTERNAL: Sets the file suffix that should be used for filtering.
      • getBase

        public LocatorIF getBase()
        INTERNAL: Gets the base locator of the topic maps retrieved from the source.
        Since:
        1.3.2
      • setBase

        public void setBase​(LocatorIF base_address)
        INTERNAL: Sets the base locator of the topic maps retrieved from the source.
        Since:
        1.3.2
      • getBaseAddress

        public String getBaseAddress()
        INTERNAL: Gets the base address of the topic maps retrieved from the source. The notation is assumed to be 'URI'.
        Since:
        1.2.5
      • setBaseAddress

        public void setBaseAddress​(String base_address)
        INTERNAL: Sets the base address of the topic maps retrieved from the source. The notation is assumed to be 'URI'.
        Since:
        1.2.5
      • 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
      • supportsCreate

        public boolean supportsCreate()
        Description copied from interface: TopicMapSourceIF
        PUBLIC: Returns true if the source supports creating new topic maps with the createTopicMap.
        Specified by:
        supportsCreate in interface TopicMapSourceIF
      • supportsDelete

        public boolean supportsDelete()
        Description copied from interface: TopicMapSourceIF
        PUBLIC: Returns true if the source supports deleting topic map with the TopicMapReferenceIF.delete() method.
        Specified by:
        supportsDelete in interface TopicMapSourceIF
      • createTopicMap

        public TopicMapReferenceIF createTopicMap​(String name,
                                                  String baseAddress)
        Description copied from interface: TopicMapSourceIF
        PUBLIC: Creates a new topic map in the underlying source and returns a reference to the created topic map. The method takes a name and the base address for the topic map to create.
        Specified by:
        createTopicMap in interface TopicMapSourceIF
      • refresh

        public void refresh()
        Description copied from interface: TopicMapSourceIF
        PUBLIC: Refreshes the collection of references. This lets the source look at its underlying data source to reflect any changes made since the last refresh.
        Specified by:
        refresh in interface TopicMapSourceIF
      • close

        public void close()
        Description copied from interface: TopicMapSourceIF
        PUBLIC: Closes the source by releasing references it holds to e.g. database or file system objects.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface TopicMapSourceIF
      • refreshFromClasspath

        protected Map refreshFromClasspath()
      • getFileFilter

        public FileFilter getFileFilter()
        INTERNAL: Returns the FileFilter used to in the specified path.

        Since:
        1.3.4
      • setFileFilter

        public void setFileFilter​(FileFilter filter)
        INTERNAL: Sets a FileFilter used to filter the files in the specified path.

        Parameters:
        filter - a java.io.FileFilter object for filtering the files
        Since:
        1.3.4
      • accept

        public boolean accept​(File file)
        INTERNAL: A file filter method implementation. It accepts a file if it is not a directory and the filename ends with the specified suffix.
        Specified by:
        accept in interface FileFilter
      • getHidden

        public boolean getHidden()
      • setHidden

        public void setHidden​(boolean hidden)