public class CollectResult extends Object
RepositorySystem.collectDependencies(RepositorySystemSession, CollectRequest)| Constructor and Description |
|---|
CollectResult(CollectRequest request)
Creates a new result for the specified request.
|
| Modifier and Type | Method and Description |
|---|---|
CollectResult |
addException(Exception exception)
Records the specified exception 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 DependencyNode getRoot()
null if none.public CollectResult setRoot(DependencyNode root)
root - The root node of the dependency graph, may be null.null.Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.