org.apache.maven.plugin.war.stub
Class AbstractArtifactStub

java.lang.Object
  extended by org.apache.maven.plugin.testing.stubs.ArtifactStub
      extended by org.apache.maven.plugin.war.stub.AbstractArtifactStub
All Implemented Interfaces:
Comparable, Artifact
Direct Known Subclasses:
AarArtifactStub, EJBArtifactStub, EJBArtifactStubWithClassifier, EJBClientArtifactStub, JarArtifactStub, MarArtifactStub, PARArtifactStub, TLDArtifactStub, WarArtifactStub, WarOverlayStub, XarArtifactStub, ZipArtifactStub

public abstract class AbstractArtifactStub
extends ArtifactStub


Field Summary
protected  String basedir
           
 
Fields inherited from interface org.apache.maven.artifact.Artifact
LATEST_VERSION, RELEASE_VERSION, SCOPE_COMPILE, SCOPE_PROVIDED, SCOPE_RUNTIME, SCOPE_SYSTEM, SCOPE_TEST, SNAPSHOT_VERSION, VERSION_FILE_PATTERN
 
Constructor Summary
AbstractArtifactStub(String _basedir)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 ArtifactHandler getArtifactHandler()
           
 String getBaseVersion()
           
 String getScope()
           
 String getVersion()
           
 VersionRange getVersionRange()
           
 boolean isOptional()
           
 
Methods inherited from class org.apache.maven.plugin.testing.stubs.ArtifactStub
addMetadata, getArtifactId, getAvailableVersions, getClassifier, getDependencyConflictId, getDependencyFilter, getDependencyTrail, getDownloadUrl, getFile, getGroupId, getId, getMetadataList, getRepository, getSelectedVersion, getType, hasClassifier, isRelease, isResolved, isSelectedVersionKnown, isSnapshot, selectVersion, setArtifactHandler, setArtifactId, setAvailableVersions, setBaseVersion, setDependencyFilter, setDependencyTrail, setDownloadUrl, setFile, setGroupId, setOptional, setRelease, setRepository, setResolved, setResolvedVersion, setScope, setType, setVersion, setVersionRange, toString, updateVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

basedir

protected String basedir
Constructor Detail

AbstractArtifactStub

public AbstractArtifactStub(String _basedir)
Method Detail

getVersion

public String getVersion()
Specified by:
getVersion in interface Artifact
Overrides:
getVersion in class ArtifactStub

getBaseVersion

public String getBaseVersion()
Specified by:
getBaseVersion in interface Artifact
Overrides:
getBaseVersion in class ArtifactStub

getScope

public String getScope()
Specified by:
getScope in interface Artifact
Overrides:
getScope in class ArtifactStub

getVersionRange

public VersionRange getVersionRange()
Specified by:
getVersionRange in interface Artifact
Overrides:
getVersionRange in class ArtifactStub

isOptional

public boolean isOptional()
Specified by:
isOptional in interface Artifact
Overrides:
isOptional in class ArtifactStub

getArtifactHandler

public ArtifactHandler getArtifactHandler()
Specified by:
getArtifactHandler in interface Artifact
Overrides:
getArtifactHandler in class ArtifactStub

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
Overrides:
compareTo in class ArtifactStub

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.