Package org.apache.maven.model
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:
- 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 StringconstructKey(String groupId, String artifactId)booleanequals(Object other)voidflushReportSetMap()Reset thereportSetMapfield tonullStringgetArtifactId()Get the artifact ID of the reporting plugin in the repository.ObjectgetConfiguration()Get the configuration of the reporting plugin.StringgetGroupId()Get the group ID of the reporting plugin in the repository.StringgetInherited()Get whether the configuration in this plugin should be made available to projects that inherit from this one.StringgetKey()List<ReportSet>getReportSets()Method getReportSets.MapgetReportSetsAsMap()StringgetVersion()Get the version of the reporting plugin to be used.inthashCode()booleanisInheritanceApplied()voidremoveReportSet(ReportSet reportSet)Method removeReportSet.voidsetArtifactId(String artifactId)Set the artifact ID of the reporting plugin in the repository.voidsetConfiguration(Object configuration)Set the configuration of the reporting plugin.voidsetGroupId(String groupId)Set the group ID of the reporting plugin in the repository.voidsetInherited(String inherited)Set whether the configuration in this plugin should be made available to projects that inherit from this one.voidsetReportSets(List<ReportSet> reportSets)Set multiple specifications of a set of reports, each having (possibly) different configuration.voidsetVersion(String version)Set the version of the reporting plugin to be used.StringtoString()voidunsetInheritanceApplied()
-
-
-
Method Detail
-
addReportSet
public void addReportSet(ReportSet reportSet)
Method addReportSet.- Parameters:
reportSet-
-
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
-
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-
-
setArtifactId
public void setArtifactId(String artifactId)
Set the artifact ID of the reporting plugin in the repository.- Parameters:
artifactId-
-
setConfiguration
public void setConfiguration(Object configuration)
Set the configuration of the reporting plugin.- Parameters:
configuration-
-
setGroupId
public void setGroupId(String groupId)
Set the group ID of the reporting plugin in the repository.- Parameters:
groupId-
-
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-
-
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 anexecutionin the build.- Parameters:
reportSets-
-
setVersion
public void setVersion(String version)
Set the version of the reporting plugin to be used.- Parameters:
version-
-
flushReportSetMap
public void flushReportSetMap()
Reset thereportSetMapfield tonull
-
getReportSetsAsMap
public Map getReportSetsAsMap()
- Returns:
- a Map of reportSets field with
ReportSet#getId()as key - See Also:
ReportSet.getId()
-
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:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-