|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.util.dag.Vertex
public class Vertex
| Constructor Summary | |
|---|---|
Vertex(java.lang.String label)
|
|
| Method Summary | |
|---|---|
void |
addEdgeFrom(Vertex vertex)
|
void |
addEdgeTo(Vertex vertex)
|
java.lang.Object |
clone()
|
java.util.List |
getChildLabels()
Get the labels used by the most direct children. |
java.util.List |
getChildren()
|
java.lang.String |
getLabel()
|
java.util.List |
getParentLabels()
Get the labels used by the most direct ancestors (parents). |
java.util.List |
getParents()
Get the list the most direct ancestors (parents). |
boolean |
isConnected()
Indicates if there is at least one edee leading to or from given vertex |
boolean |
isLeaf()
Indicates if given vertex has no child |
boolean |
isRoot()
Indicates if given vertex has no parent |
void |
removeEdgeFrom(Vertex vertex)
|
void |
removeEdgeTo(Vertex vertex)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Vertex(java.lang.String label)
| Method Detail |
|---|
public java.lang.String getLabel()
public void addEdgeTo(Vertex vertex)
vertex - public void removeEdgeTo(Vertex vertex)
vertex - public void addEdgeFrom(Vertex vertex)
vertex - public void removeEdgeFrom(Vertex vertex)
public java.util.List getChildren()
public java.util.List getChildLabels()
public java.util.List getParents()
public java.util.List getParentLabels()
public boolean isLeaf()
true if this vertex has no child, false otherwisepublic boolean isRoot()
true if this vertex has no parent, false otherwisepublic boolean isConnected()
true if this vertex is connected with other vertex,false otherwise
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||