class DefaultResolutionResult extends java.lang.Object implements ResolutionResult
Constructor and Description |
---|
DefaultResolutionResult() |
DefaultResolutionResult(java.nio.file.Path artifactPath) |
DefaultResolutionResult(java.nio.file.Path artifactPath,
java.lang.String namespace) |
Modifier and Type | Method and 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) |
public DefaultResolutionResult()
public DefaultResolutionResult(java.nio.file.Path artifactPath)
public DefaultResolutionResult(java.nio.file.Path artifactPath, java.lang.String namespace)
public java.nio.file.Path getArtifactPath()
ResolutionResult
getArtifactPath
in interface ResolutionResult
null
if requested artifact could not be resolvedpublic java.lang.String getProvider()
ResolutionResult
getProvider
in interface ResolutionResult
null
if information about artifact
provider is not availablepublic void setProvider(java.lang.String provider)
public java.lang.String getCompatVersion()
ResolutionResult
Compatibility version is defined only when resolved artifact version is not default version of the artifact in the system.
getCompatVersion
in interface ResolutionResult
null
if default artifact version was resolvedpublic void setCompatVersion(java.lang.String compatVersion)
public java.lang.String getNamespace()
ResolutionResult
getNamespace
in interface ResolutionResult
null
if artifact was not resolved
from any repository or the repository does not have associated namespace.public void setNamespace(java.lang.String namespace)
Copyright © 2012–2017 Red Hat, Inc.. All rights reserved.