org.das2.catalog.DasDirNode

All directory node objects can have children


childPath

childPath( org.das2.catalog.DasNode child ) → String

Given a child object get the complete path to it

Parameters

child - The child object for which the path is desired.

Returns:

a String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


get

get( String sChildId ) → DasNode

Get a child node by it's ID.

Parameters

sChildId - a String

Returns:

The child node, or null if no child node has the id sChildId

[search for examples] [view on GitHub] [view on old javadoc] [view source]


list

list( ) → String

List child nodes of this directory type item

Returns:

A list of child node string ids. Return values may be used in the get node function below.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


nearest

nearest( String sSubPath, ProgressMonitor mon ) → DasNode

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

Parameters

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

Returns:

The deepest resolvable node which may just be "this", or even the "parent" in cases where this node is a stub that can't even resolve itself.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


pathSeparator

pathSeparator( ProgressMonitor mon ) → String

Get the separator string to place after my path but before then names of any child items when generating a child path string.

Parameters

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.

Returns:

The path separator string, which may be zero length (and that's okay).

[search for examples] [view on GitHub] [view on old javadoc] [view source]


resolve

resolve( String sSubPath, ProgressMonitor mon ) → DasNode

Walk down a given sub-path and retrieve a fully constructed descendant node.

Parameters

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

Returns:

The full constructed child node object.

[search for examples] [view on GitHub] [view on old javadoc] [view source]