Interface NonTraversableResource

    • Method Detail

      • getChild

        default Resource getChild​(String relativePath)
        Description copied from interface: Resource

        Creates a new Resource that is relative to this resource.

        Specified by:
        getChild in interface Resource
        Parameters:
        relativePath - The relative path for the new resource.
        Returns:
        A new resource that is relative to this resource.
      • getParent

        default Resource getParent()
        Description copied from interface: Resource
        Gets parent.
        Specified by:
        getParent in interface Resource
        Returns:
        The parent resource (directory for file, parent directory for a directory)
      • childIterator

        default Iterator<Resource> childIterator​(String pattern,
                                                 boolean recursive)
        Description copied from interface: Resource
        Iterator over the children
        Specified by:
        childIterator in interface Resource
        Parameters:
        pattern - The pattern to determine what files we want
        recursive - should we iterator recursively?
        Returns:
        An iterator over the children
      • getChildren

        default List<Resource> getChildren()
        Description copied from interface: Resource

        Lists all the resources that are directly under this resource.

        Specified by:
        getChildren in interface Resource
        Returns:
        A list of all the resources one level under this resource.
      • getChildren

        default List<Resource> getChildren​(Pattern pattern,
                                           boolean recursive)
        Description copied from interface: Resource

        Lists all the resources that are directly under this resource.

        Specified by:
        getChildren in interface Resource
        Parameters:
        pattern - The file matching pattern
        recursive - Gets all children recursively
        Returns:
        A list of all the resources one level under this resource.
      • getChildren

        default List<Resource> getChildren​(String pattern)
        Description copied from interface: Resource

        Lists all the resources that are directly under this resource.

        Specified by:
        getChildren in interface Resource
        Parameters:
        pattern - The file matching pattern
        Returns:
        A list of all the resources one level under this resource.
      • getChildren

        default List<Resource> getChildren​(String pattern,
                                           boolean recursive)
        Description copied from interface: Resource

        Lists all the resources that are directly under this resource.

        Specified by:
        getChildren in interface Resource
        Parameters:
        pattern - The file matching pattern
        recursive - Gets all children recursively
        Returns:
        A list of all the resources one level under this resource.
      • getChildren

        default List<Resource> getChildren​(boolean recursive)
        Description copied from interface: Resource

        Lists all the resources that are directly under this resource.

        Specified by:
        getChildren in interface Resource
        Parameters:
        recursive - Gets all children recursively
        Returns:
        A list of all the resources one level under this resource.
      • childIterator

        default Iterator<Resource> childIterator​(boolean recursive)
        Description copied from interface: Resource
        Iterator over the children
        Specified by:
        childIterator in interface Resource
        Parameters:
        recursive - should we iterator recursively?
        Returns:
        An iterator over the children