Package org.eclipse.aether.resolution
Class VersionResult
java.lang.Object
org.eclipse.aether.resolution.VersionResult
The result of a version resolution request.
-
Constructor Summary
ConstructorDescriptionVersionResult
(VersionRequest request) Creates a new result for the specified request. -
Method Summary
Modifier and TypeMethodDescriptionaddException
(Exception exception) Records the specified exception while resolving the version.Gets the exceptions that occurred while resolving the version.Gets the repository from which the version was eventually resolved.Gets the resolution request that was made.Gets the resolved version.setRepository
(ArtifactRepository repository) Sets the repository from which the version was resolved.setVersion
(String version) Sets the resolved version.toString()
-
Constructor Details
-
VersionResult
Creates a new result for the specified request.- Parameters:
request
- The resolution request, must not benull
.
-
-
Method Details
-
getRequest
Gets the resolution request that was made.- Returns:
- The resolution request, never
null
.
-
getExceptions
Gets the exceptions that occurred while resolving the version.- Returns:
- The exceptions that occurred, never
null
.
-
addException
Records the specified exception while resolving the version.- Parameters:
exception
- The exception to record, may benull
.- Returns:
- This result for chaining, never
null
.
-
getVersion
Gets the resolved version.- Returns:
- The resolved version or
null
if the resolution failed.
-
setVersion
Sets the resolved version.- Parameters:
version
- The resolved version, may benull
.- Returns:
- This result for chaining, never
null
.
-
getRepository
Gets the repository from which the version was eventually resolved.- Returns:
- The repository from which the version was resolved or
null
if unknown.
-
setRepository
Sets the repository from which the version was resolved.- Parameters:
repository
- The repository from which the version was resolved, may benull
.- Returns:
- This result for chaining, never
null
.
-
toString
-