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
Modifier and TypeClassDescriptionstatic class
Builder class used to create Reporting instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
Reporting
(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.boolean
static Reporting.Builder
Creates a newReporting
builder instance.static Reporting.Builder
newBuilder
(boolean withDefaults) Creates a newReporting
builder instance using default values or not.static Reporting.Builder
newBuilder
(Reporting from) Creates a newReporting
builder instance using the specified object as a basis.static Reporting.Builder
newBuilder
(Reporting from, boolean forceCopy) Creates a newReporting
builder instance using the specified object as a basis.static Reporting
Creates a newReporting
instance.static Reporting
newInstance
(boolean withDefaults) Creates a newReporting
instance using default values or not.with()
Creates a new builder with this object as the basis.withExcludeDefaults
(String excludeDefaults) Creates a newReporting
instance using the specified excludeDefaults.withOutputDirectory
(String outputDirectory) Creates a newReporting
instance using the specified outputDirectory.withPlugins
(Collection<ReportPlugin> plugins) Creates a newReporting
instance 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 isString
for 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:
getLocation
in interfaceInputLocationTracker
-
getLocationKeys
Gets the keys of the locations of the input source. -
getLocationKeyStream
-
getImportedFrom
Gets the input location that caused this model to be read.- Specified by:
getImportedFrom
in interfaceInputLocationTracker
- Returns:
- InputLocation
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withExcludeDefaults
Creates a newReporting
instance using the specified excludeDefaults.- Parameters:
excludeDefaults
- the newString
to use- Returns:
- a
Reporting
with the specified excludeDefaults
-
withOutputDirectory
Creates a newReporting
instance using the specified outputDirectory.- Parameters:
outputDirectory
- the newString
to use- Returns:
- a
Reporting
with the specified outputDirectory
-
withPlugins
Creates a newReporting
instance using the specified plugins.- Parameters:
plugins
- the newCollection<ReportPlugin>
to use- Returns:
- a
Reporting
with the specified plugins
-
newInstance
Creates a newReporting
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
Reporting
- See Also:
-
newInstance
Creates a newReporting
instance 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 newReporting
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newReporting
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newReporting
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theReporting
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newReporting
builder instance using the specified object as a basis.- Parameters:
from
- theReporting
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
isExcludeDefaults
public boolean isExcludeDefaults()
-