Package com.smartsheet.api.models
Class SightPathNode
- java.lang.Object
-
- com.smartsheet.api.models.IdentifiableModel<T>
-
- com.smartsheet.api.models.NamedModel<java.lang.Long>
-
- com.smartsheet.api.models.PathNode
-
- com.smartsheet.api.models.SightPathNode
-
public class SightPathNode extends PathNode
Node in a sight path response. Contains recursive folders leading to the target sight.
-
-
Constructor Summary
Constructors Constructor Description SightPathNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<SightPathNode>getFolders()PathLeafgetLeafSight()Walks down through folders until a node contains sights, then returns the first sight.java.lang.StringgetLeafSightPath()Returns a UNIX style/-joined path of folder names plus the target sight name.java.util.List<PathLeaf>getSights()SightPathNodesetFolders(java.util.List<SightPathNode> folders)SightPathNodesetSights(java.util.List<PathLeaf> sights)-
Methods inherited from class com.smartsheet.api.models.PathNode
getAccessLevel, getPermalink, setAccessLevel, setPermalink
-
Methods inherited from class com.smartsheet.api.models.NamedModel
getName, setName
-
Methods inherited from class com.smartsheet.api.models.IdentifiableModel
equals, getId, hashCode, setId
-
-
-
-
Method Detail
-
getFolders
public java.util.List<SightPathNode> getFolders()
-
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"
- Workspace → Folder → Sight returns
-
-