|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.trees.data.Edge
public final class Edge
A labelled edge that connects two Nodes.
| Constructor Summary | |
|---|---|
Edge(Edge e)
Copy constructor, creates a clone of a given edge. |
|
Edge(QName l,
Node n)
Creates an instance with a label and a node. |
|
Edge(String l,
Node n)
Creates an instance with a label and a node. |
|
Edge(String ns,
String l,
Node n)
Creates an instance with a label and a node. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
QName |
label()
Returns the label. |
Node |
target()
Returns the target node. |
void |
target(Node n)
Sets the target node. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Edge(Edge e)
e - the edge
public Edge(QName l,
Node n)
l - the labeln - the node
public Edge(String l,
Node n)
l - the local name of the labeln - the node
public Edge(String ns,
String l,
Node n)
ns - the namespace of the labell - the local name of the labeln - the node| Method Detail |
|---|
public QName label()
public Node target()
public void target(Node n)
n - nodepublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||