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.DependencyNodedependencyNode
-
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 booleanaccept(DependencyVisitor visitor)Traverses this node and potentially its children using the specified visitor.booleanequals(java.lang.Object obj)org.apache.maven.artifact.ArtifactgetArtifact()private org.apache.maven.artifact.ArtifactgetArtifact(org.eclipse.aether.artifact.Artifact aetherArtifact)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()inthashCode()
-
-
-
Method Detail
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()
- Specified by:
getArtifactin interfaceDependencyNode- Returns:
- artifact for this DependencyCollectorNode
-
getChildren
public java.util.List<DependencyNode> getChildren()
Description copied from interface:DependencyNodeGets the child nodes of this node.- Specified by:
getChildrenin interfaceDependencyNode- Returns:
- the child nodes of this node, never
null
-
getRemoteRepositories
public java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()
- Specified by:
getRemoteRepositoriesin interfaceDependencyNode- Returns:
- repositories of this DependencyCollectorNode
-
getScope
public java.lang.String getScope()
- Specified by:
getScopein interfaceDependencyNode- Returns:
- The scope on the dependency.
-
getOptional
public java.lang.Boolean getOptional()
- Specified by:
getOptionalin interfaceDependencyNode- Returns:
- true for an optional dependency.
-
accept
public boolean accept(DependencyVisitor visitor)
Description copied from interface:DependencyNodeTraverses this node and potentially its children using the specified visitor.- Specified by:
acceptin interfaceDependencyNode- Parameters:
visitor- The visitor to call back, must not benull.- Returns:
trueto visit siblings nodes of this node as well,falseto skip siblings.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getArtifact
private org.apache.maven.artifact.Artifact getArtifact(org.eclipse.aether.artifact.Artifact aetherArtifact)
-
-