public interface Artifact
Artifact objects immutable – all methods which modify artifact return a new object and keep the original unmodified.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_EXTENSION
Default artifact extension, used if no explicit extension is specified.
|
static String |
DEFAULT_VERSION
Default artifact version, used if no explicit version is specified.
|
Modifier and Type | Method and Description |
---|---|
String |
getArtifactId()
Get artifact identifier of this artifact.
|
String |
getClassifier()
Get classifier of this artifact.
|
String |
getExtension()
Get extension of this artifact.
|
String |
getGroupId()
Get group identifier of this artifact.
|
Path |
getPath()
Get local path of artifact file or
null if artifact is not resolved (doesn't have associated artifact
file). |
String |
getVersion()
Get version of this artifact.
|
Artifact |
setPath(Path path)
Set artifact path.
|
Artifact |
setVersion(String version)
Set artifact version.
|
static final String DEFAULT_EXTENSION
static final String DEFAULT_VERSION
String getGroupId()
null
.String getArtifactId()
null
.String getExtension()
null
.String getClassifier()
null
.String getVersion()
null
.Path getPath()
null
if artifact is not resolved (doesn't have associated artifact
file).null
.Artifact setVersion(String version)
Since artifacts are immutable, this method returns a new object and leaves the original unmodified.
version
- the new artifact version to setCopyright © 2012–2015 Red Hat, Inc.. All rights reserved.