public final class CollectResult extends Object
Constructor and Description |
---|
CollectResult(CollectRequest request)
Creates a new result for the specified request.
|
Modifier and Type | Method and Description |
---|---|
CollectResult |
addCycle(DependencyCycle cycle)
Records the specified dependency cycle.
|
CollectResult |
addException(Exception exception)
Records the specified exception while building the dependency graph.
|
List<DependencyCycle> |
getCycles()
Gets the dependency cycles that were encountered while building the dependency graph.
|
List<Exception> |
getExceptions()
Gets the exceptions that occurred while building the dependency graph.
|
CollectRequest |
getRequest()
Gets the collection request that was made.
|
DependencyNode |
getRoot()
Gets the root node of the dependency graph.
|
CollectResult |
setRoot(DependencyNode root)
Sets the root node of the dependency graph.
|
String |
toString() |
public CollectResult(CollectRequest request)
request
- The resolution request, must not be null
.public CollectRequest getRequest()
null
.public List<Exception> getExceptions()
null
.public CollectResult addException(Exception exception)
exception
- The exception to record, may be null
.null
.public List<DependencyCycle> getCycles()
null
.public CollectResult addCycle(DependencyCycle cycle)
cycle
- The dependency cycle to record, may be null
.null
.public DependencyNode getRoot()
null
if none.public CollectResult setRoot(DependencyNode root)
root
- The root node of the dependency graph, may be null
.null
.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.