org.apache.maven.mercury.artifact
Class DefaultArtifact

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

public class DefaultArtifact
extends ArtifactMetadata
implements Artifact

Version:
$Id: DefaultArtifact.java 762963 2009-04-07 21:01:07Z ogusakov $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.maven.mercury.artifact.ArtifactMetadata
artifactId, artifactScope, artifactUri, attributes, classifier, DEFAULT_ARTIFACT_TYPE, dependencies, effectiveCoordinates, exclusions, groupId, inclusions, optional, relocations, scope, type
 
Fields inherited from interface org.apache.maven.mercury.artifact.Artifact
LATEST_VERSION, RELEASE_VERSION, SCOPE_COMPILE, SCOPE_PROVIDED, SCOPE_RUNTIME, SCOPE_SYSTEM, SCOPE_TEST, SNAPSHOT_TS_REGEX, SNAPSHOT_VERSION, VERSION_FILE_PATTERN
 
Constructor Summary
DefaultArtifact(ArtifactMetadata bmd)
           
 
Method Summary
 int compareTo(Artifact o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getDependencyConflictId()
           
 java.lang.String getDownloadUrl()
           
 java.io.File getFile()
           
 java.lang.String getId()
           
 java.lang.String getInheritedScope()
           
 byte[] getPomBlob()
           
 java.io.File getPomFile()
           
 java.io.InputStream getStream()
           
 int hashCode()
           
 void setDownloadUrl(java.lang.String downloadUrl)
           
 void setFile(java.io.File file)
           
 void setPomBlob(byte[] pomBlob)
           
 void setPomFile(java.io.File file)
           
 void setResolvedVersion(java.lang.String version)
           
 void setStream(java.io.InputStream stream)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.maven.mercury.artifact.ArtifactMetadata
addRelocation, allowDependency, create, getArtifactId, getArtifactScope, getArtifactUri, getAttributes, getBaseName, getBaseName, getCheckedType, getClassifier, getDatum, getDependencies, getEffectiveArtifactId, getEffectiveCoordinates, getEffectiveersion, getEffectiveGroupId, getExclusions, getFileName, getGA, getGAV, getGroupId, getInclusions, getRequestedQuality, getScope, getScopeAsEnum, getTracker, getType, getVersion, hasClassifier, hasExclusions, hasInclusions, hasVersion, isLocal, isOptional, isPom, isRange, isSingleton, isVirtual, isVirtualLatest, isVirtualRelease, isVirtualSnapshot, sameGA, sameGAV, setArtifactId, setArtifactScope, setArtifactUri, setClassifier, setDatum, setDependencies, setExclusions, setGroupId, setInclusions, setLocal, setOptional, setOptional, setScope, setTracker, setType, setVersion, toDomainString, toManagementString, toScopedString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.maven.mercury.artifact.Artifact
getArtifactId, getBaseName, getBaseName, getClassifier, getGroupId, getScope, getType, getVersion, hasClassifier, setArtifactId, setGroupId, setVersion
 

Constructor Detail

DefaultArtifact

public DefaultArtifact(ArtifactMetadata bmd)
Method Detail

getInheritedScope

public java.lang.String getInheritedScope()

setFile

public void setFile(java.io.File file)
Specified by:
setFile in interface Artifact

getFile

public java.io.File getFile()
Specified by:
getFile in interface Artifact

setPomFile

public void setPomFile(java.io.File file)

getPomFile

public java.io.File getPomFile()

setStream

public void setStream(java.io.InputStream stream)

getStream

public java.io.InputStream getStream()
Specified by:
getStream in interface Artifact

getId

public java.lang.String getId()
Specified by:
getId in interface Artifact

getDependencyConflictId

public java.lang.String getDependencyConflictId()

setPomBlob

public void setPomBlob(byte[] pomBlob)
Specified by:
setPomBlob in interface Artifact

getPomBlob

public byte[] getPomBlob()
Specified by:
getPomBlob in interface Artifact

toString

public java.lang.String toString()
Overrides:
toString in class ArtifactMetadata

hashCode

public int hashCode()
Overrides:
hashCode in class ArtifactMetadata

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class ArtifactMetadata

compareTo

public int compareTo(Artifact o)
Specified by:
compareTo in interface java.lang.Comparable<Artifact>

getDownloadUrl

public java.lang.String getDownloadUrl()

setDownloadUrl

public void setDownloadUrl(java.lang.String downloadUrl)

setResolvedVersion

public void setResolvedVersion(java.lang.String version)


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.