org.apache.maven.project.artifact
Class ActiveProjectArtifact

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

Deprecated.

@Deprecated
public class ActiveProjectArtifact
extends Object
implements Artifact

Wraps an active project instance to be able to receive updates from its artifact without affecting the original attributes of this artifact.

Version:
$Id: ActiveProjectArtifact.java 814889 2009-09-14 22:27:17Z bentmann $
Author:
Brett Porter

Field Summary
 
Fields inherited from interface org.apache.maven.artifact.Artifact
LATEST_VERSION, RELEASE_VERSION, SCOPE_COMPILE, SCOPE_COMPILE_PLUS_RUNTIME, SCOPE_IMPORT, SCOPE_PROVIDED, SCOPE_RUNTIME, SCOPE_RUNTIME_PLUS_SYSTEM, SCOPE_SYSTEM, SCOPE_TEST, SNAPSHOT_VERSION, VERSION_FILE_PATTERN
 
Constructor Summary
ActiveProjectArtifact(MavenProject project, Artifact artifact)
          Deprecated.  
 
Method Summary
 void addMetadata(ArtifactMetadata metadata)
          Deprecated. 
 int compareTo(Artifact a)
          Deprecated. 
 boolean equals(Object o)
          Deprecated. 
 ArtifactHandler getArtifactHandler()
          Deprecated. 
 String getArtifactId()
          Deprecated. 
 List<ArtifactVersion> getAvailableVersions()
          Deprecated. 
 String getBaseVersion()
          Deprecated. 
 String getClassifier()
          Deprecated. 
 String getDependencyConflictId()
          Deprecated. 
 ArtifactFilter getDependencyFilter()
          Deprecated. 
 List<String> getDependencyTrail()
          Deprecated. 
 String getDownloadUrl()
          Deprecated. 
 File getFile()
          Deprecated. 
 String getGroupId()
          Deprecated. 
 String getId()
          Deprecated. 
 Collection<ArtifactMetadata> getMetadataList()
          Deprecated. 
 ArtifactRepository getRepository()
          Deprecated. 
 String getScope()
          Deprecated. 
 ArtifactVersion getSelectedVersion()
          Deprecated. 
 String getType()
          Deprecated. 
 String getVersion()
          Deprecated. 
 VersionRange getVersionRange()
          Deprecated. 
 boolean hasClassifier()
          Deprecated. 
 int hashCode()
          Deprecated. 
 boolean isOptional()
          Deprecated. 
 boolean isRelease()
          Deprecated. 
 boolean isResolved()
          Deprecated. 
 boolean isSelectedVersionKnown()
          Deprecated. 
 boolean isSnapshot()
          Deprecated. 
 void selectVersion(String version)
          Deprecated. 
 void setArtifactHandler(ArtifactHandler handler)
          Deprecated. 
 void setArtifactId(String artifactId)
          Deprecated. 
 void setAvailableVersions(List<ArtifactVersion> versions)
          Deprecated. 
 void setBaseVersion(String baseVersion)
          Deprecated. 
 void setDependencyFilter(ArtifactFilter artifactFilter)
          Deprecated. 
 void setDependencyTrail(List<String> dependencyTrail)
          Deprecated. 
 void setDownloadUrl(String downloadUrl)
          Deprecated. 
 void setFile(File destination)
          Deprecated. 
 void setGroupId(String groupId)
          Deprecated. 
 void setOptional(boolean optional)
          Deprecated. 
 void setRelease(boolean release)
          Deprecated. 
 void setRepository(ArtifactRepository remoteRepository)
          Deprecated. 
 void setResolved(boolean resolved)
          Deprecated. 
 void setResolvedVersion(String version)
          Deprecated. 
 void setScope(String scope)
          Deprecated. 
 void setVersion(String version)
          Deprecated. 
 void setVersionRange(VersionRange newRange)
          Deprecated. 
 String toString()
          Deprecated. 
 void updateVersion(String version, ArtifactRepository localRepository)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiveProjectArtifact

public ActiveProjectArtifact(MavenProject project,
                             Artifact artifact)
Deprecated. 
Method Detail

getFile

public File getFile()
Deprecated. 

Specified by:
getFile in interface Artifact

getGroupId

public String getGroupId()
Deprecated. 

Specified by:
getGroupId in interface Artifact

getArtifactId

public String getArtifactId()
Deprecated. 

Specified by:
getArtifactId in interface Artifact

getVersion

public String getVersion()
Deprecated. 

Specified by:
getVersion in interface Artifact

setVersion

public void setVersion(String version)
Deprecated. 

Specified by:
setVersion in interface Artifact

getScope

public String getScope()
Deprecated. 

Specified by:
getScope in interface Artifact

getType

public String getType()
Deprecated. 

Specified by:
getType in interface Artifact

getClassifier

public String getClassifier()
Deprecated. 

Specified by:
getClassifier in interface Artifact

hasClassifier

public boolean hasClassifier()
Deprecated. 

Specified by:
hasClassifier in interface Artifact

setFile

public void setFile(File destination)
Deprecated. 

Specified by:
setFile in interface Artifact

getBaseVersion

public String getBaseVersion()
Deprecated. 

Specified by:
getBaseVersion in interface Artifact

setBaseVersion

public void setBaseVersion(String baseVersion)
Deprecated. 

Specified by:
setBaseVersion in interface Artifact

getId

public String getId()
Deprecated. 

Specified by:
getId in interface Artifact

getDependencyConflictId

public String getDependencyConflictId()
Deprecated. 

Specified by:
getDependencyConflictId in interface Artifact

addMetadata

public void addMetadata(ArtifactMetadata metadata)
Deprecated. 

Specified by:
addMetadata in interface Artifact

getMetadataList

public Collection<ArtifactMetadata> getMetadataList()
Deprecated. 

Specified by:
getMetadataList in interface Artifact

setRepository

public void setRepository(ArtifactRepository remoteRepository)
Deprecated. 

Specified by:
setRepository in interface Artifact

getRepository

public ArtifactRepository getRepository()
Deprecated. 

Specified by:
getRepository in interface Artifact

updateVersion

public void updateVersion(String version,
                          ArtifactRepository localRepository)
Deprecated. 

Specified by:
updateVersion in interface Artifact

getDownloadUrl

public String getDownloadUrl()
Deprecated. 

Specified by:
getDownloadUrl in interface Artifact

setDownloadUrl

public void setDownloadUrl(String downloadUrl)
Deprecated. 

Specified by:
setDownloadUrl in interface Artifact

getDependencyFilter

public ArtifactFilter getDependencyFilter()
Deprecated. 

Specified by:
getDependencyFilter in interface Artifact

setDependencyFilter

public void setDependencyFilter(ArtifactFilter artifactFilter)
Deprecated. 

Specified by:
setDependencyFilter in interface Artifact

getArtifactHandler

public ArtifactHandler getArtifactHandler()
Deprecated. 

Specified by:
getArtifactHandler in interface Artifact

getDependencyTrail

public List<String> getDependencyTrail()
Deprecated. 

Specified by:
getDependencyTrail in interface Artifact

setDependencyTrail

public void setDependencyTrail(List<String> dependencyTrail)
Deprecated. 

Specified by:
setDependencyTrail in interface Artifact

setScope

public void setScope(String scope)
Deprecated. 

Specified by:
setScope in interface Artifact

getVersionRange

public VersionRange getVersionRange()
Deprecated. 

Specified by:
getVersionRange in interface Artifact

setVersionRange

public void setVersionRange(VersionRange newRange)
Deprecated. 

Specified by:
setVersionRange in interface Artifact

selectVersion

public void selectVersion(String version)
Deprecated. 

Specified by:
selectVersion in interface Artifact

setGroupId

public void setGroupId(String groupId)
Deprecated. 

Specified by:
setGroupId in interface Artifact

setArtifactId

public void setArtifactId(String artifactId)
Deprecated. 

Specified by:
setArtifactId in interface Artifact

isSnapshot

public boolean isSnapshot()
Deprecated. 

Specified by:
isSnapshot in interface Artifact

compareTo

public int compareTo(Artifact a)
Deprecated. 

Specified by:
compareTo in interface Comparable<Artifact>

setResolved

public void setResolved(boolean resolved)
Deprecated. 

Specified by:
setResolved in interface Artifact

isResolved

public boolean isResolved()
Deprecated. 

Specified by:
isResolved in interface Artifact

setResolvedVersion

public void setResolvedVersion(String version)
Deprecated. 

Specified by:
setResolvedVersion in interface Artifact

setArtifactHandler

public void setArtifactHandler(ArtifactHandler handler)
Deprecated. 

Specified by:
setArtifactHandler in interface Artifact

toString

public String toString()
Deprecated. 

Overrides:
toString in class Object

isRelease

public boolean isRelease()
Deprecated. 

Specified by:
isRelease in interface Artifact

setRelease

public void setRelease(boolean release)
Deprecated. 

Specified by:
setRelease in interface Artifact

getAvailableVersions

public List<ArtifactVersion> getAvailableVersions()
Deprecated. 

Specified by:
getAvailableVersions in interface Artifact

setAvailableVersions

public void setAvailableVersions(List<ArtifactVersion> versions)
Deprecated. 

Specified by:
setAvailableVersions in interface Artifact

isOptional

public boolean isOptional()
Deprecated. 

Specified by:
isOptional in interface Artifact

getSelectedVersion

public ArtifactVersion getSelectedVersion()
                                   throws OverConstrainedVersionException
Deprecated. 

Specified by:
getSelectedVersion in interface Artifact
Throws:
OverConstrainedVersionException

isSelectedVersionKnown

public boolean isSelectedVersionKnown()
                               throws OverConstrainedVersionException
Deprecated. 

Specified by:
isSelectedVersionKnown in interface Artifact
Throws:
OverConstrainedVersionException

setOptional

public void setOptional(boolean optional)
Deprecated. 

Specified by:
setOptional in interface Artifact

hashCode

public int hashCode()
Deprecated. 

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Deprecated. 

Overrides:
equals in class Object


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.