Class DefaultResolutionResult
- java.lang.Object
-
- org.fedoraproject.xmvn.resolver.impl.DefaultResolutionResult
-
- All Implemented Interfaces:
ResolutionResult
class DefaultResolutionResult extends java.lang.Object implements ResolutionResult
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.PathartifactPathprivate java.lang.StringcompatVersionprivate java.lang.Stringnamespaceprivate java.lang.Stringprovider
-
Constructor Summary
Constructors Constructor Description DefaultResolutionResult()DefaultResolutionResult(java.nio.file.Path artifactPath)DefaultResolutionResult(java.nio.file.Path artifactPath, java.lang.String namespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.PathgetArtifactPath()Get resolved artifact file.java.lang.StringgetCompatVersion()Get compatibility version of resolved artifact.java.lang.StringgetNamespace()Get namespace of resolved artifact, if any.java.lang.StringgetProvider()Get name of system package providing requested artifact.voidsetCompatVersion(java.lang.String compatVersion)voidsetNamespace(java.lang.String namespace)voidsetProvider(java.lang.String provider)
-
-
-
Method Detail
-
getArtifactPath
public java.nio.file.Path getArtifactPath()
Description copied from interface:ResolutionResultGet resolved artifact file.- Specified by:
getArtifactPathin interfaceResolutionResult- Returns:
- resolved artifact file or
nullif requested artifact could not be resolved
-
getProvider
public java.lang.String getProvider()
Description copied from interface:ResolutionResultGet name of system package providing requested artifact.- Specified by:
getProviderin interfaceResolutionResult- Returns:
- name of system package providing requested artifact or
nullif information about artifact provider is not available
-
setProvider
public void setProvider(java.lang.String provider)
-
getCompatVersion
public java.lang.String getCompatVersion()
Description copied from interface:ResolutionResultGet compatibility version of resolved artifact.Compatibility version is defined only when resolved artifact version is not default version of the artifact in the system.
- Specified by:
getCompatVersionin interfaceResolutionResult- Returns:
- compatibility version of resolved artifact or
nullif default artifact version was resolved
-
setCompatVersion
public void setCompatVersion(java.lang.String compatVersion)
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:ResolutionResultGet namespace of resolved artifact, if any.- Specified by:
getNamespacein interfaceResolutionResult- Returns:
- namespace of repository from which the artifact was resolved or
nullif artifact was not resolved from any repository or the repository does not have associated namespace.
-
setNamespace
public void setNamespace(java.lang.String namespace)
-
-