org.jvnet.maven.plugin.antrun
public static final class DependencyGraph.Node extends java.lang.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 |
---|---|
java.lang.String |
artifactId
Basic properties of a module.
|
java.lang.String |
classifier
Basic properties of a module.
|
java.lang.String |
groupId
Basic properties of a module.
|
java.lang.String |
type
Basic properties of a module.
|
java.lang.String |
version
Basic properties of a module.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.io.File |
getArtifactFile()
Gets the artifact file, like a jar.
|
java.util.List<DependencyGraph.Edge> |
getBackwardEdges(DependencyGraph g)
Gets the backward dependency edges (modules that depend on this module.)
|
java.util.List<DependencyGraph.Node> |
getBackwardNodes(DependencyGraph g)
Gets the nodes that depend on the given node.
|
java.util.List<DependencyGraph.Edge> |
getForwardEdges(DependencyGraph g)
Gets the forward dependency edges (modules that this module depends on.)
|
java.util.List<DependencyGraph.Node> |
getForwardNodes(DependencyGraph g)
Gets the nodes that the given node depends on.
|
java.lang.String |
getId() |
org.apache.maven.project.MavenProject |
getProject()
Gets the parsed POM for this artifact.
|
java.util.List<DependencyGraph.Edge> |
getTrail(DependencyGraph graph)
Builds the dependency trail from this node to the root node, in that order.
|
int |
hashCode() |
java.lang.String |
toString() |
public final java.lang.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 java.lang.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 java.lang.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 java.lang.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 final java.lang.String classifier
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 java.io.File getArtifactFile() throws org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
- Failed to resolve artifacat.public java.util.List<DependencyGraph.Edge> getForwardEdges(DependencyGraph g)
public java.util.List<DependencyGraph.Edge> getBackwardEdges(DependencyGraph g)
public java.util.List<DependencyGraph.Node> getForwardNodes(DependencyGraph g)
public java.util.List<DependencyGraph.Node> getBackwardNodes(DependencyGraph g)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getId()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.List<DependencyGraph.Edge> getTrail(DependencyGraph graph)
Copyright © 2014. All Rights Reserved.