Class ReportPlugin

java.lang.Object
org.apache.maven.model.ReportPlugin
All Implemented Interfaces:
Serializable

public class ReportPlugin extends Object implements Serializable
The <plugin> element contains informations required for a report plugin.
Version:
$Revision$ $Date$
See Also:
  • Field Details

    • groupId

      private String groupId
      The group ID of the reporting plugin in the repository.
    • artifactId

      private String artifactId
      The artifact ID of the reporting plugin in the repository.
    • version

      private String version
      The version of the reporting plugin to be used.
    • inherited

      private String inherited
      Whether the configuration in this plugin should be made available to projects that inherit from this one.
    • configuration

      private Object configuration
      The configuration of the reporting plugin.
    • reportSets

      private List<ReportSet> reportSets
      Field reportSets.
    • reportSetMap

      private Map reportSetMap
    • inheritanceApplied

      private boolean inheritanceApplied
  • Constructor Details

    • ReportPlugin

      public ReportPlugin()
  • Method Details

    • addReportSet

      public void addReportSet(ReportSet reportSet)
      Method addReportSet.
      Parameters:
      reportSet - a reportSet object.
    • getArtifactId

      public String getArtifactId()
      Get the artifact ID of the reporting plugin in the repository.
      Returns:
      String
    • getConfiguration

      public Object getConfiguration()
      Get the configuration of the reporting plugin.
      Returns:
      Object
    • getGroupId

      public String getGroupId()
      Get the group ID of the reporting plugin in the repository.
      Returns:
      String
    • getInherited

      public String getInherited()
      Get whether the configuration in this plugin should be made available to projects that inherit from this one.
      Returns:
      String
    • getReportSets

      public List<ReportSet> getReportSets()
      Method getReportSets.
      Returns:
      List
    • getVersion

      public String getVersion()
      Get the version of the reporting plugin to be used.
      Returns:
      String
    • removeReportSet

      public void removeReportSet(ReportSet reportSet)
      Method removeReportSet.
      Parameters:
      reportSet - a reportSet object.
    • setArtifactId

      public void setArtifactId(String artifactId)
      Set the artifact ID of the reporting plugin in the repository.
      Parameters:
      artifactId - a artifactId object.
    • setConfiguration

      public void setConfiguration(Object configuration)
      Set the configuration of the reporting plugin.
      Parameters:
      configuration - a configuration object.
    • setGroupId

      public void setGroupId(String groupId)
      Set the group ID of the reporting plugin in the repository.
      Parameters:
      groupId - a groupId object.
    • setInherited

      public void setInherited(String inherited)
      Set whether the configuration in this plugin should be made available to projects that inherit from this one.
      Parameters:
      inherited - a inherited object.
    • setReportSets

      public void setReportSets(List<ReportSet> reportSets)
      Set multiple specifications of a set of reports, each having (possibly) different configuration. This is the reporting parallel to an execution in the build.
      Parameters:
      reportSets - a reportSets object.
    • setVersion

      public void setVersion(String version)
      Set the version of the reporting plugin to be used.
      Parameters:
      version - a version object.
    • flushReportSetMap

      public void flushReportSetMap()
      Reset the reportSetMap field to null
    • getReportSetsAsMap

      public Map getReportSetsAsMap()
      Returns:
      a Map of reportSets field with ReportSet#getId() as key
      See Also:
    • getKey

      public String getKey()
      Returns:
      the key of the report plugin, ie groupId:artifactId
    • constructKey

      public static String constructKey(String groupId, String artifactId)
      Parameters:
      groupId -
      artifactId -
      Returns:
      the key of the report plugin, ie groupId:artifactId
    • unsetInheritanceApplied

      public void unsetInheritanceApplied()
    • isInheritanceApplied

      public boolean isInheritanceApplied()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: