org.codehaus.plexus.util.dag
Class Vertex
java.lang.Object
org.codehaus.plexus.util.dag.Vertex
- All Implemented Interfaces:
- java.lang.Cloneable
- public class Vertex
- extends java.lang.Object
- implements java.lang.Cloneable
- Version:
- $Id: Vertex.java,v 1.3 2004/01/15 19:35:25 michal Exp $
- Author:
- Michal Maczka
Field Summary |
(package private) java.util.List |
children
|
private java.lang.String |
label
|
(package private) java.util.List |
parents
|
Constructor Summary |
Vertex(java.lang.String label)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
label
private java.lang.String label
children
java.util.List children
parents
java.util.List parents
Vertex
public Vertex(java.lang.String label)
getLabel
public java.lang.String getLabel()
- Returns:
addEdgeTo
public void addEdgeTo(Vertex vertex)
- Parameters:
vertex
-
addEdgeFrom
public void addEdgeFrom(Vertex vertex)
- Parameters:
vertex
-
getChildren
public java.util.List getChildren()
getChildLabels
public java.util.List getChildLabels()
- Get the labels used by the most direct children.
- Returns:
- the labels used by the most direct children.
getParents
public java.util.List getParents()
- Get the list the most direct ancestors (parents).
- Returns:
- list of parents
getParentLabels
public java.util.List getParentLabels()
- Get the labels used by the most direct ancestors (parents).
- Returns:
- the labels used parents
isLeaf
public boolean isLeaf()
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException