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.Cloneable
Description 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 void
addExclusion(DependencyExclusion dependencyExclusion)
Method addExclusion.Dependency
clone()
Method clone.java.lang.String
getArtifactId()
Get artifact ID of the dependency artifact.java.lang.String
getClassifier()
Get classifier of the dependency artifact.java.util.List<DependencyExclusion>
getExclusions()
Method getExclusions.java.lang.String
getExtension()
Get extension of the dependency artifact.java.lang.String
getGroupId()
Get group ID of the dependency artifact.java.lang.String
getNamespace()
Get a namespace within which this artifact is stored.java.lang.String
getRequestedVersion()
Get version of the dependency artifact as defined in the main artifact descriptor.java.lang.String
getResolvedVersion()
Get version of the dependency artifact, as resolved during build.java.lang.Boolean
isOptional()
Get specifies whether given dependency is optional or not.void
removeExclusion(DependencyExclusion dependencyExclusion)
Method removeExclusion.void
setArtifactId(java.lang.String artifactId)
Set artifact ID of the dependency artifact.void
setClassifier(java.lang.String classifier)
Set classifier of the dependency artifact.void
setExclusions(java.util.List<DependencyExclusion> exclusions)
Set list of dependency exclusions.void
setExtension(java.lang.String extension)
Set extension of the dependency artifact.void
setGroupId(java.lang.String groupId)
Set group ID of the dependency artifact.void
setNamespace(java.lang.String namespace)
Set a namespace within which this artifact is stored.void
setOptional(java.lang.Boolean optional)
Set specifies whether given dependency is optional or not.void
setRequestedVersion(java.lang.String requestedVersion)
Set version of the dependency artifact as defined in the main artifact descriptor.void
setResolvedVersion(java.lang.String resolvedVersion)
Set version of the dependency artifact, as resolved during build.Artifact
toArtifact()
java.lang.String
toString()
-
-
-
Method Detail
-
addExclusion
public void addExclusion(DependencyExclusion dependencyExclusion)
Method addExclusion.- Parameters:
dependencyExclusion
-
-
clone
public Dependency clone()
Method clone.- Overrides:
clone
in 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:
toString
in classjava.lang.Object
-
-