|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.resolution.VersionRangeResult
public class VersionRangeResult
The result of a version range resolution request.
RepositorySystem.resolveVersionRange(RepositorySystemSession, VersionRangeRequest)
Constructor Summary | |
---|---|
VersionRangeResult(VersionRangeRequest request)
Creates a new result for the specified request. |
Method Summary | |
---|---|
VersionRangeResult |
addException(java.lang.Exception exception)
Records the specified exception while resolving the version range. |
VersionRangeResult |
addVersion(Version version)
Adds the specified version to the result. |
java.util.List<java.lang.Exception> |
getExceptions()
Gets the exceptions that occurred while resolving the version range. |
ArtifactRepository |
getRepository(Version version)
Gets the repository from which the specified version was resolved. |
VersionRangeRequest |
getRequest()
Gets the resolution request that was made. |
VersionConstraint |
getVersionConstraint()
Gets the version constraint that was parsed from the artifact's version string. |
java.util.List<Version> |
getVersions()
Gets the versions (in ascending order) that matched the requested range. |
VersionRangeResult |
setRepository(Version version,
ArtifactRepository repository)
Records the repository from which the specified version was resolved |
VersionRangeResult |
setVersionConstraint(VersionConstraint versionConstraint)
Sets the version constraint that was parsed from the artifact's version string. |
VersionRangeResult |
setVersions(java.util.List<Version> versions)
Sets the versions matching the requested range. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VersionRangeResult(VersionRangeRequest request)
request
- The resolution request, must not be null
.Method Detail |
---|
public VersionRangeRequest getRequest()
null
.public java.util.List<java.lang.Exception> getExceptions()
null
.public VersionRangeResult addException(java.lang.Exception exception)
exception
- The exception to record, may be null
.
null
.public java.util.List<Version> getVersions()
null
.public VersionRangeResult addVersion(Version version)
version
- The version to add, must not be null
.
null
.public VersionRangeResult setVersions(java.util.List<Version> versions)
versions
- The matching versions, may be empty or null
if none.
null
.public ArtifactRepository getRepository(Version version)
version
- The version whose source repository should be retrieved, must not be null
.
null
if unknown.public VersionRangeResult setRepository(Version version, ArtifactRepository repository)
version
- The version whose source repository is to be recorded, must not be null
.repository
- The repository from which the version was resolved, may be null
.
null
.public VersionConstraint getVersionConstraint()
null
.public VersionRangeResult setVersionConstraint(VersionConstraint versionConstraint)
versionConstraint
- The parsed version constraint, 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 |