public class DependencyResult extends Object
RepositorySystem.resolveDependencies(RepositorySystemSession, DependencyRequest)| Constructor and Description |
|---|
DependencyResult(DependencyRequest request)
Creates a new result for the specified request.
|
| Modifier and Type | Method and Description |
|---|---|
List<ArtifactResult> |
getArtifactResults()
Gets the resolution results for the dependency artifacts that matched
DependencyRequest.getFilter(). |
List<Exception> |
getCollectExceptions()
Gets the exceptions that occurred while building the dependency graph.
|
DependencyRequest |
getRequest()
Gets the resolution request that was made.
|
DependencyNode |
getRoot()
Gets the root node of the resolved dependency graph.
|
DependencyResult |
setArtifactResults(List<ArtifactResult> results)
Sets the resolution results for the artifacts that matched
DependencyRequest.getFilter(). |
DependencyResult |
setCollectExceptions(List<Exception> exceptions)
Records the specified exceptions while building the dependency graph.
|
DependencyResult |
setRoot(DependencyNode root)
Sets the root node of the resolved dependency graph.
|
String |
toString() |
public DependencyResult(DependencyRequest request)
request - The resolution request, must not be null.public DependencyRequest getRequest()
null.public DependencyNode getRoot()
getCollectExceptions() indicating errors during its calculation.null if none.public DependencyResult setRoot(DependencyNode root)
root - The root node of the resolved dependency graph, may be null.null.public List<Exception> getCollectExceptions()
null.public DependencyResult setCollectExceptions(List<Exception> exceptions)
exceptions - The exceptions to record, may be null.null.public List<ArtifactResult> getArtifactResults()
DependencyRequest.getFilter().null.public DependencyResult setArtifactResults(List<ArtifactResult> results)
DependencyRequest.getFilter().results - The resolution results for the artifacts, may be null.null.Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.