@Experimental @Generated @ThreadSafe @Immutable public class ReportPlugin extends ConfigurationContainer implements Serializable, InputLocationTracker
<plugin>
element in <reporting><plugins>
contains informations required for a report plugin.Modifier and Type | Class and Description |
---|---|
static class |
ReportPlugin.Builder
Builder class used to create ReportPlugin instances.
|
Modifier and Type | Method and Description |
---|---|
static String |
constructKey(String groupId,
String artifactId) |
void |
flushReportSetMap()
Reset the
reportSetMap field to null |
String |
getArtifactId()
The artifact ID of the reporting plugin in the repository.
|
String |
getGroupId()
The group ID of the reporting plugin in the repository.
|
String |
getKey() |
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
List<ReportSet> |
getReportSets()
Multiple specifications of a set of reports, each having (possibly) different
configuration.
|
Map<String,ReportSet> |
getReportSetsAsMap() |
String |
getVersion()
The version of the reporting plugin to be used.
|
static ReportPlugin.Builder |
newBuilder()
Creates a new
ReportPlugin builder instance. |
static ReportPlugin.Builder |
newBuilder(boolean withDefaults)
Creates a new
ReportPlugin builder instance using default values or not. |
static ReportPlugin.Builder |
newBuilder(ReportPlugin from)
Creates a new
ReportPlugin builder instance using the specified object as a basis. |
static ReportPlugin.Builder |
newBuilder(ReportPlugin from,
boolean forceCopy)
Creates a new
ReportPlugin builder instance using the specified object as a basis. |
static ReportPlugin |
newInstance()
Creates a new
ReportPlugin instance. |
static ReportPlugin |
newInstance(boolean withDefaults)
Creates a new
ReportPlugin instance using default values or not. |
ReportPlugin.Builder |
with()
Creates a new builder with this object as the basis.
|
ReportPlugin |
withArtifactId(String artifactId)
Creates a new
ReportPlugin instance using the specified artifactId. |
ReportPlugin |
withConfiguration(Dom configuration)
Creates a new
ReportPlugin instance using the specified configuration. |
ReportPlugin |
withGroupId(String groupId)
Creates a new
ReportPlugin instance using the specified groupId. |
ReportPlugin |
withInherited(String inherited)
Creates a new
ReportPlugin instance using the specified inherited. |
ReportPlugin |
withReportSets(Collection<ReportSet> reportSets)
Creates a new
ReportPlugin instance using the specified reportSets. |
ReportPlugin |
withVersion(String version)
Creates a new
ReportPlugin instance using the specified version. |
getConfiguration, getInherited, isInherited, newBuilder, newBuilder
public String getGroupId()
String
public String getArtifactId()
String
public String getVersion()
build/plugins
then in build/pluginManagement
.String
@Nonnull public List<ReportSet> getReportSets()
execution
in the build.List<ReportSet>
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
getLocation
in class ConfigurationContainer
@Nonnull public ReportPlugin.Builder with()
with
in class ConfigurationContainer
Builder
@Nonnull public ReportPlugin withInherited(String inherited)
ReportPlugin
instance using the specified inherited.withInherited
in class ConfigurationContainer
inherited
- the new String
to useReportPlugin
with the specified inherited@Nonnull public ReportPlugin withConfiguration(Dom configuration)
ReportPlugin
instance using the specified configuration.withConfiguration
in class ConfigurationContainer
configuration
- the new Dom
to useReportPlugin
with the specified configuration@Nonnull public ReportPlugin withGroupId(String groupId)
ReportPlugin
instance using the specified groupId.groupId
- the new String
to useReportPlugin
with the specified groupId@Nonnull public ReportPlugin withArtifactId(String artifactId)
ReportPlugin
instance using the specified artifactId.artifactId
- the new String
to useReportPlugin
with the specified artifactId@Nonnull public ReportPlugin withVersion(String version)
ReportPlugin
instance using the specified version.version
- the new String
to useReportPlugin
with the specified version@Nonnull public ReportPlugin withReportSets(Collection<ReportSet> reportSets)
ReportPlugin
instance using the specified reportSets.reportSets
- the new Collection<ReportSet>
to useReportPlugin
with the specified reportSets@Nonnull public static ReportPlugin newInstance()
ReportPlugin
instance.
Equivalent to newInstance( true )
.ReportPlugin
newInstance(boolean)
@Nonnull public static ReportPlugin newInstance(boolean withDefaults)
ReportPlugin
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedReportPlugin
@Nonnull public static ReportPlugin.Builder newBuilder()
ReportPlugin
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static ReportPlugin.Builder newBuilder(boolean withDefaults)
ReportPlugin
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static ReportPlugin.Builder newBuilder(ReportPlugin from)
ReportPlugin
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the ReportPlugin
instance to use as a basisBuilder
@Nonnull public static ReportPlugin.Builder newBuilder(ReportPlugin from, boolean forceCopy)
ReportPlugin
builder instance using the specified object as a basis.from
- the ReportPlugin
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
public void flushReportSetMap()
reportSetMap
field to null
public Map<String,ReportSet> getReportSetsAsMap()
ReportSet#getId()
as keyReportSet.getId()
public String getKey()
groupId:artifactId
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.