org.apache.maven.mae.depgraph
Class DependencyGraph

java.lang.Object
  extended by org.apache.maven.mae.depgraph.DependencyGraph
All Implemented Interfaces:
Iterable<DepGraphNode>

public class DependencyGraph
extends Object
implements Iterable<DepGraphNode>


Constructor Summary
DependencyGraph()
           
 
Method Summary
 DepGraphNode[] addDependency(org.sonatype.aether.artifact.Artifact parent, org.sonatype.aether.artifact.Artifact child, boolean parentPreResolved, boolean childPreResolved)
           
 DepGraphNode[] addDependency(org.sonatype.aether.graph.DependencyNode parent, org.sonatype.aether.graph.DependencyNode child)
          Add a dependency edge between the nodes representing the two given DependencyNode instances.
 DepGraphNode[] addDependency(DepGraphNode parentNode, org.sonatype.aether.graph.DependencyNode child)
           
 DepGraphNode addNodeResult(org.sonatype.aether.artifact.Artifact artifact, org.sonatype.aether.resolution.ArtifactResult result)
           
 DepGraphRootNode addRoot(org.sonatype.aether.graph.DependencyNode root)
           
 DepGraphRootNode addRoot(org.sonatype.aether.graph.DependencyNode root, org.apache.maven.project.MavenProject project)
           
static DependencyGraph constructFromRoot(org.sonatype.aether.graph.DependencyNode rootNode, org.apache.maven.project.MavenProject rootProject)
           
 boolean contains(org.sonatype.aether.graph.DependencyNode dep)
           
 DirectedGraph<DepGraphNode,DirectionalEdge<DepGraphNode>> getGraph()
           
 Set<DepGraphRootNode> getRoots()
           
 Iterator<DepGraphNode> iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyGraph

public DependencyGraph()
Method Detail

addRoot

public DepGraphRootNode addRoot(org.sonatype.aether.graph.DependencyNode root)

addRoot

public DepGraphRootNode addRoot(org.sonatype.aether.graph.DependencyNode root,
                                org.apache.maven.project.MavenProject project)

addNodeResult

public DepGraphNode addNodeResult(org.sonatype.aether.artifact.Artifact artifact,
                                  org.sonatype.aether.resolution.ArtifactResult result)

addDependency

public DepGraphNode[] addDependency(DepGraphNode parentNode,
                                    org.sonatype.aether.graph.DependencyNode child)

addDependency

public DepGraphNode[] addDependency(org.sonatype.aether.graph.DependencyNode parent,
                                    org.sonatype.aether.graph.DependencyNode child)
Add a dependency edge between the nodes representing the two given DependencyNode instances.

Parameters:
parent - The parent, which has the dependency on the child.
child - The child, which is depended upon by the parent.
Returns:
An array of graph nodes, with the parent node in index 0, and the child node in index 1.
NOTE: If the parent parameter is null, the node at index 0 will be null as well.

addDependency

public DepGraphNode[] addDependency(org.sonatype.aether.artifact.Artifact parent,
                                    org.sonatype.aether.artifact.Artifact child,
                                    boolean parentPreResolved,
                                    boolean childPreResolved)

getRoots

public Set<DepGraphRootNode> getRoots()

iterator

public Iterator<DepGraphNode> iterator()
Specified by:
iterator in interface Iterable<DepGraphNode>

size

public int size()

getGraph

public DirectedGraph<DepGraphNode,DirectionalEdge<DepGraphNode>> getGraph()

contains

public boolean contains(org.sonatype.aether.graph.DependencyNode dep)

constructFromRoot

public static DependencyGraph constructFromRoot(org.sonatype.aether.graph.DependencyNode rootNode,
                                                org.apache.maven.project.MavenProject rootProject)


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.