org.sonatype.aether.collection
Class CollectResult

java.lang.Object
  extended by org.sonatype.aether.collection.CollectResult

public class CollectResult
extends java.lang.Object

The result of a dependency collection request.

Author:
Benjamin Bentmann
See Also:
RepositorySystem.collectDependencies(RepositorySystemSession, CollectRequest)

Constructor Summary
CollectResult(CollectRequest request)
          Creates a new result for the specified request.
 
Method Summary
 CollectResult addException(java.lang.Exception exception)
          Records the specified exception while building the dependency graph.
 java.util.List<java.lang.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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectResult

public CollectResult(CollectRequest request)
Creates a new result for the specified request.

Parameters:
request - The resolution request, must not be null.
Method Detail

getRequest

public CollectRequest getRequest()
Gets the collection request that was made.

Returns:
The collection request, never null.

getExceptions

public java.util.List<java.lang.Exception> getExceptions()
Gets the exceptions that occurred while building the dependency graph.

Returns:
The exceptions that occurred, never null.

addException

public CollectResult addException(java.lang.Exception exception)
Records the specified exception while building the dependency graph.

Parameters:
exception - The exception to record, may be null.
Returns:
This result for chaining, never null.

getRoot

public DependencyNode getRoot()
Gets the root node of the dependency graph.

Returns:
The root node of the dependency graph or null if none.

setRoot

public CollectResult setRoot(DependencyNode root)
Sets the root node of the dependency graph.

Parameters:
root - The root node of the dependency graph, may be null.
Returns:
This result for chaining, never null.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 Sonatype, Inc.. All Rights Reserved.