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, toStringprotected java.util.Map<java.lang.String,AbstractNode> dSubNodes
protected java.lang.String sSep
public java.lang.String childPath(DasNode child)
DasDirNodechildPath in interface DasDirNodechild - The child object for which the path is desired.public java.lang.String pathSeparator(ProgressMonitor mon)
DasDirNodepathSeparator in interface DasDirNodemon - 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()
DasDirNodelist in interface DasDirNodepublic DasNode resolve(java.lang.String sSubPath, ProgressMonitor mon) throws DasResolveException
DasDirNoderesolve in interface DasDirNodesSubPath - 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 operationsDasResolveExceptionpublic DasNode nearest(java.lang.String sSubPath, ProgressMonitor mon)
DasDirNodenearest in interface DasDirNodesSubPath - 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)
DasDirNodeget in interface DasDirNode