|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.links.Via
public class Via
A class encapsulating a few data fields bound together.
Semantically, it represents the "route" via which two nodes are
related, for populating a LinkList: the link, the link type, and
the nodes on each side of the link. (Those two nodes may be
entirely different from the two nodes involved in the overall
query, due to inference rules.)
TODO: beef this up to include sub-vias, i.e., explaining how the
left and right nodes themselves are relevant.
Constructor Summary | |
---|---|
Via(LinkLabelRepository labelRepository,
NodeAddress left,
LinkType linkType,
NodeAddress right,
LinkLabelAddress labelAddress,
Via leftSubVia,
Via rightSubVia)
Constructor |
Method Summary | |
---|---|
NodeAddress |
from()
Retrieve the left node. |
boolean |
hasSubVias()
Retrieve whether there are sub-vias. |
LinkLabel |
label()
Retrieve the link label. |
LinkType |
linkType()
Retrieve the link type. |
java.lang.StringBuffer |
render()
Version of render whose includeLabel defaults to true. |
java.lang.StringBuffer |
render(boolean includeLabel)
Render the Via to a StringBuffer. |
NodeAddress |
to()
Retrieve the right node. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Via(LinkLabelRepository labelRepository, NodeAddress left, LinkType linkType, NodeAddress right, LinkLabelAddress labelAddress, Via leftSubVia, Via rightSubVia) throws Scheherexception
left
- The node on the left side of the relevant link.linkType
- The type of the relevant link.right
- The node on the right side of the relevant link.labelAddress
- The label for the relevant link.
Scheherexception
Method Detail |
---|
public boolean hasSubVias()
public LinkLabel label()
public NodeAddress from()
public NodeAddress to()
public LinkType linkType()
public java.lang.StringBuffer render() throws Scheherexception
Scheherexception
public java.lang.StringBuffer render(boolean includeLabel) throws Scheherexception
Scheherexception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |