Interface DependencyNode
-
- All Known Implementing Classes:
Maven31DependencyNodeAdapter
,Maven31DependencyNodeAdapter
public interface DependencyNode
Represents a dependency node within a Maven project's dependency collector.- Since:
- 0.12
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
accept(DependencyVisitor visitor)
Traverses this node and potentially its children using the specified visitor.org.apache.maven.artifact.Artifact
getArtifact()
java.util.List<DependencyNode>
getChildren()
Gets the child nodes of this node.java.lang.Boolean
getOptional()
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository>
getRemoteRepositories()
java.lang.String
getScope()
-
-
-
Method Detail
-
getChildren
java.util.List<DependencyNode> getChildren()
Gets the child nodes of this node.- Returns:
- the child nodes of this node, never
null
-
getArtifact
org.apache.maven.artifact.Artifact getArtifact()
- Returns:
- artifact for this DependencyCollectorNode
-
getRemoteRepositories
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()
- Returns:
- repositories of this DependencyCollectorNode
-
getOptional
java.lang.Boolean getOptional()
- Returns:
- true for an optional dependency.
-
getScope
java.lang.String getScope()
- Returns:
- The scope on the dependency.
-
accept
boolean accept(DependencyVisitor visitor)
Traverses this node and potentially its children using the specified visitor.- Parameters:
visitor
- The visitor to call back, must not benull
.- Returns:
true
to visit siblings nodes of this node as well,false
to skip siblings.
-
-