public class DependencyTree extends Object implements Iterable<DependencyTree>
| Constructor and Description |
|---|
DependencyTree(org.apache.maven.artifact.Artifact artifact,
List<org.apache.maven.model.License> licenses)
Initial value constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(DependencyTree dependency)
This method adds a new dependency.
|
List<DependencyTree> |
getAllDependencies()
This method puts all dependencies into a
List. |
org.apache.maven.artifact.Artifact |
getArtifact()
Returns the
Artifact. |
List<DependencyTree> |
getDependencies()
Returns the dependencies of the current
DependencyTree. |
List<org.apache.maven.model.License> |
getLicenses()
Returns the license of this node.
|
DependencyTree |
getParent()
Returns the parent of this dependency.
|
Iterator<DependencyTree> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic DependencyTree getParent()
DependencyTree is returned.public org.apache.maven.artifact.Artifact getArtifact()
Artifact.Artifact is returned.public List<org.apache.maven.model.License> getLicenses()
License is returned.public void addDependency(DependencyTree dependency)
dependency - public List<DependencyTree> getDependencies()
DependencyTree.List of DependencyTree is returned with the
dependencies.public Iterator<DependencyTree> iterator()
iterator in interface Iterable<DependencyTree>public List<DependencyTree> getAllDependencies()
List.List of DependencyTree is returned.Copyright © 2013–2015 PureSol Technologies. All rights reserved.