public static final class DependencyGraph.Node extends Object
A single DependencyGraph.Node
can be used in multiple DependencyGraph
objects,
so the graph traversal method all takes DependencyGraph
object
to determine the context in which the operation works.
Modifier and Type | Field and Description |
---|---|
String |
artifactId
Basic properties of a module.
|
String |
classifier
Basic properties of a module.
|
String |
groupId
Basic properties of a module.
|
String |
type
Basic properties of a module.
|
String |
version
Basic properties of a module.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
File |
getArtifactFile()
Gets the artifact file, like a jar.
|
List<DependencyGraph.Edge> |
getBackwardEdges(DependencyGraph g)
Gets the backward dependency edges (modules that depend on this module.)
|
List<DependencyGraph.Node> |
getBackwardNodes(DependencyGraph g)
Gets the nodes that depend on the given node.
|
List<DependencyGraph.Edge> |
getForwardEdges(DependencyGraph g)
Gets the forward dependency edges (modules that this module depends on.)
|
List<DependencyGraph.Node> |
getForwardNodes(DependencyGraph g)
Gets the nodes that the given node depends on.
|
String |
getId() |
org.apache.maven.project.MavenProject |
getProject()
Gets the parsed POM for this artifact.
|
List<DependencyGraph.Edge> |
getTrail(DependencyGraph graph)
Builds the dependency trail from this node to the root node, in that order.
|
int |
hashCode() |
String |
toString() |
public final String groupId
pom
is non-null, this information is redundant, but it needs to be
kept separately for those rare cases where pom==null.public final String artifactId
pom
is non-null, this information is redundant, but it needs to be
kept separately for those rare cases where pom==null.public final String version
pom
is non-null, this information is redundant, but it needs to be
kept separately for those rare cases where pom==null.public final String type
pom
is non-null, this information is redundant, but it needs to be
kept separately for those rare cases where pom==null.public org.apache.maven.project.MavenProject getProject()
public File getArtifactFile() throws org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
- Failed to resolve artifacat.public List<DependencyGraph.Edge> getForwardEdges(DependencyGraph g)
public List<DependencyGraph.Edge> getBackwardEdges(DependencyGraph g)
public List<DependencyGraph.Node> getForwardNodes(DependencyGraph g)
public List<DependencyGraph.Node> getBackwardNodes(DependencyGraph g)
public String getId()
public List<DependencyGraph.Edge> getTrail(DependencyGraph graph)
Copyright © 2014. All rights reserved.