org.apache.maven.project.artifact
Class AttachedArtifact
java.lang.Object
org.apache.maven.artifact.DefaultArtifact
org.apache.maven.project.artifact.AttachedArtifact
- All Implemented Interfaces:
- Comparable<Artifact>, Artifact
public class AttachedArtifact
- extends DefaultArtifact
Methods inherited from class org.apache.maven.artifact.DefaultArtifact |
compareTo, equals, getArtifactHandler, getArtifactId, getBaseVersionInternal, getClassifier, getDependencyConflictId, getDependencyFilter, getDependencyTrail, getFile, getGroupId, getId, getMetadata, getSelectedVersion, getType, hasClassifier, hashCode, isOptional, isResolved, isSelectedVersionKnown, selectVersion, setArtifactHandler, setBaseVersionInternal, setDependencyFilter, setDependencyTrail, setFile, setOptional, setResolved, setResolvedVersion, toString, updateVersion |
AttachedArtifact
public AttachedArtifact(Artifact parent,
String type,
String classifier,
ArtifactHandler artifactHandler)
AttachedArtifact
public AttachedArtifact(Artifact parent,
String type,
ArtifactHandler artifactHandler)
setArtifactId
public void setArtifactId(String artifactId)
- Specified by:
setArtifactId
in interface Artifact
- Overrides:
setArtifactId
in class DefaultArtifact
getAvailableVersions
public List getAvailableVersions()
- Specified by:
getAvailableVersions
in interface Artifact
- Overrides:
getAvailableVersions
in class DefaultArtifact
setAvailableVersions
public void setAvailableVersions(List availableVersions)
- Specified by:
setAvailableVersions
in interface Artifact
- Overrides:
setAvailableVersions
in class DefaultArtifact
getBaseVersion
public String getBaseVersion()
- Specified by:
getBaseVersion
in interface Artifact
- Overrides:
getBaseVersion
in class DefaultArtifact
setBaseVersion
public void setBaseVersion(String baseVersion)
- Specified by:
setBaseVersion
in interface Artifact
- Overrides:
setBaseVersion
in class DefaultArtifact
getDownloadUrl
public String getDownloadUrl()
- Specified by:
getDownloadUrl
in interface Artifact
- Overrides:
getDownloadUrl
in class DefaultArtifact
setDownloadUrl
public void setDownloadUrl(String downloadUrl)
- Specified by:
setDownloadUrl
in interface Artifact
- Overrides:
setDownloadUrl
in class DefaultArtifact
setGroupId
public void setGroupId(String groupId)
- Specified by:
setGroupId
in interface Artifact
- Overrides:
setGroupId
in class DefaultArtifact
getRepository
public ArtifactRepository getRepository()
- Specified by:
getRepository
in interface Artifact
- Overrides:
getRepository
in class DefaultArtifact
setRepository
public void setRepository(ArtifactRepository repository)
- Specified by:
setRepository
in interface Artifact
- Overrides:
setRepository
in class DefaultArtifact
getScope
public String getScope()
- Description copied from interface:
Artifact
- Get the scope of the artifact. If the artifact is a standalone rather than a dependency, it's scope will be
null
. The scope may not be the same as it was declared on the original dependency, as this is the
result of combining it with the main project scope.
- Specified by:
getScope
in interface Artifact
- Overrides:
getScope
in class DefaultArtifact
- Returns:
- the scope
setScope
public void setScope(String scope)
- Specified by:
setScope
in interface Artifact
- Overrides:
setScope
in class DefaultArtifact
getVersion
public String getVersion()
- Specified by:
getVersion
in interface Artifact
- Overrides:
getVersion
in class DefaultArtifact
setVersion
public void setVersion(String version)
- Specified by:
setVersion
in interface Artifact
- Overrides:
setVersion
in class DefaultArtifact
getVersionRange
public VersionRange getVersionRange()
- Specified by:
getVersionRange
in interface Artifact
- Overrides:
getVersionRange
in class DefaultArtifact
setVersionRange
public void setVersionRange(VersionRange range)
- Specified by:
setVersionRange
in interface Artifact
- Overrides:
setVersionRange
in class DefaultArtifact
isRelease
public boolean isRelease()
- Specified by:
isRelease
in interface Artifact
- Overrides:
isRelease
in class DefaultArtifact
setRelease
public void setRelease(boolean release)
- Specified by:
setRelease
in interface Artifact
- Overrides:
setRelease
in class DefaultArtifact
isSnapshot
public boolean isSnapshot()
- Specified by:
isSnapshot
in interface Artifact
- Overrides:
isSnapshot
in class DefaultArtifact
addMetadata
public void addMetadata(ArtifactMetadata metadata)
- Specified by:
addMetadata
in interface Artifact
- Overrides:
addMetadata
in class DefaultArtifact
getMetadataList
public Collection getMetadataList()
- Specified by:
getMetadataList
in interface Artifact
- Overrides:
getMetadataList
in class DefaultArtifact
Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.