Class DoapArtifact

java.lang.Object
org.apache.maven.plugin.doap.options.DoapArtifact
All Implemented Interfaces:
Serializable

public class DoapArtifact extends Object implements Serializable
An Maven artifact object used by DOAP.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • DoapArtifact

      public DoapArtifact()
  • Method Details

    • equals

      public boolean equals(Object other)
      Method equals.
      Overrides:
      equals in class Object
      Parameters:
      other - a other object.
      Returns:
      boolean
    • getArtifactId

      public String getArtifactId()
      Get the artifact id of the Maven artifact.
      Returns:
      String
    • getGroupId

      public String getGroupId()
      Get the id of the group of the Maven artifact.
      Returns:
      String
    • getVersion

      public String getVersion()
      Get the version of the Maven artifact.
      Returns:
      String
    • hashCode

      public int hashCode()
      Method hashCode.
      Overrides:
      hashCode in class Object
      Returns:
      int
    • setArtifactId

      public void setArtifactId(String artifactId)
      Set the artifact id of the Maven artifact.
      Parameters:
      artifactId - a artifactId object.
    • setDoapFileName

      public void setDoapFileName(String doapFileName)
      Set the name of the DOAP file that will be generated, no notion of path.
      Parameters:
      doapFileName - a doapFileName object.
    • setGroupId

      public void setGroupId(String groupId)
      Set the id of the group of the Maven artifact.
      Parameters:
      groupId - a groupId object.
    • setVersion

      public void setVersion(String version)
      Set the version of the Maven artifact.
      Parameters:
      version - a version object.
    • toString

      public String toString()
      Method toString.
      Overrides:
      toString in class Object
      Returns:
      String
    • getDoapFileName

      public String getDoapFileName()
      Get the path of the DOAP file that will be generated, no notion of path.
      If not specified, return "doap_" + this.artifactId + ".rdf"
      Returns:
      String
    • toConfiguration

      public String toConfiguration()
      Returns:
      String the configuration of this class.