public final class VersionResult extends java.lang.Object
| Constructor | Description |
|---|---|
VersionResult(VersionRequest request) |
Creates a new result for the specified request.
|
| Modifier and Type | Method | Description |
|---|---|---|
VersionResult |
addException(java.lang.Exception exception) |
Records the specified exception while resolving the version.
|
java.util.List<java.lang.Exception> |
getExceptions() |
Gets the exceptions that occurred while resolving the version.
|
ArtifactRepository |
getRepository() |
Gets the repository from which the version was eventually resolved.
|
VersionRequest |
getRequest() |
Gets the resolution request that was made.
|
java.lang.String |
getVersion() |
Gets the resolved version.
|
VersionResult |
setRepository(ArtifactRepository repository) |
Sets the repository from which the version was resolved.
|
VersionResult |
setVersion(java.lang.String version) |
Sets the resolved version.
|
java.lang.String |
toString() |
public VersionResult(VersionRequest request)
request - The resolution request, must not be null.public VersionRequest getRequest()
null.public java.util.List<java.lang.Exception> getExceptions()
null.public VersionResult addException(java.lang.Exception exception)
exception - The exception to record, may be null.null.public java.lang.String getVersion()
null if the resolution failed.public VersionResult setVersion(java.lang.String version)
version - The resolved version, may be null.null.public ArtifactRepository getRepository()
null if unknown.public VersionResult setRepository(ArtifactRepository repository)
repository - The repository from which the version was resolved, may be null.null.public java.lang.String toString()
toString in class java.lang.Object