org.codehaus.plexus.util.dag
Class Vertex

java.lang.Object
  extended byorg.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)
           
 
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 isLeaf()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label

private java.lang.String label

children

java.util.List children

parents

java.util.List parents
Constructor Detail

Vertex

public Vertex(java.lang.String label)
Method Detail

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