Package org.fedoraproject.xmvn.metadata
Class Dependency
- java.lang.Object
-
- org.fedoraproject.xmvn.metadata.Dependency
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Dependency extends java.lang.Object implements java.io.Serializable, java.lang.CloneableDescription of dependency artifact.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Dependency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExclusion(DependencyExclusion dependencyExclusion)Method addExclusion.Dependencyclone()Method clone.java.lang.StringgetArtifactId()Get artifact ID of the dependency artifact.java.lang.StringgetClassifier()Get classifier of the dependency artifact.java.util.List<DependencyExclusion>getExclusions()Method getExclusions.java.lang.StringgetExtension()Get extension of the dependency artifact.java.lang.StringgetGroupId()Get group ID of the dependency artifact.java.lang.StringgetNamespace()Get a namespace within which this artifact is stored.java.lang.StringgetRequestedVersion()Get version of the dependency artifact as defined in the main artifact descriptor.java.lang.StringgetResolvedVersion()Get version of the dependency artifact, as resolved during build.java.lang.BooleanisOptional()Get specifies whether given dependency is optional or not.voidremoveExclusion(DependencyExclusion dependencyExclusion)Method removeExclusion.voidsetArtifactId(java.lang.String artifactId)Set artifact ID of the dependency artifact.voidsetClassifier(java.lang.String classifier)Set classifier of the dependency artifact.voidsetExclusions(java.util.List<DependencyExclusion> exclusions)Set list of dependency exclusions.voidsetExtension(java.lang.String extension)Set extension of the dependency artifact.voidsetGroupId(java.lang.String groupId)Set group ID of the dependency artifact.voidsetNamespace(java.lang.String namespace)Set a namespace within which this artifact is stored.voidsetOptional(java.lang.Boolean optional)Set specifies whether given dependency is optional or not.voidsetRequestedVersion(java.lang.String requestedVersion)Set version of the dependency artifact as defined in the main artifact descriptor.voidsetResolvedVersion(java.lang.String resolvedVersion)Set version of the dependency artifact, as resolved during build.ArtifacttoArtifact()java.lang.StringtoString()
-
-
-
Method Detail
-
addExclusion
public void addExclusion(DependencyExclusion dependencyExclusion)
Method addExclusion.- Parameters:
dependencyExclusion-
-
clone
public Dependency clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Dependency
-
getArtifactId
public java.lang.String getArtifactId()
Get artifact ID of the dependency artifact.- Returns:
- String
-
getClassifier
public java.lang.String getClassifier()
Get classifier of the dependency artifact.- Returns:
- String
-
getExclusions
public java.util.List<DependencyExclusion> getExclusions()
Method getExclusions.- Returns:
- List
-
getExtension
public java.lang.String getExtension()
Get extension of the dependency artifact.- Returns:
- String
-
getGroupId
public java.lang.String getGroupId()
Get group ID of the dependency artifact.- Returns:
- String
-
getNamespace
public java.lang.String getNamespace()
Get a namespace within which this artifact is stored. This usually is an identifier of software collection.- Returns:
- String
-
getRequestedVersion
public java.lang.String getRequestedVersion()
Get version of the dependency artifact as defined in the main artifact descriptor. This may be a version range as supported by Aether.- Returns:
- String
-
getResolvedVersion
public java.lang.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
public java.lang.Boolean isOptional()
Get specifies whether given dependency is optional or not.- Returns:
- Boolean
-
removeExclusion
public void removeExclusion(DependencyExclusion dependencyExclusion)
Method removeExclusion.- Parameters:
dependencyExclusion-
-
setArtifactId
public void setArtifactId(java.lang.String artifactId)
Set artifact ID of the dependency artifact.- Parameters:
artifactId-
-
setClassifier
public void setClassifier(java.lang.String classifier)
Set classifier of the dependency artifact.- Parameters:
classifier-
-
setExclusions
public void setExclusions(java.util.List<DependencyExclusion> exclusions)
Set list of dependency exclusions.- Parameters:
exclusions-
-
setExtension
public void setExtension(java.lang.String extension)
Set extension of the dependency artifact.- Parameters:
extension-
-
setGroupId
public void setGroupId(java.lang.String groupId)
Set group ID of the dependency artifact.- Parameters:
groupId-
-
setNamespace
public void setNamespace(java.lang.String namespace)
Set a namespace within which this artifact is stored. This usually is an identifier of software collection.- Parameters:
namespace-
-
setOptional
public void setOptional(java.lang.Boolean optional)
Set specifies whether given dependency is optional or not.- Parameters:
optional-
-
setRequestedVersion
public void setRequestedVersion(java.lang.String requestedVersion)
Set version of the dependency artifact as defined in the main artifact descriptor. This may be a version range as supported by Aether.- Parameters:
requestedVersion-
-
setResolvedVersion
public void setResolvedVersion(java.lang.String resolvedVersion)
Set version of the dependency artifact, as resolved during build. Absence of this field indicates a dependency on default artifact version.- Parameters:
resolvedVersion-
-
toArtifact
public Artifact toArtifact()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-