Class SightPathNode


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

      • SightPathNode

        public SightPathNode()
    • Method Detail

      • setFolders

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

        public java.util.List<PathLeaf> getSights()
      • setSights

        public SightPathNode setSights​(java.util.List<PathLeaf> sights)
        Parameters:
        sights - the list of sight leaf nodes within this folder; may be null
      • getLeafSight

        public PathLeaf getLeafSight()
        Walks down through folders until a node contains sights, then returns the first sight.
      • getLeafSightPath

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

        Examples:

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