|
||||||||||
| 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(Exception exception)
Records the specified exception while resolving the version range. |
VersionRangeResult |
addVersion(Version version)
Adds the specified version to the result. |
List<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. |
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(List<Version> versions)
Sets the versions matching the requested range. |
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 List<Exception> getExceptions()
null.public VersionRangeResult addException(Exception exception)
exception - The exception to record, may be null.
null.public List<Version> getVersions()
null.public VersionRangeResult addVersion(Version version)
version - The version to add, must not be null.
null.public VersionRangeResult setVersions(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 String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||