Interface DependencyNode
-
public interface DependencyNodeRepresents a dependency node within a Maven project's dependency collector.- Since:
- 0.12
- Author:
- Pim Moerenhout
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(DependencyVisitor visitor)Traverses this node and potentially its children using the specified visitor.org.apache.maven.artifact.ArtifactgetArtifact()java.util.List<DependencyNode>getChildren()Gets the child nodes of this node.java.lang.BooleangetOptional()java.util.List<org.apache.maven.artifact.repository.ArtifactRepository>getRemoteRepositories()java.lang.StringgetScope()
-
-
-
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:
trueto visit siblings nodes of this node as well,falseto skip siblings.
-
-