public final class DependencyResult extends java.lang.Object
| Constructor | Description |
|---|---|
DependencyResult(DependencyRequest request) |
Creates a new result for the specified request.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<ArtifactResult> |
getArtifactResults() |
Gets the resolution results for the dependency artifacts that matched
DependencyRequest.getFilter(). |
java.util.List<java.lang.Exception> |
getCollectExceptions() |
Gets the exceptions that occurred while building the dependency graph.
|
java.util.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(java.util.List<ArtifactResult> results) |
Sets the resolution results for the artifacts that matched
DependencyRequest.getFilter(). |
DependencyResult |
setCollectExceptions(java.util.List<java.lang.Exception> exceptions) |
Records the specified exceptions while building the dependency graph.
|
DependencyResult |
setCycles(java.util.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.
|
java.lang.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 java.util.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(java.util.List<DependencyCycle> cycles)
cycles - The dependency cycles to record, may be null.null.public java.util.List<java.lang.Exception> getCollectExceptions()
null.public DependencyResult setCollectExceptions(java.util.List<java.lang.Exception> exceptions)
exceptions - The exceptions to record, may be null.null.public java.util.List<ArtifactResult> getArtifactResults()
DependencyRequest.getFilter().null.public DependencyResult setArtifactResults(java.util.List<ArtifactResult> results)
DependencyRequest.getFilter().results - The resolution results for the artifacts, may be null.null.public java.lang.String toString()
toString in class java.lang.Object