Interface Repository

    • Field Detail

      • SEPARATOR

        static final java.lang.String SEPARATOR
        String containing file separator characters. Always include slash character, plus the native separator char if it isn't the slash.
    • Method Detail

      • getResource

        Resource getResource​(java.lang.String resourceName)
                      throws java.io.IOException
        Returns a specific direct resource of the repository
        Parameters:
        resourceName - name of the child resource to return
        Returns:
        specified child resource
        Throws:
        java.io.IOException
      • getResources

        Resource[] getResources()
                         throws java.io.IOException
        Get a list of resources contained in this repository identified by the given local name.
        Returns:
        a list of all direct child resources
        Throws:
        java.io.IOException
      • getResources

        Resource[] getResources​(boolean recursive)
                         throws java.io.IOException
        Get a list of resources contained in this repository identified by the given local name.
        Parameters:
        recursive - whether to include nested resources
        Returns:
        a list of all nested child resources
        Throws:
        java.io.IOException
      • getResources

        Resource[] getResources​(java.lang.String resourcePath,
                                boolean recursive)
                         throws java.io.IOException
        Get a list of resources contained in this repository identified by the given local name.
        Parameters:
        resourcePath - the repository path
        recursive - whether to include nested resources
        Returns:
        a list of all nested child resources
        Throws:
        java.io.IOException
      • getRepositories

        Repository[] getRepositories()
                              throws java.io.IOException
        Returns this repository's direct child repositories
        Returns:
        direct repositories
        Throws:
        java.io.IOException - an I/O error occurred
      • getChildRepository

        Repository getChildRepository​(java.lang.String path)
                               throws java.io.IOException
        Get a child repository with the given path
        Parameters:
        path - the path of the repository
        Returns:
        the child repository
        Throws:
        java.io.IOException - an IOException occurred
      • setRoot

        void setRoot()
        Mark this repository as root repository, disabling any parent access.
      • getRelativePath

        java.lang.String getRelativePath()
        Get the path of this repository relative to its root repository.
        Specified by:
        getRelativePath in interface Trackable
        Returns:
        the repository path