Logo Search packages:      
Sourcecode: maven2 version File versions  Download package

org::apache::maven::artifact::Artifact Interface Reference

Inheritance diagram for org::apache::maven::artifact::Artifact:

org::apache::maven::artifact::DefaultArtifact org::apache::maven::project::artifact::ActiveProjectArtifact

List of all members.


Detailed Description

Description of an artifact.

Todo:
do we really need an interface here?
Todo:
get rid of the multiple states we can have (project, parent, etc artifacts, file == null, snapshot, etc) - construct subclasses and use accordingly?

Definition at line 41 of file Artifact.java.


Public Member Functions

void addMetadata (ArtifactMetadata metadata)
ArtifactHandler getArtifactHandler ()
String getArtifactId ()
List getAvailableVersions ()
String getBaseVersion ()
String getClassifier ()
String getDependencyConflictId ()
ArtifactFilter getDependencyFilter ()
List getDependencyTrail ()
String getDownloadUrl ()
File getFile ()
String getGroupId ()
String getId ()
Collection getMetadataList ()
ArtifactRepository getRepository ()
String getScope ()
ArtifactVersion getSelectedVersion () throws OverConstrainedVersionException
String getType ()
String getVersion ()
VersionRange getVersionRange ()
boolean hasClassifier ()
boolean isOptional ()
boolean isRelease ()
boolean isResolved ()
boolean isSelectedVersionKnown () throws OverConstrainedVersionException
boolean isSnapshot ()
void selectVersion (String version)
void setArtifactHandler (ArtifactHandler handler)
void setArtifactId (String artifactId)
void setAvailableVersions (List versions)
void setBaseVersion (String baseVersion)
void setDependencyFilter (ArtifactFilter artifactFilter)
void setDependencyTrail (List dependencyTrail)
void setDownloadUrl (String downloadUrl)
void setFile (File destination)
void setGroupId (String groupId)
void setOptional (boolean optional)
void setRelease (boolean release)
void setRepository (ArtifactRepository remoteRepository)
void setResolved (boolean resolved)
void setResolvedVersion (String version)
void setScope (String scope)
void setVersion (String version)
void setVersionRange (VersionRange newRange)
void updateVersion (String version, ArtifactRepository localRepository)

Public Attributes

String RELEASE_VERSION = "RELEASE"
String SCOPE_COMPILE = "compile"
String SCOPE_PROVIDED = "provided"
String SCOPE_RUNTIME = "runtime"
String SCOPE_SYSTEM = "system"
String SCOPE_TEST = "test"
String SNAPSHOT_VERSION = "SNAPSHOT"
Pattern VERSION_FILE_PATTERN = Pattern.compile( "^(.*)-([0-9]{8}.[0-9]{6})-([0-9]+)$" )

Package Attributes

String LATEST_VERSION = "LATEST"

The documentation for this interface was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index