public class DasDirNodeCat
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,org.das2.util.catalog.DasAbstractNode> |
dSubNodes |
protected java.util.List<org.das2.util.catalog.DasAbstractNode.NodeDefLoc> |
lLocs |
protected DasDirNode |
nodePar |
protected java.lang.String |
sId |
protected java.lang.String |
sName |
protected java.lang.String |
sSep |
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
DasDirNodeCat(DasDirNode parent,
java.lang.String id,
java.lang.String name,
java.util.List<java.lang.String> locations) |
| Modifier and Type | Method and Description |
|---|---|
DasNode |
get(java.lang.String sChildId)
Get a child node by it's ID.
|
DasNode |
getRootNode()
Return the highest node reachable by this catalog node.
|
protected void |
initFromJson(org.json.JSONObject jo) |
boolean |
isDataSource()
Can this catalog node provide data
|
boolean |
isDir()
Can this catalog node have the sub-nodes?
|
boolean |
isRootNode()
Is this object a detached root of a catalog tree.
|
java.lang.String[] |
list()
List child nodes of this directory type item
|
protected void |
mergeFromJson(org.json.JSONObject jo) |
java.lang.String |
name()
get the node name
|
java.lang.String |
prettyPrintLoc(java.lang.String sPre,
java.lang.String sSep)
Get the root node list as a string with some separator and prefix
|
DasNode |
resolve(java.lang.String sPath,
ProgressMonitor mon)
Walk down a give sub-path and retrieve a fully constructed descendant node.
|
java.lang.String |
type()
Get the node type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRootNode, isRootNode, namepublic static final java.lang.String TYPE
protected java.util.Map<java.lang.String,org.das2.util.catalog.DasAbstractNode> dSubNodes
protected java.lang.String sSep
protected java.lang.String sId
protected java.lang.String sName
protected DasDirNode nodePar
protected java.util.List<org.das2.util.catalog.DasAbstractNode.NodeDefLoc> lLocs
public DasDirNodeCat(DasDirNode parent, java.lang.String id, java.lang.String name, java.util.List<java.lang.String> locations)
public java.lang.String type()
DasNodepublic boolean isDataSource()
DasNodepublic boolean isDir()
DasNodeprotected void initFromJson(org.json.JSONObject jo)
throws org.json.JSONException,
java.text.ParseException
org.json.JSONExceptionjava.text.ParseExceptionprotected void mergeFromJson(org.json.JSONObject jo)
public DasNode get(java.lang.String sChildId)
DasDirNodepublic java.lang.String[] list()
DasDirNodelist in interface DasDirNodepublic DasNode resolve(java.lang.String sPath, ProgressMonitor mon) throws ResolutionException
DasDirNoderesolve in interface DasDirNodesPath - 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 operationsResolutionException - If the given sub-path could not
be resolved by the catalog.public java.lang.String name()
DasNodepublic java.lang.String prettyPrintLoc(java.lang.String sPre,
java.lang.String sSep)
sPre - A prefix to place before each root node URL, may be nullsSep - The separator to use between each root node URL, may be nullpublic boolean isRootNode()
DasNodeisRootNode in interface DasNodepublic DasNode getRootNode()
DasNodegetRootNode in interface DasNode