Package org.apache.maven.model
Class Reporting
- java.lang.Object
-
- org.apache.maven.model.Reporting
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class Reporting extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Section for management of reports and their configuration.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringexcludeDefaultsIf true, then the default reports are not included in the site generation.private InputLocationexcludeDefaultsLocationField excludeDefaultsLocation.private InputLocationlocationField location.private java.util.Map<java.lang.Object,InputLocation>locationsField locations.private java.lang.StringoutputDirectoryWhere to store all of the generated reports.private InputLocationoutputDirectoryLocationField outputDirectoryLocation.private java.util.List<ReportPlugin>pluginsField plugins.private InputLocationpluginsLocationField pluginsLocation.(package private) java.util.Map<java.lang.String,ReportPlugin>reportPluginMap
-
Constructor Summary
Constructors Constructor Description Reporting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPlugin(ReportPlugin reportPlugin)Method addPlugin.Reportingclone()Method clone.voidflushReportPluginMap()Reset thereportPluginMapfield tonulljava.lang.StringgetExcludeDefaults()Get if true, then the default reports are not included in the site generation.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.private InputLocationgetOtherLocation(java.lang.Object key)java.lang.StringgetOutputDirectory()Get where to store all of the generated reports.java.util.List<ReportPlugin>getPlugins()Method getPlugins.java.util.Map<java.lang.String,ReportPlugin>getReportPluginsAsMap()booleanisExcludeDefaults()voidremovePlugin(ReportPlugin reportPlugin)Method removePlugin.voidsetExcludeDefaults(boolean excludeDefaults)voidsetExcludeDefaults(java.lang.String excludeDefaults)Set if true, then the default reports are not included in the site generation.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetOtherLocation(java.lang.Object key, InputLocation location)voidsetOutputDirectory(java.lang.String outputDirectory)Set where to store all of the generated reports.voidsetPlugins(java.util.List<ReportPlugin> plugins)Set the reporting plugins to use and their configuration.
-
-
-
Field Detail
-
excludeDefaults
private java.lang.String excludeDefaults
If true, then the default reports are not included in the site generation. This includes the reports in the "Project Info" menu. Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean. Default value isfalse.
-
outputDirectory
private java.lang.String outputDirectory
Where to store all of the generated reports. The default is${project.build.directory}/site.
-
plugins
private java.util.List<ReportPlugin> plugins
Field plugins.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
excludeDefaultsLocation
private InputLocation excludeDefaultsLocation
Field excludeDefaultsLocation.
-
outputDirectoryLocation
private InputLocation outputDirectoryLocation
Field outputDirectoryLocation.
-
pluginsLocation
private InputLocation pluginsLocation
Field pluginsLocation.
-
reportPluginMap
java.util.Map<java.lang.String,ReportPlugin> reportPluginMap
-
-
Method Detail
-
addPlugin
public void addPlugin(ReportPlugin reportPlugin)
Method addPlugin.- Parameters:
reportPlugin-
-
clone
public Reporting clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Reporting
-
getExcludeDefaults
public java.lang.String getExcludeDefaults()
Get if true, then the default reports are not included in the site generation. This includes the reports in the "Project Info" menu. Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean. Default value isfalse.- Returns:
- String
-
getLocation
public InputLocation getLocation(java.lang.Object key)
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key-- Returns:
- InputLocation
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key-location-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key-location-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key-- Returns:
- InputLocation
-
getOutputDirectory
public java.lang.String getOutputDirectory()
Get where to store all of the generated reports. The default is${project.build.directory}/site.- Returns:
- String
-
getPlugins
public java.util.List<ReportPlugin> getPlugins()
Method getPlugins.- Returns:
- List
-
removePlugin
public void removePlugin(ReportPlugin reportPlugin)
Method removePlugin.- Parameters:
reportPlugin-
-
setExcludeDefaults
public void setExcludeDefaults(java.lang.String excludeDefaults)
Set if true, then the default reports are not included in the site generation. This includes the reports in the "Project Info" menu. Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean. Default value isfalse.- Parameters:
excludeDefaults-
-
setOutputDirectory
public void setOutputDirectory(java.lang.String outputDirectory)
Set where to store all of the generated reports. The default is${project.build.directory}/site.- Parameters:
outputDirectory-
-
setPlugins
public void setPlugins(java.util.List<ReportPlugin> plugins)
Set the reporting plugins to use and their configuration.- Parameters:
plugins-
-
isExcludeDefaults
public boolean isExcludeDefaults()
-
setExcludeDefaults
public void setExcludeDefaults(boolean excludeDefaults)
-
flushReportPluginMap
public void flushReportPluginMap()
Reset thereportPluginMapfield tonull
-
getReportPluginsAsMap
public java.util.Map<java.lang.String,ReportPlugin> getReportPluginsAsMap()
- Returns:
- a Map of plugins field with
ReportPlugin#getKey()as key - See Also:
ReportPlugin.getKey()
-
-