Package org.apache.maven.model
Class ReportPlugin
- java.lang.Object
-
- org.apache.maven.model.ReportPlugin
-
- All Implemented Interfaces:
java.io.Serializable
public class ReportPlugin extends java.lang.Object implements java.io.SerializableThe<plugin>element contains informations required for a report plugin.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReportPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReportSet(ReportSet reportSet)Method addReportSet.static java.lang.StringconstructKey(java.lang.String groupId, java.lang.String artifactId)booleanequals(java.lang.Object other)voidflushReportSetMap()Reset thereportSetMapfield tonulljava.lang.StringgetArtifactId()Get the artifact ID of the reporting plugin in the repository.java.lang.ObjectgetConfiguration()Get the configuration of the reporting plugin.java.lang.StringgetGroupId()Get the group ID of the reporting plugin in the repository.java.lang.StringgetInherited()Get whether the configuration in this plugin should be made available to projects that inherit from this one.java.lang.StringgetKey()java.util.List<ReportSet>getReportSets()Method getReportSets.java.util.MapgetReportSetsAsMap()java.lang.StringgetVersion()Get the version of the reporting plugin to be used.inthashCode()booleanisInheritanceApplied()voidremoveReportSet(ReportSet reportSet)Method removeReportSet.voidsetArtifactId(java.lang.String artifactId)Set the artifact ID of the reporting plugin in the repository.voidsetConfiguration(java.lang.Object configuration)Set the configuration of the reporting plugin.voidsetGroupId(java.lang.String groupId)Set the group ID of the reporting plugin in the repository.voidsetInherited(java.lang.String inherited)Set whether the configuration in this plugin should be made available to projects that inherit from this one.voidsetReportSets(java.util.List<ReportSet> reportSets)Set multiple specifications of a set of reports, each having (possibly) different configuration.voidsetVersion(java.lang.String version)Set the version of the reporting plugin to be used.java.lang.StringtoString()voidunsetInheritanceApplied()
-
-
-
Method Detail
-
addReportSet
public void addReportSet(ReportSet reportSet)
Method addReportSet.- Parameters:
reportSet- a reportSet object.
-
getArtifactId
public java.lang.String getArtifactId()
Get the artifact ID of the reporting plugin in the repository.- Returns:
- String
-
getConfiguration
public java.lang.Object getConfiguration()
Get the configuration of the reporting plugin.- Returns:
- Object
-
getGroupId
public java.lang.String getGroupId()
Get the group ID of the reporting plugin in the repository.- Returns:
- String
-
getInherited
public java.lang.String getInherited()
Get whether the configuration in this plugin should be made available to projects that inherit from this one.- Returns:
- String
-
getReportSets
public java.util.List<ReportSet> getReportSets()
Method getReportSets.- Returns:
- List
-
getVersion
public java.lang.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(java.lang.String artifactId)
Set the artifact ID of the reporting plugin in the repository.- Parameters:
artifactId- a artifactId object.
-
setConfiguration
public void setConfiguration(java.lang.Object configuration)
Set the configuration of the reporting plugin.- Parameters:
configuration- a configuration object.
-
setGroupId
public void setGroupId(java.lang.String groupId)
Set the group ID of the reporting plugin in the repository.- Parameters:
groupId- a groupId object.
-
setInherited
public void setInherited(java.lang.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(java.util.List<ReportSet> reportSets)
Set multiple specifications of a set of reports, each having (possibly) different configuration. This is the reporting parallel to anexecutionin the build.- Parameters:
reportSets- a reportSets object.
-
setVersion
public void setVersion(java.lang.String version)
Set the version of the reporting plugin to be used.- Parameters:
version- a version object.
-
flushReportSetMap
public void flushReportSetMap()
Reset thereportSetMapfield tonull
-
getReportSetsAsMap
public java.util.Map getReportSetsAsMap()
- Returns:
- a Map of reportSets field with
ReportSet#getId()as key - See Also:
ReportSet.getId()
-
getKey
public java.lang.String getKey()
- Returns:
- the key of the report plugin, ie
groupId:artifactId
-
constructKey
public static java.lang.String constructKey(java.lang.String groupId, java.lang.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(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-