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

org::apache::maven::artifact::DefaultArtifact Class Reference

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

org::apache::maven::artifact::Artifact

List of all members.


Detailed Description

Author:
Jason van Zyl
Version:
Id
DefaultArtifact.java 570476 2007-08-28 16:23:27Z jdcasey
Todo:
this should possibly be replaced by type handler

Definition at line 44 of file DefaultArtifact.java.


Public Member Functions

void addMetadata (ArtifactMetadata metadata)
int compareTo (Object o)
 DefaultArtifact (String groupId, String artifactId, VersionRange versionRange, String scope, String type, String classifier, ArtifactHandler artifactHandler, boolean optional)
 DefaultArtifact (String groupId, String artifactId, VersionRange versionRange, String scope, String type, String classifier, ArtifactHandler artifactHandler)
boolean equals (Object o)
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 ()
int hashCode ()
boolean isOptional ()
boolean isRelease ()
boolean isResolved ()
boolean isSelectedVersionKnown () throws OverConstrainedVersionException
boolean isSnapshot ()
void selectVersion (String version)
void setArtifactHandler (ArtifactHandler artifactHandler)
void setArtifactId (String artifactId)
void setAvailableVersions (List availableVersions)
void setBaseVersion (String baseVersion)
void setDependencyFilter (ArtifactFilter artifactFilter)
void setDependencyTrail (List dependencyTrail)
void setDownloadUrl (String downloadUrl)
void setFile (File file)
void setGroupId (String groupId)
void setOptional (boolean optional)
void setRelease (boolean release)
void setRepository (ArtifactRepository repository)
void setResolved (boolean resolved)
void setResolvedVersion (String version)
void setScope (String scope)
void setVersion (String version)
void setVersionRange (VersionRange versionRange)
String toString ()
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]+)$" )

Protected Member Functions

String getBaseVersionInternal ()
void setBaseVersionInternal (String baseVersion)

Package Attributes

String LATEST_VERSION = "LATEST"

Private Member Functions

void appendArtifactTypeClassifierString (StringBuffer sb)
boolean empty (String value)
void selectVersionFromNewRangeIfAvailable ()
void validateIdentity ()

Private Attributes

ArtifactHandler artifactHandler
String artifactId
List availableVersions
String baseVersion
final String classifier
ArtifactFilter dependencyFilter
List dependencyTrail
String downloadUrl
File file
String groupId
Map metadataMap
boolean optional
boolean release
ArtifactRepository repository
boolean resolved
String scope
final String type
String version
VersionRange versionRange

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

Generated by  Doxygen 1.6.0   Back to index