story.dbcore.nodes
Class NodeProxy
java.lang.Object
story.dbcore.nodes.NodeProxy
- All Implemented Interfaces:
- InternableObject, RenderableObject
public class NodeProxy
- extends java.lang.Object
- implements RenderableObject, InternableObject
A reference to a GenericNode. Objects of this class can be passed
outside the Document to allow calling classes to more conveniently
reference a node than specifying the repository and the ID, and
more safely then giving them the actual GenericNode object.
Unlike a NodeAddress, a NodeProxy is a "singleton" (exactly one is
generated for each GenericNode, and no public constructor is
available). The purpose of a NodeProxy is to allow higher-level
programs to consistently refer to nodes that may be moved around
from one address (repository and node name) to another.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCurrentAddress
public NodeAddress getCurrentAddress()
throws Scheherexception
- Throws:
Scheherexception
render
public java.lang.StringBuffer render()
throws Scheherexception
- Specified by:
render
in interface RenderableObject
- Throws:
Scheherexception
intern
public NodeAddress intern()
- Specified by:
intern
in interface InternableObject
unintern
public NodeAddress unintern()
- Specified by:
unintern
in interface InternableObject
isInterned
public boolean isInterned()
- Specified by:
isInterned
in interface InternableObject
Copyright © 2011 David K. Elson. All Rights Reserved.