|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Node
Interface implementated by nodes populating the graph.
| Field Summary | |
|---|---|
static int |
ATTR_CONDITIONAL_NODE
Attribute bit to be set on conditional nodes. |
static int |
ATTR_MAIN_NODE
Attribute bit to be set on main nodes. |
static int |
ATTR_MISSING_NODE
Attribute bit to be set on missing nodes, that is nodes created by the graph producer even if no such node exists in the original data source. |
static int |
ATTR_START_NODE
Attribute bit to be set on the start node(s). |
| Fields inherited from interface net.ggtools.grand.graph.GraphObject |
|---|
ATTR_ALL, ATTR_NONE |
| Method Summary | |
|---|---|
void |
accept(NodeVisitor visitor)
Accepts a visitor. |
void |
addBackLink(Link link)
Add a link to the node. |
void |
addLink(Link link)
Add a link to the node. |
java.util.Collection |
getBackLinks()
Returns links coming to the node. |
java.lang.String |
getDescription()
Returns a short description (one line of less) of the node. |
java.util.Collection |
getLinks()
Returns links originating from the node. |
java.lang.String |
getSource()
Returns the source snippet for the node. |
void |
removeBackLink(Link link)
Remove a link from the node. |
void |
removeLink(Link link)
Remove a link from the node. |
void |
setDescription(java.lang.String description)
Sets the node's description. |
| Methods inherited from interface net.ggtools.grand.graph.GraphObject |
|---|
clearAttributes, getAttributes, getGraph, getName, hasAttributes, setAttributes |
| Field Detail |
|---|
static final int ATTR_MAIN_NODE
static final int ATTR_MISSING_NODE
static final int ATTR_CONDITIONAL_NODE
if or unless attribute set.
static final int ATTR_START_NODE
| Method Detail |
|---|
java.util.Collection getLinks()
java.util.Collection getBackLinks()
void addLink(Link link)
link - link to addvoid addBackLink(Link link)
link - link to addvoid removeLink(Link link)
link - link to removevoid removeBackLink(Link link)
link - link to removejava.lang.String getDescription()
void setDescription(java.lang.String description)
description - node's descriptionvoid accept(NodeVisitor visitor)
visitNode method of the visitor.
visitor - java.lang.String getSource()
null if no source is available or if the source concept is
not relevant.
null;
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||