Package org.apache.maven.api.model
Class Reporting
java.lang.Object
org.apache.maven.api.model.Reporting
- All Implemented Interfaces:
Serializable,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Reporting
extends Object
implements Serializable, InputLocationTracker
Section for management of reports and their configuration.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Reporting instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReporting(Reporting.Builder builder) Constructor for this class, to be called from its subclasses andReporting.Builder. -
Method Summary
Modifier and TypeMethodDescriptionIf true, then the default reports are not included in the site generation.Gets the input location that caused this model to be read.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.Where to store all the generated reports.The reporting plugins to use and their configuration.booleanstatic Reporting.BuilderCreates a newReportingbuilder instance.static Reporting.BuildernewBuilder(boolean withDefaults) Creates a newReportingbuilder instance using default values or not.static Reporting.BuildernewBuilder(Reporting from) Creates a newReportingbuilder instance using the specified object as a basis.static Reporting.BuildernewBuilder(Reporting from, boolean forceCopy) Creates a newReportingbuilder instance using the specified object as a basis.static ReportingCreates a newReportinginstance.static ReportingnewInstance(boolean withDefaults) Creates a newReportinginstance using default values or not.with()Creates a new builder with this object as the basis.withExcludeDefaults(String excludeDefaults) Creates a newReportinginstance using the specified excludeDefaults.withOutputDirectory(String outputDirectory) Creates a newReportinginstance using the specified outputDirectory.withPlugins(Collection<ReportPlugin> plugins) Creates a newReportinginstance using the specified plugins.
-
Constructor Details
-
Reporting
Constructor for this class, to be called from its subclasses andReporting.Builder.- See Also:
-
-
Method Details
-
getExcludeDefaults
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:
- a
String
-
getOutputDirectory
Where to store all the generated reports. The default is${project.build.directory}/site.- Returns:
- a
String
-
getPlugins
The reporting plugins to use and their configuration.- Returns:
- a
List<ReportPlugin>
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker
-
getLocationKeys
Gets the keys of the locations of the input source. -
getImportedFrom
Gets the input location that caused this model to be read.- Specified by:
getImportedFromin interfaceInputLocationTracker- Returns:
- InputLocation
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withExcludeDefaults
Creates a newReportinginstance using the specified excludeDefaults.- Parameters:
excludeDefaults- the newStringto use- Returns:
- a
Reportingwith the specified excludeDefaults
-
withOutputDirectory
Creates a newReportinginstance using the specified outputDirectory.- Parameters:
outputDirectory- the newStringto use- Returns:
- a
Reportingwith the specified outputDirectory
-
withPlugins
Creates a newReportinginstance using the specified plugins.- Parameters:
plugins- the newCollection<ReportPlugin>to use- Returns:
- a
Reportingwith the specified plugins
-
newInstance
Creates a newReportinginstance. Equivalent tonewInstance(true).- Returns:
- a new
Reporting - See Also:
-
newInstance
Creates a newReportinginstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Reporting
-
newBuilder
Creates a newReportingbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newReportingbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newReportingbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theReportinginstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newReportingbuilder instance using the specified object as a basis.- Parameters:
from- theReportinginstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
isExcludeDefaults
public boolean isExcludeDefaults()
-