|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectconsciouscode.seedling.NodeReference
consciouscode.seedling.NodeLocation
public class NodeLocation
Identifies the location of a node installed into a Seedling hierarchical
container, by naming a child of a specific BranchNode
.
An instance does not necessarily identify an installed node,
although the parent branch (if defined) must necessary exist.
As with superclass NodeReference
, a NodeLocation
is
immutable. It's main properties are:
BranchNode
.
This can be used to access other Seedling nodes.
Since RootNode
s don't have (accessible) parents, their locations
behave as follows:
Method | Result for RootNode s |
---|---|
NodeReference.available() | this root |
NodeReference.getBaseBranch() | this root |
NodeReference.getNodeName() |
NodePath.ROOT_NAME ("/" ) |
NodeReference.getNodePath() |
NodePath.IDENTITY_PATH |
getParentBranch() | null |
NodeReference.installed() | this root |
NodeReference.parent() | null |
NodeReference.required() | this root |
NodeReference.toLocalPath() |
NodePath.ROOT_PATH |
Method Summary | |
---|---|
static consciouscode.seedling.NodeLocation.RootLocation |
forRoot(RootNode root,
String globalPath)
NOT SUPPORTED FOR APPLICATION USE. |
String |
getGlobalPath()
Returns this node location as a global path. |
BranchNode |
getParentBranch()
Returns the parent branch of the identified node. |
Methods inherited from class consciouscode.seedling.NodeReference |
---|
available, child, equals, forBranch, forChild, forParts, forPath, forPath, from, fromChild, fromParts, fromPath, fromPath, getBaseBranch, getInstalledNode, getLocalPath, getLocalRoot, getNode, getNodeName, getNodePath, getPath, installed, isRoot, parent, parts, path, path, required, toLocalPath, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static consciouscode.seedling.NodeLocation.RootLocation forRoot(RootNode root, String globalPath)
public BranchNode getParentBranch()
RootNode
.public final String getGlobalPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |