Class ArtifactStub

java.lang.Object
org.apache.maven.api.plugin.testing.stubs.ArtifactStub
All Implemented Interfaces:
org.apache.maven.api.Artifact
Direct Known Subclasses:
ProducedArtifactStub

public class ArtifactStub extends Object implements org.apache.maven.api.Artifact
  • Constructor Details

    • ArtifactStub

      public ArtifactStub()
    • ArtifactStub

      public ArtifactStub(String groupId, String artifactId, String classifier, String version, String extension)
  • Method Details

    • getGroupId

      @Nonnull public String getGroupId()
      Specified by:
      getGroupId in interface org.apache.maven.api.Artifact
    • setGroupId

      public void setGroupId(String groupId)
    • getArtifactId

      @Nonnull public String getArtifactId()
      Specified by:
      getArtifactId in interface org.apache.maven.api.Artifact
    • setArtifactId

      public void setArtifactId(String artifactId)
    • getClassifier

      @Nonnull public String getClassifier()
      Specified by:
      getClassifier in interface org.apache.maven.api.Artifact
    • setClassifier

      public void setClassifier(String classifier)
    • getVersion

      @Nonnull public org.apache.maven.api.Version getVersion()
      Specified by:
      getVersion in interface org.apache.maven.api.Artifact
    • setVersion

      public void setVersion(String version)
    • getBaseVersion

      public org.apache.maven.api.Version getBaseVersion()
      Specified by:
      getBaseVersion in interface org.apache.maven.api.Artifact
    • setBaseVersion

      public void setBaseVersion(String baseVersion)
    • getExtension

      @Nonnull public String getExtension()
      Specified by:
      getExtension in interface org.apache.maven.api.Artifact
    • setExtension

      public void setExtension(String extension)
    • isSnapshot

      public boolean isSnapshot()
      Specified by:
      isSnapshot in interface org.apache.maven.api.Artifact
    • toCoordinates

      public org.apache.maven.api.ArtifactCoordinates toCoordinates()
      Specified by:
      toCoordinates in interface org.apache.maven.api.Artifact
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object