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.Path
artifactPath
private java.lang.String
compatVersion
private java.lang.String
namespace
private java.lang.String
provider
-
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.Path
getArtifactPath()
Get resolved artifact file.java.lang.String
getCompatVersion()
Get compatibility version of resolved artifact.java.lang.String
getNamespace()
Get namespace of resolved artifact, if any.java.lang.String
getProvider()
Get name of system package providing requested artifact.void
setCompatVersion(java.lang.String compatVersion)
void
setNamespace(java.lang.String namespace)
void
setProvider(java.lang.String provider)
-
-
-
Method Detail
-
getArtifactPath
public java.nio.file.Path getArtifactPath()
Description copied from interface:ResolutionResult
Get resolved artifact file.- Specified by:
getArtifactPath
in interfaceResolutionResult
- Returns:
- resolved artifact file or
null
if requested artifact could not be resolved
-
getProvider
public java.lang.String getProvider()
Description copied from interface:ResolutionResult
Get name of system package providing requested artifact.- Specified by:
getProvider
in interfaceResolutionResult
- Returns:
- name of system package providing requested artifact or
null
if 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:ResolutionResult
Get 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:
getCompatVersion
in interfaceResolutionResult
- Returns:
- compatibility version of resolved artifact or
null
if default artifact version was resolved
-
setCompatVersion
public void setCompatVersion(java.lang.String compatVersion)
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:ResolutionResult
Get namespace of resolved artifact, if any.- Specified by:
getNamespace
in interfaceResolutionResult
- Returns:
- namespace of repository from which the artifact was resolved or
null
if artifact was not resolved from any repository or the repository does not have associated namespace.
-
setNamespace
public void setNamespace(java.lang.String namespace)
-
-