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

java.lang.Object
  extended by org.apache.maven.plugin.testing.stubs.ArtifactStub
      extended by org.apache.maven.plugin.war.stub.AbstractArtifactStub
          extended by org.apache.maven.plugin.war.stub.JarArtifactStub
All Implemented Interfaces:
Comparable, Artifact

public class JarArtifactStub
extends AbstractArtifactStub


Field Summary
protected  String artifactId
           
protected  String groupId
           
protected  boolean optional
           
protected  String scope
           
protected  String version
           
 
Fields inherited from class org.apache.maven.plugin.war.stub.AbstractArtifactStub
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
JarArtifactStub(String basedir, ArtifactHandler artifactHandler)
           
 
Method Summary
 ArtifactHandler getArtifactHandler()
           
 String getArtifactId()
           
 File getFile()
           
 String getGroupId()
           
 String getScope()
           
 String getType()
           
 String getVersion()
           
 boolean isOptional()
           
 void setArtifactId(String artifactId)
           
 void setGroupId(String id)
           
 void setOptional(boolean optional)
           
 void setScope(String scope)
           
 void setVersion(String version)
           
 
Methods inherited from class org.apache.maven.plugin.war.stub.AbstractArtifactStub
compareTo, equals, getVersionRange
 
Methods inherited from class org.apache.maven.plugin.testing.stubs.ArtifactStub
addMetadata, getAvailableVersions, getBaseVersion, getClassifier, getDependencyConflictId, getDependencyFilter, getDependencyTrail, getDownloadUrl, getId, getMetadataList, getRepository, getSelectedVersion, hasClassifier, isRelease, isResolved, isSelectedVersionKnown, isSnapshot, selectVersion, setArtifactHandler, setAvailableVersions, setBaseVersion, setDependencyFilter, setDependencyTrail, setDownloadUrl, setFile, setRelease, setRepository, setResolved, setResolvedVersion, setType, setVersionRange, toString, updateVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

groupId

protected String groupId

artifactId

protected String artifactId

version

protected String version

optional

protected boolean optional

scope

protected String scope
Constructor Detail

JarArtifactStub

public JarArtifactStub(String basedir,
                       ArtifactHandler artifactHandler)
Method Detail

setGroupId

public void setGroupId(String id)
Specified by:
setGroupId in interface Artifact
Overrides:
setGroupId in class ArtifactStub

getGroupId

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

getType

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

setArtifactId

public void setArtifactId(String artifactId)
Specified by:
setArtifactId in interface Artifact
Overrides:
setArtifactId in class ArtifactStub

getArtifactId

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

getVersion

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

setVersion

public void setVersion(String version)
Specified by:
setVersion in interface Artifact
Overrides:
setVersion in class ArtifactStub

isOptional

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

setOptional

public void setOptional(boolean optional)
Specified by:
setOptional in interface Artifact
Overrides:
setOptional in class ArtifactStub

getScope

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

setScope

public void setScope(String scope)
Specified by:
setScope in interface Artifact
Overrides:
setScope in class ArtifactStub

getFile

public File getFile()
Specified by:
getFile in interface Artifact
Overrides:
getFile in class ArtifactStub

getArtifactHandler

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


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.