Class DefaultArtifactHandlerStub

java.lang.Object
org.apache.maven.plugin.testing.stubs.DefaultArtifactHandlerStub
All Implemented Interfaces:
org.apache.maven.artifact.handler.ArtifactHandler

public class DefaultArtifactHandlerStub extends Object implements org.apache.maven.artifact.handler.ArtifactHandler
Minimal artifact handler used by the stub factory to create unpackable archives.
Author:
Brian Fox
  • Constructor Details

    • DefaultArtifactHandlerStub

      public DefaultArtifactHandlerStub(String t, String c)
      Parameters:
      t - the artifact handler type
      c - the artifact handler classifier
    • DefaultArtifactHandlerStub

      public DefaultArtifactHandlerStub(String type)
      Parameters:
      type - the artifact handler type
  • Method Details

    • getExtension

      public String getExtension()
      Specified by:
      getExtension in interface org.apache.maven.artifact.handler.ArtifactHandler
    • getType

      public String getType()
      Returns:
      the artifact handler type
    • getClassifier

      public String getClassifier()
      Specified by:
      getClassifier in interface org.apache.maven.artifact.handler.ArtifactHandler
    • getDirectory

      public String getDirectory()
      Specified by:
      getDirectory in interface org.apache.maven.artifact.handler.ArtifactHandler
    • getPackaging

      public String getPackaging()
      Specified by:
      getPackaging in interface org.apache.maven.artifact.handler.ArtifactHandler
    • isIncludesDependencies

      public boolean isIncludesDependencies()
      Specified by:
      isIncludesDependencies in interface org.apache.maven.artifact.handler.ArtifactHandler
    • getLanguage

      public String getLanguage()
      Specified by:
      getLanguage in interface org.apache.maven.artifact.handler.ArtifactHandler
    • isAddedToClasspath

      public boolean isAddedToClasspath()
      Specified by:
      isAddedToClasspath in interface org.apache.maven.artifact.handler.ArtifactHandler
    • setAddedToClasspath

      public void setAddedToClasspath(boolean theAddedToClasspath)
      Parameters:
      theAddedToClasspath - The addedToClasspath to set.
    • setClassifier

      public void setClassifier(String theClassifier)
      Parameters:
      theClassifier - The classifier to set.
    • setDirectory

      public void setDirectory(String theDirectory)
      Parameters:
      theDirectory - The directory to set.
    • setExtension

      public void setExtension(String theExtension)
      Parameters:
      theExtension - The extension to set.
    • setIncludesDependencies

      public void setIncludesDependencies(boolean theIncludesDependencies)
      Parameters:
      theIncludesDependencies - The includesDependencies to set.
    • setLanguage

      public void setLanguage(String theLanguage)
      Parameters:
      theLanguage - The language to set.
    • setPackaging

      public void setPackaging(String thePackaging)
      Parameters:
      thePackaging - The packaging to set.
    • setType

      public void setType(String theType)
      Parameters:
      theType - The type to set.