Package org.fedoraproject.xmvn.metadata
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 TypeMethodDescriptionvoid
addExclusion
(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.void
removeExclusion
(DependencyExclusion dependencyExclusion) Method removeExclusion.void
setArtifactId
(String artifactId) Set artifact ID of the dependency artifact.void
setClassifier
(String classifier) Set classifier of the dependency artifact.void
setExclusions
(List<DependencyExclusion> exclusions) Set list of dependency exclusions.void
setExtension
(String extension) Set extension of the dependency artifact.void
setGroupId
(String groupId) Set group ID of the dependency artifact.void
setNamespace
(String namespace) Set a namespace within which this artifact is stored.void
setOptional
(Boolean optional) Set specifies whether given dependency is optional or not.void
setRequestedVersion
(String requestedVersion) Set version of the dependency artifact as defined in the main artifact descriptor.void
setResolvedVersion
(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
Method clone. -
getArtifactId
Get artifact ID of the dependency artifact.- Returns:
- String
-
getClassifier
Get classifier of the dependency artifact.- Returns:
- String
-
getExclusions
Method getExclusions.- Returns:
- List
-
getExtension
Get extension of the dependency artifact.- Returns:
- String
-
getGroupId
Get group ID of the dependency artifact.- Returns:
- String
-
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
-