public abstract class AbstractDirNode extends AbstractNode implements DasDirNode
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,AbstractNode> |
dSubNodes |
protected java.lang.String |
sSep
The separator string used for sub-paths of this node, may be set to null
or some other value by some nodes, defaults to "/".
|
lLocs, parent, sName
Modifier and Type | Method and Description |
---|---|
java.lang.String |
childPath(DasNode child)
Given a child object get the complete path to it
|
DasNode |
get(java.lang.String sChildId)
Get a child node by it's ID.
|
java.lang.String[] |
list()
List child nodes of this directory type item
|
DasNode |
nearest(java.lang.String sSubPath,
ProgressMonitor mon)
Walk down a given sub-path as far as possible and retrieve the closest descendant
FIXME: Find a better name for this function, maybe resolveDeepest
|
java.lang.String |
pathSeparator(ProgressMonitor mon)
Get the separator string to place after my path but before then names of any
child items when generating a child path string.
|
DasNode |
resolve(java.lang.String sSubPath,
ProgressMonitor mon)
Walk down a given sub-path and retrieve a fully constructed descendant node.
|
getRoot, isRoot, name, path, prettyPrintLoc, toString
protected java.util.Map<java.lang.String,AbstractNode> dSubNodes
protected java.lang.String sSep
public java.lang.String childPath(DasNode child)
DasDirNode
childPath
in interface DasDirNode
child
- The child object for which the path is desired.public java.lang.String pathSeparator(ProgressMonitor mon)
DasDirNode
pathSeparator
in interface DasDirNode
mon
- The separator may be defined in the object data which may trigger
Phase-2 construction. Since this is a network operation a progress
monitor may be supplied.public java.lang.String[] list()
DasDirNode
list
in interface DasDirNode
public DasNode resolve(java.lang.String sSubPath, ProgressMonitor mon) throws DasResolveException
DasDirNode
resolve
in interface DasDirNode
sSubPath
- A sub-path to resolve into a fully loaded node. If this node is a
root catalog, then the sub-path is the complete path.mon
- A progress monitor since sub-node lookup can involve network operationsDasResolveException
public DasNode nearest(java.lang.String sSubPath, ProgressMonitor mon)
DasDirNode
nearest
in interface DasDirNode
sSubPath
- A sub-path to resolve into a fully loaded node. If this node is a
root catalog, then the sub-path is the complete path.mon
- A progress monitor since sub-node lookup can involve network operationspublic DasNode get(java.lang.String sChildId)
DasDirNode
get
in interface DasDirNode