org.apache.maven.mercury.artifact
Class DefaultArtifact
java.lang.Object
org.apache.maven.mercury.artifact.ArtifactMetadata
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
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 |
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 |
DefaultArtifact
public DefaultArtifact(ArtifactMetadata bmd)
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-2010 Apache Software Foundation. All Rights Reserved.