public interface DasDirNode extends DasNode
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.
|
java.lang.String[] list()
DasNode get(java.lang.String sChildId)
sChildId
- java.lang.String childPath(DasNode child)
child
- The child object for which the path is desired.java.lang.String pathSeparator(ProgressMonitor mon)
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.DasNode resolve(java.lang.String sSubPath, ProgressMonitor mon) throws DasResolveException
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 operationsorg.das2.util.catalog.DasResolveException
- If the given sub-path could not
be resolved by the catalog.DasResolveException
DasNode nearest(java.lang.String sSubPath, ProgressMonitor mon)
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 operations