Class SheetPathNode


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

      • SheetPathNode

        public SheetPathNode()
    • Method Detail

      • setFolders

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

        public java.util.List<PathLeaf> getSheets()
      • setSheets

        public SheetPathNode setSheets​(java.util.List<PathLeaf> sheets)
        Parameters:
        sheets - the list of sheet leaf nodes within this folder; may be null
      • getLeafSheet

        public PathLeaf getLeafSheet()
        Walks down through folders until a node contains sheets, then returns the first sheet.
      • getLeafSheetPath

        public java.lang.String getLeafSheetPath()
        Returns a UNIX style /-joined path of folder names plus the target sheet name.

        Examples:

        • Workspace → Folder → Sheet returns "/Workspace/Folder/Sheet"
        • Workspace → Sheet (no intermediate folders) returns "/Workspace/Sheet"