|
||||||||||
| 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(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()
|
| 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 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||