public final class VersionResult extends Object
Constructor and Description |
---|
VersionResult(VersionRequest request)
Creates a new result for the specified request.
|
Modifier and Type | Method and Description |
---|---|
VersionResult |
addException(Exception exception)
Records the specified exception while resolving the version.
|
List<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.
|
String |
getVersion()
Gets the resolved version.
|
VersionResult |
setRepository(ArtifactRepository repository)
Sets the repository from which the version was resolved.
|
VersionResult |
setVersion(String version)
Sets the resolved version.
|
String |
toString() |
public VersionResult(VersionRequest request)
request
- The resolution request, must not be null
.public VersionRequest getRequest()
null
.public List<Exception> getExceptions()
null
.public VersionResult addException(Exception exception)
exception
- The exception to record, may be null
.null
.public String getVersion()
null
if the resolution failed.public VersionResult setVersion(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
.Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.