|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.resolution.VersionResult
public class VersionResult
The result of a version resolution request.
RepositorySystem.resolveVersion(RepositorySystemSession, VersionRequest)
Constructor Summary | |
---|---|
VersionResult(VersionRequest request)
Creates a new result for the specified request. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VersionResult(VersionRequest request)
request
- The resolution request, must not be null
.Method Detail |
---|
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
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |