public final class Node
extends java.lang.Object
Constructor and Description |
---|
Node(java.lang.String Label)
Constructor to set label, variable name and type of node.
|
Modifier and Type | Method and Description |
---|---|
void |
addIncomingEdges(Edge e)
Add an edge to incoming edge list.
|
void |
addOutGoingEdge(Edge e)
Add an edge to outgoing edge list.
|
java.util.LinkedList<Edge> |
getIncommingEdges()
Get entire list of incoming edges of node.
|
boolean |
getIsAttribute()
Indicates that the node is an attribute or not.
|
java.lang.Boolean |
getIsRdfTerm()
Indicates that the node is a rdf term or not.
|
boolean |
getIsRelation()
Indicates that the node is a relation node or not.
|
java.lang.String |
getLabel()
Get the label of node.
|
java.util.LinkedList<Edge> |
getOutGoingEdges()
Get entire list of outgoing edges of node.
|
java.lang.String |
getVariableName()
Get the variable name of node.
|
void |
setVariableName(java.lang.String variableName)
Set the variable name of node.
|
public Node(java.lang.String Label)
Label
- A string contains label of node.public java.lang.String getLabel()
public java.util.LinkedList<Edge> getIncommingEdges()
public void addIncomingEdges(Edge e)
e
- An edge object to be added to incoming edge list.public java.util.LinkedList<Edge> getOutGoingEdges()
public void addOutGoingEdge(Edge e)
e
- An edge object to be added to outgoing edge list.public java.lang.String getVariableName()
public void setVariableName(java.lang.String variableName)
variableName
- String contains variable name of node.public java.lang.Boolean getIsRdfTerm()
public boolean getIsAttribute()
public boolean getIsRelation()