|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.archiva.dependency.graph.DependencyGraphUtils
public class DependencyGraphUtils
Utilities for manipulating the DependencyGraph.
Constructor Summary | |
---|---|
DependencyGraphUtils()
|
Method Summary | |
---|---|
static void |
addNodeFromModel(org.apache.maven.archiva.model.ArchivaProjectModel model,
DependencyGraph graph,
DependencyGraphNode fromNode)
Standard way to add a model to the graph. |
static void |
cleanupOrphanedNodes(DependencyGraph graph)
Clean out any nodes that may have become orphaned in the graph. |
static DependencyGraphEdge |
clone(DependencyGraphEdge edge)
Create a clone of an edge. |
static void |
collapseNodes(DependencyGraph graph,
DependencyGraphNode nodeFROM,
DependencyGraphNode nodeTO)
Functionaly similar to #collapseVersions(DependencyGraph, ArtifactReference, String, String) , but
in a new, easier to use, format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DependencyGraphUtils()
Method Detail |
---|
public static void addNodeFromModel(org.apache.maven.archiva.model.ArchivaProjectModel model, DependencyGraph graph, DependencyGraphNode fromNode)
model
- the model to addgraph
- the graph to add it tofromNode
- the node to add it from.public static void cleanupOrphanedNodes(DependencyGraph graph)
graph
- the graph to check.public static void collapseNodes(DependencyGraph graph, DependencyGraphNode nodeFROM, DependencyGraphNode nodeTO)
#collapseVersions(DependencyGraph, ArtifactReference, String, String)
, but
in a new, easier to use, format.
1) Removes the FROM edges connected to the FROM node
2) Moves the TO edges connected to the FROM node to the TO node.
3) Removes the FROM node (which is now orphaned)
graph
- the graph to perform operation onnodeFrom
- the node to collapse fromnodeTo
- the node to collapse topublic static DependencyGraphEdge clone(DependencyGraphEdge edge)
edge
- the edge to clone.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |