|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object consciouscode.seedling.tree.GenericNode
public class GenericNode
A basic Seedling node that provides location and logging features.
If this node is installed with no log configured, it will inherit the log used by the parent branch.
Constructor Summary | |
---|---|
GenericNode()
|
Method Summary | |
---|---|
RootNode |
getLocalRoot()
Get the root of this node's local scope. |
Log |
getLog()
|
NodeLocation |
getNodeLocation()
Returns the location of this node. |
String |
getNodeName()
Gets the name of this node, as per it's location . |
BranchNode |
getParentBranch()
Gets the branch containing this node, as per it's location . |
boolean |
isLoggingDebug()
Deprecated. but here to provide visibility in console. |
void |
nodeInstalled(NodeLocation location)
Register the Seedling address at which this node has been installed. |
void |
setLog(Log log)
|
void |
setLoggingDebug(boolean value)
Deprecated. but we can't remove it until we have LoggingInjector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericNode()
Method Detail |
---|
public RootNode getLocalRoot()
BranchNode.getLocalRoot()
public void nodeInstalled(NodeLocation location)
LocatableNode
Note: This is not called setNodeLocation
because
the location is not intended as a writable property.
nodeInstalled
in interface LocatableNode
location
- is this node's new location. It must not be null.public final NodeLocation getNodeLocation()
LocatableNode
NodeLocation
can be used
to access the node's name, parent branch, and path.
getNodeLocation
in interface LocatableNode
null
if the node has not
been installed into a Seedling.public final BranchNode getParentBranch()
location
.
NodeLocation.getParentBranch()
public final String getNodeName()
location
.
NodeReference.getNodeName()
public Log getLog()
public void setLog(Log log)
@Deprecated public boolean isLoggingDebug()
@Deprecated public void setLoggingDebug(boolean value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |