Package org.apache.maven.api.model
Class ReportPlugin
java.lang.Object
org.apache.maven.api.model.ConfigurationContainer
org.apache.maven.api.model.ReportPlugin
- All Implemented Interfaces:
Serializable
,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class ReportPlugin
extends ConfigurationContainer
implements Serializable, InputLocationTracker
The
<plugin>
element in <reporting><plugins>
contains informations required for a report plugin.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create ReportPlugin instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
constructKey
(String groupId, String artifactId) void
Reset thereportSetMap
field tonull
The artifact ID of the reporting plugin in the repository.The group ID of the reporting plugin in the repository.getKey()
getLocation
(Object key) Gets the location of the specified field in the input source.Multiple specifications of a set of reports, each having (possibly) different configuration.The version of the reporting plugin to be used.static ReportPlugin.Builder
Creates a newReportPlugin
builder instance.static ReportPlugin.Builder
newBuilder
(boolean withDefaults) Creates a newReportPlugin
builder instance using default values or not.static ReportPlugin.Builder
newBuilder
(ReportPlugin from) Creates a newReportPlugin
builder instance using the specified object as a basis.static ReportPlugin.Builder
newBuilder
(ReportPlugin from, boolean forceCopy) Creates a newReportPlugin
builder instance using the specified object as a basis.static ReportPlugin
Creates a newReportPlugin
instance.static ReportPlugin
newInstance
(boolean withDefaults) Creates a newReportPlugin
instance using default values or not.with()
Creates a new builder with this object as the basis.withArtifactId
(String artifactId) Creates a newReportPlugin
instance using the specified artifactId.withConfiguration
(XmlNode configuration) Creates a newReportPlugin
instance using the specified configuration.withGroupId
(String groupId) Creates a newReportPlugin
instance using the specified groupId.withInherited
(String inherited) Creates a newReportPlugin
instance using the specified inherited.withReportSets
(Collection<ReportSet> reportSets) Creates a newReportPlugin
instance using the specified reportSets.withVersion
(String version) Creates a newReportPlugin
instance using the specified version.Methods inherited from class org.apache.maven.api.model.ConfigurationContainer
getConfiguration, getInherited, isInherited, newBuilder, newBuilder
-
Method Details
-
getGroupId
The group ID of the reporting plugin in the repository.- Returns:
- a
String
-
getArtifactId
The artifact ID of the reporting plugin in the repository.- Returns:
- a
String
-
getVersion
The version of the reporting plugin to be used. Starting with Maven 3, if no version is defined explicitly, version is searched inbuild/plugins
then inbuild/pluginManagement
.- Returns:
- a
String
-
getReportSets
Multiple specifications of a set of reports, each having (possibly) different configuration. This is the reporting parallel to anexecution
in the build.- Returns:
- a
List<ReportSet>
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Overrides:
getLocation
in classConfigurationContainer
-
with
Creates a new builder with this object as the basis.- Overrides:
with
in classConfigurationContainer
- Returns:
- a
Builder
-
withInherited
Creates a newReportPlugin
instance using the specified inherited.- Overrides:
withInherited
in classConfigurationContainer
- Parameters:
inherited
- the newString
to use- Returns:
- a
ReportPlugin
with the specified inherited
-
withConfiguration
Creates a newReportPlugin
instance using the specified configuration.- Overrides:
withConfiguration
in classConfigurationContainer
- Parameters:
configuration
- the newXmlNode
to use- Returns:
- a
ReportPlugin
with the specified configuration
-
withGroupId
Creates a newReportPlugin
instance using the specified groupId.- Parameters:
groupId
- the newString
to use- Returns:
- a
ReportPlugin
with the specified groupId
-
withArtifactId
Creates a newReportPlugin
instance using the specified artifactId.- Parameters:
artifactId
- the newString
to use- Returns:
- a
ReportPlugin
with the specified artifactId
-
withVersion
Creates a newReportPlugin
instance using the specified version.- Parameters:
version
- the newString
to use- Returns:
- a
ReportPlugin
with the specified version
-
withReportSets
Creates a newReportPlugin
instance using the specified reportSets.- Parameters:
reportSets
- the newCollection<ReportSet>
to use- Returns:
- a
ReportPlugin
with the specified reportSets
-
newInstance
Creates a newReportPlugin
instance. Equivalent tonewInstance( true )
.- Returns:
- a new
ReportPlugin
- See Also:
-
newInstance
Creates a newReportPlugin
instance using default values or not. Equivalent tonewBuilder( withDefaults ).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
ReportPlugin
-
newBuilder
Creates a newReportPlugin
builder instance. Equivalent tonewBuilder( true )
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newReportPlugin
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 newReportPlugin
builder instance using the specified object as a basis. Equivalent tonewBuilder( from, false )
.- Parameters:
from
- theReportPlugin
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newReportPlugin
builder instance using the specified object as a basis.- Parameters:
from
- theReportPlugin
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
flushReportSetMap
public void flushReportSetMap()Reset thereportSetMap
field tonull
-
getReportSetsAsMap
- Returns:
- a Map of reportSets field with
ReportSet#getId()
as key - See Also:
-
getKey
- Returns:
- the key of the report plugin, ie
groupId:artifactId
-
constructKey
- Parameters:
groupId
- The group ID of the plugin in the repositoryartifactId
- The artifact ID of the reporting plugin in the repository- Returns:
- the key of the report plugin, ie
groupId:artifactId
-