public class TermNode extends GraphNode
GraphNode.Type| Constructor and Description |
|---|
TermNode(String term)
Creates a
TermNode for a particular term. |
| Modifier and Type | Method and Description |
|---|---|
TermNode |
clone()
Clones this node.
|
String |
getTerm()
Returns the term associated with this node.
|
GraphNode.Type |
getType()
Returns the type of this node.
|
void |
setTerm(String term)
Sets the term associated with this node.
|
String |
toString() |
public TermNode(String term)
TermNode for a particular term.public String getTerm()
public GraphNode.Type getType()
GraphNodepublic void setTerm(String term)