Class ArtifactMetadata
java.lang.Object
org.fedoraproject.xmvn.metadata.ArtifactMetadata
Information about a single artifact.
- Author:
- Mikolaj Izdebski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlias(ArtifactAlias alias) Add an alias.voidaddCompatVersion(String string) Method addCompatVersion.voidaddDependency(Dependency dependency) Method addDependency.voidaddProperty(String key, String value) Method addProperty.Method getAliases.Get identifier of the artifact.Get classifier of the artifact.Method getCompatVersions.Method getDependencies.Get extension of artifact file.Get group identifier of the artifact.Get a namespace within which this artifact is stored.getPath()Get absolute path to artifact file stored in the local file system.Method getProperties.Get artifact version.voidremoveAlias(ArtifactAlias alias) Remove an alias.voidremoveCompatVersion(String string) Method removeCompatVersion.voidremoveDependency(Dependency dependency) Method removeDependency.voidsetAliases(List<ArtifactAlias> aliases) Set alternative identifiers of the artifact.voidsetArtifactId(String artifactId) Set identifier of the artifact.voidsetClassifier(String classifier) Set classifier of the artifact.voidsetCompatVersions(List<String> compatVersions) Set compatibility versions of this artifact.voidsetDependencies(List<Dependency> dependencies) Set list of artifact dependencies.voidsetExtension(String extension) Set extension of artifact file.voidsetGroupId(String groupId) Set group identifier of the artifact.voidsetNamespace(String namespace) Set a namespace within which this artifact is stored.voidSet absolute path to artifact file stored in the local file system.voidsetProperties(Properties properties) Set extra properties of this artifact.voidsetVersion(String version) Set artifact version.toString()
-
Constructor Details
-
ArtifactMetadata
public ArtifactMetadata()
-
-
Method Details
-
addCompatVersion
Method addCompatVersion.- Parameters:
string- a string object.
-
addDependency
Method addDependency.- Parameters:
dependency- a dependency object.
-
addProperty
-
getAliases
-
getArtifactId
-
getClassifier
-
getCompatVersions
-
getDependencies
-
getExtension
-
getGroupId
-
getNamespace
Get a namespace within which this artifact is stored. This usually is an identifier of software collection.- Returns:
- String
-
getPath
Get absolute path to artifact file stored in the local file system.- Returns:
- String
-
getProperties
-
getVersion
Get artifact version. This is always upstream version, never compat version nor SYSTEM.- Returns:
- String
-
removeCompatVersion
Method removeCompatVersion.- Parameters:
string- a string object.
-
removeDependency
Method removeDependency.- Parameters:
dependency- a dependency object.
-
setAliases
Set alternative identifiers of the artifact.- Parameters:
aliases- a aliases object.
-
setArtifactId
Set identifier of the artifact.- Parameters:
artifactId- a artifactId object.
-
setClassifier
Set classifier of the artifact.- Parameters:
classifier- a classifier object.
-
setCompatVersions
-
setDependencies
Set list of artifact dependencies.- Parameters:
dependencies- a dependencies object.
-
setExtension
Set extension of artifact file.- Parameters:
extension- a extension object.
-
setGroupId
Set group identifier of the artifact.- Parameters:
groupId- a groupId object.
-
setNamespace
Set a namespace within which this artifact is stored. This usually is an identifier of software collection.- Parameters:
namespace- a namespace object.
-
setPath
Set absolute path to artifact file stored in the local file system.- Parameters:
path- a path object.
-
setProperties
Set extra properties of this artifact.- Parameters:
properties- a properties object.
-
setVersion
Set artifact version. This is always upstream version, never compat version nor SYSTEM.- Parameters:
version- a version object.
-
addAlias
-
removeAlias
Remove an alias.- Parameters:
alias- alias to be removed
-
toArtifact
-
toString
-