public final class DependencyResult extends Object
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.
|
List<DependencyCycle> |
getCycles()
Gets the dependency cycles that were encountered 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 |
setCycles(List<DependencyCycle> cycles)
Records the specified dependency cycles 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<DependencyCycle> getCycles()
CollectRequest
. If the underlying DependencyRequest
was created from an existing dependency graph, information about cycles will not be available in this result.null
.public DependencyResult setCycles(List<DependencyCycle> cycles)
cycles
- The dependency cycles to record, 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–2017 The Apache Software Foundation. All rights reserved.