Class Maven31DependencyNodeAdapter
- java.lang.Object
-
- org.apache.maven.shared.transfer.collection.internal.Maven31DependencyNodeAdapter
-
- All Implemented Interfaces:
DependencyNode
class Maven31DependencyNodeAdapter extends java.lang.Object implements DependencyNode
DependencyCollectorNode wrapper aroundDependencyNode
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.aether.graph.DependencyNode
dependencyNode
-
Constructor Summary
Constructors Constructor Description Maven31DependencyNodeAdapter(org.eclipse.aether.graph.DependencyNode dependencyNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(DependencyVisitor visitor)
Traverses this node and potentially its children using the specified visitor.boolean
equals(java.lang.Object obj)
org.apache.maven.artifact.Artifact
getArtifact()
private org.apache.maven.artifact.Artifact
getArtifact(org.eclipse.aether.artifact.Artifact aetherArtifact)
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()
int
hashCode()
-
-
-
Method Detail
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()
- Specified by:
getArtifact
in interfaceDependencyNode
- Returns:
- artifact for this DependencyCollectorNode
-
getChildren
public java.util.List<DependencyNode> getChildren()
Description copied from interface:DependencyNode
Gets the child nodes of this node.- Specified by:
getChildren
in interfaceDependencyNode
- Returns:
- the child nodes of this node, never
null
-
getRemoteRepositories
public java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()
- Specified by:
getRemoteRepositories
in interfaceDependencyNode
- Returns:
- repositories of this DependencyCollectorNode
-
getScope
public java.lang.String getScope()
- Specified by:
getScope
in interfaceDependencyNode
- Returns:
- The scope on the dependency.
-
getOptional
public java.lang.Boolean getOptional()
- Specified by:
getOptional
in interfaceDependencyNode
- Returns:
- true for an optional dependency.
-
accept
public boolean accept(DependencyVisitor visitor)
Description copied from interface:DependencyNode
Traverses this node and potentially its children using the specified visitor.- Specified by:
accept
in interfaceDependencyNode
- 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.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getArtifact
private org.apache.maven.artifact.Artifact getArtifact(org.eclipse.aether.artifact.Artifact aetherArtifact)
-
-