org.apache.maven.project.artifact
Class AttachedArtifact

java.lang.Object
  extended by org.apache.maven.artifact.DefaultArtifact
      extended by org.apache.maven.project.artifact.AttachedArtifact
All Implemented Interfaces:
Comparable<Artifact>, Artifact

public class AttachedArtifact
extends DefaultArtifact


Field Summary
 
Fields inherited from interface org.apache.maven.artifact.Artifact
LATEST_VERSION, RELEASE_VERSION, SCOPE_COMPILE, SCOPE_IMPORT, SCOPE_PROVIDED, SCOPE_RUNTIME, SCOPE_SYSTEM, SCOPE_TEST, SNAPSHOT_VERSION, VERSION_FILE_PATTERN
 
Constructor Summary
AttachedArtifact(Artifact parent, String type, ArtifactHandler artifactHandler)
           
AttachedArtifact(Artifact parent, String type, String classifier, ArtifactHandler artifactHandler)
           
 
Method Summary
 void addMetadata(ArtifactMetadata metadata)
           
 List getAvailableVersions()
           
 String getBaseVersion()
           
 String getDownloadUrl()
           
 Collection getMetadataList()
           
 ArtifactRepository getRepository()
           
 String getScope()
           
 String getVersion()
           
 VersionRange getVersionRange()
           
 boolean isRelease()
           
 boolean isSnapshot()
           
 void setArtifactId(String artifactId)
           
 void setAvailableVersions(List availableVersions)
           
 void setBaseVersion(String baseVersion)
           
 void setDownloadUrl(String downloadUrl)
           
 void setGroupId(String groupId)
           
 void setRelease(boolean release)
           
 void setRepository(ArtifactRepository repository)
           
 void setScope(String scope)
           
 void setVersion(String version)
           
 void setVersionRange(VersionRange range)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttachedArtifact

public AttachedArtifact(Artifact parent,
                        String type,
                        String classifier,
                        ArtifactHandler artifactHandler)

AttachedArtifact

public AttachedArtifact(Artifact parent,
                        String type,
                        ArtifactHandler artifactHandler)
Method Detail

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()
Specified by:
getScope in interface Artifact
Overrides:
getScope in class DefaultArtifact

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.