org.apache.maven.plugin.ear
Class ArtifactTestStub
java.lang.Object
org.apache.maven.plugin.ear.ArtifactTestStub
- All Implemented Interfaces:
- Comparable, Artifact
public class ArtifactTestStub
- extends Object
- implements Artifact
A fake Artifact test stub.
- Version:
- $Id: ArtifactTestStub.java 992748 2010-09-05 09:49:46Z snicoll $
- Author:
- Stephane Nicoll
DEFAULT_VERSION
public static final String DEFAULT_VERSION
- See Also:
- Constant Field Values
ArtifactTestStub
public ArtifactTestStub(String groupId,
String artifactId,
String type,
String classifier,
String version)
ArtifactTestStub
public ArtifactTestStub(String groupId,
String artifactId,
String type,
String classifier)
getGroupId
public String getGroupId()
- Specified by:
getGroupId in interface Artifact
getArtifactId
public String getArtifactId()
- Specified by:
getArtifactId in interface Artifact
getVersion
public String getVersion()
- Specified by:
getVersion in interface Artifact
setVersion
public void setVersion(String version)
- Specified by:
setVersion in interface Artifact
getScope
public String getScope()
- Specified by:
getScope in interface Artifact
getType
public String getType()
- Specified by:
getType in interface Artifact
getClassifier
public String getClassifier()
- Specified by:
getClassifier in interface Artifact
hasClassifier
public boolean hasClassifier()
- Specified by:
hasClassifier in interface Artifact
getFile
public File getFile()
- Specified by:
getFile in interface Artifact
setFile
public void setFile(File file)
- Specified by:
setFile in interface Artifact
getBaseVersion
public String getBaseVersion()
- Specified by:
getBaseVersion in interface Artifact
setBaseVersion
public void setBaseVersion(String string)
- Specified by:
setBaseVersion in interface Artifact
getId
public String getId()
- Specified by:
getId in interface Artifact
getDependencyConflictId
public String getDependencyConflictId()
- Specified by:
getDependencyConflictId in interface Artifact
addMetadata
public void addMetadata(ArtifactMetadata artifactMetadata)
- Specified by:
addMetadata in interface Artifact
getMetadataList
public Collection getMetadataList()
- Specified by:
getMetadataList in interface Artifact
setRepository
public void setRepository(ArtifactRepository artifactRepository)
- Specified by:
setRepository in interface Artifact
getRepository
public ArtifactRepository getRepository()
- Specified by:
getRepository in interface Artifact
updateVersion
public void updateVersion(String string,
ArtifactRepository artifactRepository)
- Specified by:
updateVersion in interface Artifact
getDownloadUrl
public String getDownloadUrl()
- Specified by:
getDownloadUrl in interface Artifact
setDownloadUrl
public void setDownloadUrl(String string)
- Specified by:
setDownloadUrl in interface Artifact
getDependencyFilter
public ArtifactFilter getDependencyFilter()
- Specified by:
getDependencyFilter in interface Artifact
setDependencyFilter
public void setDependencyFilter(ArtifactFilter artifactFilter)
- Specified by:
setDependencyFilter in interface Artifact
getArtifactHandler
public ArtifactHandler getArtifactHandler()
- Specified by:
getArtifactHandler in interface Artifact
getDependencyTrail
public List getDependencyTrail()
- Specified by:
getDependencyTrail in interface Artifact
setDependencyTrail
public void setDependencyTrail(List list)
- Specified by:
setDependencyTrail in interface Artifact
setScope
public void setScope(String string)
- Specified by:
setScope in interface Artifact
getVersionRange
public VersionRange getVersionRange()
- Specified by:
getVersionRange in interface Artifact
setVersionRange
public void setVersionRange(VersionRange versionRange)
- Specified by:
setVersionRange in interface Artifact
selectVersion
public void selectVersion(String string)
- Specified by:
selectVersion in interface Artifact
setGroupId
public void setGroupId(String string)
- Specified by:
setGroupId in interface Artifact
setArtifactId
public void setArtifactId(String string)
- Specified by:
setArtifactId in interface Artifact
isSnapshot
public boolean isSnapshot()
- Specified by:
isSnapshot in interface Artifact
setResolved
public void setResolved(boolean b)
- Specified by:
setResolved in interface Artifact
isResolved
public boolean isResolved()
- Specified by:
isResolved in interface Artifact
setResolvedVersion
public void setResolvedVersion(String string)
- Specified by:
setResolvedVersion in interface Artifact
setArtifactHandler
public void setArtifactHandler(ArtifactHandler artifactHandler)
- Specified by:
setArtifactHandler in interface Artifact
isRelease
public boolean isRelease()
- Specified by:
isRelease in interface Artifact
setRelease
public void setRelease(boolean b)
- Specified by:
setRelease in interface Artifact
getAvailableVersions
public List getAvailableVersions()
- Specified by:
getAvailableVersions in interface Artifact
setAvailableVersions
public void setAvailableVersions(List list)
- Specified by:
setAvailableVersions in interface Artifact
isOptional
public boolean isOptional()
- Specified by:
isOptional in interface Artifact
setOptional
public void setOptional(boolean b)
- Specified by:
setOptional in interface Artifact
getSelectedVersion
public ArtifactVersion getSelectedVersion()
throws OverConstrainedVersionException
- Specified by:
getSelectedVersion in interface Artifact
- Throws:
OverConstrainedVersionException
isSelectedVersionKnown
public boolean isSelectedVersionKnown()
throws OverConstrainedVersionException
- Specified by:
isSelectedVersionKnown in interface Artifact
- Throws:
OverConstrainedVersionException
compareTo
public int compareTo(Object o)
- Specified by:
compareTo in interface Comparable
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.