Class Dependency
java.lang.Object
org.fedoraproject.xmvn.metadata.Dependency
- All Implemented Interfaces:
Serializable, Cloneable
Description of dependency artifact.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExclusion(DependencyExclusion dependencyExclusion) Method addExclusion.clone()Method clone.Get artifact ID of the dependency artifact.Get classifier of the dependency artifact.Method getExclusions.Get extension of the dependency artifact.Get group ID of the dependency artifact.Get a namespace within which this artifact is stored.Get version of the dependency artifact as defined in the main artifact descriptor.Get version of the dependency artifact, as resolved during build.Get specifies whether given dependency is optional or not.voidremoveExclusion(DependencyExclusion dependencyExclusion) Method removeExclusion.voidsetArtifactId(String artifactId) Set artifact ID of the dependency artifact.voidsetClassifier(String classifier) Set classifier of the dependency artifact.voidsetExclusions(List<DependencyExclusion> exclusions) Set list of dependency exclusions.voidsetExtension(String extension) Set extension of the dependency artifact.voidsetGroupId(String groupId) Set group ID of the dependency artifact.voidsetNamespace(String namespace) Set a namespace within which this artifact is stored.voidsetOptional(Boolean optional) Set specifies whether given dependency is optional or not.voidsetRequestedVersion(String requestedVersion) Set version of the dependency artifact as defined in the main artifact descriptor.voidsetResolvedVersion(String resolvedVersion) Set version of the dependency artifact, as resolved during build.toString()
-
Constructor Details
-
Dependency
public Dependency()
-
-
Method Details
-
addExclusion
Method addExclusion.- Parameters:
dependencyExclusion- a dependencyExclusion object.
-
clone
-
getArtifactId
-
getClassifier
-
getExclusions
-
getExtension
-
getGroupId
-
getNamespace
Get a namespace within which this artifact is stored. This usually is an identifier of software collection.- Returns:
- String
-
getRequestedVersion
Get version of the dependency artifact as defined in the main artifact descriptor. This may be a version range as supported by Maven.- Returns:
- String
-
getResolvedVersion
Get version of the dependency artifact, as resolved during build. Absence of this field indicates a dependency on default artifact version.- Returns:
- String
-
isOptional
Get specifies whether given dependency is optional or not.- Returns:
- Boolean
-
removeExclusion
Method removeExclusion.- Parameters:
dependencyExclusion- a dependencyExclusion object.
-
setArtifactId
Set artifact ID of the dependency artifact.- Parameters:
artifactId- a artifactId object.
-
setClassifier
Set classifier of the dependency artifact.- Parameters:
classifier- a classifier object.
-
setExclusions
Set list of dependency exclusions.- Parameters:
exclusions- a exclusions object.
-
setExtension
Set extension of the dependency artifact.- Parameters:
extension- a extension object.
-
setGroupId
Set group ID of the dependency 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.
-
setOptional
Set specifies whether given dependency is optional or not.- Parameters:
optional- a optional object.
-
setRequestedVersion
Set version of the dependency artifact as defined in the main artifact descriptor. This may be a version range as supported by Maven.- Parameters:
requestedVersion- a requestedVersion object.
-
setResolvedVersion
Set version of the dependency artifact, as resolved during build. Absence of this field indicates a dependency on default artifact version.- Parameters:
resolvedVersion- a resolvedVersion object.
-
toArtifact
-
toString
-