|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.nodes.NodeAddress
public class NodeAddress
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. Instances of this class are static. If the GenericNode is renamed, this address will not reflect the new name. A NodeAddress is simply an address in a Document and is not "tied" to an actual GenericNode. A NodeAddress can be publicly constructed, and there is no guarantee a node resides at the address. See NodeProxy.
Constructor Summary | |
---|---|
NodeAddress(GenericNode node)
Constructor takes a GenericNode; hence, no one above a Document should be able to construct one of these. |
|
NodeAddress(NodeRepositoryID nr,
NodeID id)
Constructor takes address coordinates manually. |
|
NodeAddress(NodeRepositoryID nr,
java.lang.String id)
|
|
NodeAddress(java.lang.String nr,
NodeID id)
|
|
NodeAddress(java.lang.String nr,
java.lang.String id)
Another constructor that takes address coordinates manually. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object other)
|
boolean |
equals(NodeAddress other)
Test the equality of one NodeAddress to another. |
NodeID |
getNodeID()
Accessor for node ID |
NodeRepositoryID |
getNodeRepositoryID()
Accessor for node repository |
NodeAddress |
makeCopy()
|
java.lang.StringBuffer |
render()
Render the node address in the syntax interpretable by the command interpreter. |
java.lang.String |
toString()
Render the node address in the syntax interpretable by the command interpreter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeAddress(GenericNode node) throws Scheherexception
Scheherexception
public NodeAddress(NodeRepositoryID nr, NodeID id)
public NodeAddress(java.lang.String nr, java.lang.String id) throws Scheherexception
Scheherexception
public NodeAddress(NodeRepositoryID nr, java.lang.String id) throws Scheherexception
Scheherexception
public NodeAddress(java.lang.String nr, NodeID id) throws Scheherexception
Scheherexception
Method Detail |
---|
public NodeRepositoryID getNodeRepositoryID()
public NodeID getNodeID()
public java.lang.StringBuffer render()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(NodeAddress other) throws Scheherexception
Scheherexception
public int compareTo(java.lang.Object other) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
java.lang.ClassCastException
public NodeAddress makeCopy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |