Class FolderPathNode


  • public class FolderPathNode
    extends PathNode
    Node in a folder path response. Contains recursive folders leading to the target folder.
    • Constructor Detail

      • FolderPathNode

        public FolderPathNode()
    • Method Detail

      • setFolders

        public FolderPathNode setFolders​(java.util.List<FolderPathNode> folders)
        Parameters:
        folders - the list of nested folder nodes; may be null
      • getLeafFolder

        public FolderPathNode getLeafFolder()
        Walks down through folders until reaching the deepest (target) folder node, then returns it.
      • getLeafFolderPath

        public java.lang.String getLeafFolderPath()
        Returns a UNIX style /-joined path of folder names down to the target folder.

        Examples:

        • Workspace → FolderA → FolderB → Target returns "/Workspace/FolderA/FolderB/Target"
        • Workspace → Target (no intermediate folders) returns "/Workspace/Target"