Class FileStoreStructureProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List getChildren​(java.lang.Object element)
      Returns a collection with the children of the specified structured element.
      java.io.InputStream getContents​(java.lang.Object element)
      Returns the contents of the specified structured element, or null if there is a problem determining the element's contents.
      java.lang.String getFullPath​(java.lang.Object element)
      Returns the full path of the specified structured element.
      java.lang.String getLabel​(java.lang.Object element)
      Returns the display label of the specified structured element.
      boolean isFolder​(java.lang.Object element)
      Returns a boolean indicating whether the passed structured element represents a container element (as opposed to a leaf element).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileStoreStructureProvider

        public FileStoreStructureProvider()
    • Method Detail

      • getChildren

        public java.util.List getChildren​(java.lang.Object element)
        Description copied from interface: IImportStructureProvider
        Returns a collection with the children of the specified structured element.
        Specified by:
        getChildren in interface IImportStructureProvider
        Parameters:
        element - the element for which to compute the children
        Returns:
        the list of child elements
      • getContents

        public java.io.InputStream getContents​(java.lang.Object element)
        Description copied from interface: IImportStructureProvider
        Returns the contents of the specified structured element, or null if there is a problem determining the element's contents.

        Note:: The client is responsible for closing the stream when finished.

        Specified by:
        getContents in interface IImportStructureProvider
        Parameters:
        element - a structured element
        Returns:
        the contents of the structured element, or null
      • getFullPath

        public java.lang.String getFullPath​(java.lang.Object element)
        Description copied from interface: IImportStructureProvider
        Returns the full path of the specified structured element.
        Specified by:
        getFullPath in interface IImportStructureProvider
        Parameters:
        element - a structured element
        Returns:
        the display label of the structured element
      • getLabel

        public java.lang.String getLabel​(java.lang.Object element)
        Description copied from interface: IImportStructureProvider
        Returns the display label of the specified structured element.
        Specified by:
        getLabel in interface IImportStructureProvider
        Parameters:
        element - a structured element
        Returns:
        the display label of the structured element
      • isFolder

        public boolean isFolder​(java.lang.Object element)
        Description copied from interface: IImportStructureProvider
        Returns a boolean indicating whether the passed structured element represents a container element (as opposed to a leaf element).
        Specified by:
        isFolder in interface IImportStructureProvider
        Parameters:
        element - java.lang.Object
        Returns:
        boolean