This project has retired. For details please refer to its Attic page.
DependencyGraph

org.apache.maven.archiva.dependency.graph
Class DependencyGraph

Package class diagram package DependencyGraph
java.lang.Object
  extended by org.apache.maven.archiva.dependency.graph.DependencyGraph

public class DependencyGraph
extends java.lang.Object

DependencyGraph


Field Summary
static int DISABLED_CYCLIC
           
static int DISABLED_EXCLUDED
           
static int DISABLED_NEARER_DEP
           
static int DISABLED_NEARER_EDGE
           
static int DISABLED_OPTIONAL
           
 
Constructor Summary
DependencyGraph(DependencyGraphNode root)
           
DependencyGraph(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
           
 
Method Summary
 void addEdge(DependencyGraphEdge edge)
          Add the edge to the DependencyGraph.
 DependencyGraphNode addNode(DependencyGraphNode node)
           
 java.util.Collection<DependencyGraphEdge> getEdges()
           
 java.util.List<DependencyGraphEdge> getEdgesFrom(DependencyGraphNode node)
          Get the list of edges from the provided node.
 java.util.List<DependencyGraphEdge> getEdgesTo(DependencyGraphNode node)
          Get the list of edges to the provided node.
 DependencyGraphNode getNode(org.apache.maven.archiva.model.ArtifactReference ref)
          Get the node for the specified artifact reference.
 java.util.Collection<DependencyGraphNode> getNodes()
           
 DependencyGraphNode getRootNode()
           
 boolean hasEdge(DependencyGraphEdge edge)
           
 boolean hasNode(DependencyGraphNode node)
           
 void removeEdge(DependencyGraphEdge edge)
           
 void removeNode(DependencyGraphNode node)
           
 void setRootNode(DependencyGraphNode rootNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISABLED_CYCLIC

public static final int DISABLED_CYCLIC
See Also:
Constant Field Values

DISABLED_EXCLUDED

public static final int DISABLED_EXCLUDED
See Also:
Constant Field Values

DISABLED_OPTIONAL

public static final int DISABLED_OPTIONAL
See Also:
Constant Field Values

DISABLED_NEARER_DEP

public static final int DISABLED_NEARER_DEP
See Also:
Constant Field Values

DISABLED_NEARER_EDGE

public static final int DISABLED_NEARER_EDGE
See Also:
Constant Field Values
Constructor Detail

DependencyGraph

public DependencyGraph(java.lang.String groupId,
                       java.lang.String artifactId,
                       java.lang.String version)

DependencyGraph

public DependencyGraph(DependencyGraphNode root)
Method Detail

getEdges

public java.util.Collection<DependencyGraphEdge> getEdges()

getNodes

public java.util.Collection<DependencyGraphNode> getNodes()

getRootNode

public DependencyGraphNode getRootNode()

setRootNode

public void setRootNode(DependencyGraphNode rootNode)

addEdge

public void addEdge(DependencyGraphEdge edge)
Add the edge to the DependencyGraph.

Parameters:
edge - the edge to add.

addNode

public DependencyGraphNode addNode(DependencyGraphNode node)

hasNode

public boolean hasNode(DependencyGraphNode node)

hasEdge

public boolean hasEdge(DependencyGraphEdge edge)

getEdgesFrom

public java.util.List<DependencyGraphEdge> getEdgesFrom(DependencyGraphNode node)
Get the list of edges from the provided node.

Parameters:
node - the node to use as the 'from' side of an edge.
Returns:
the edges from the provided node.

getEdgesTo

public java.util.List<DependencyGraphEdge> getEdgesTo(DependencyGraphNode node)
Get the list of edges to the provided node.

Parameters:
node - the node to use as the 'to' side of an edge.
Returns:
the edges to the provided node.

getNode

public DependencyGraphNode getNode(org.apache.maven.archiva.model.ArtifactReference ref)
Get the node for the specified artifact reference.

Parameters:
ref - the artifact reference to use to find the node.
Returns:
the node that was found. (null if not found)

removeEdge

public void removeEdge(DependencyGraphEdge edge)

removeNode

public void removeNode(DependencyGraphNode node)