Package org.apache.maven.api.model
Class ReportSet
java.lang.Object
org.apache.maven.api.model.ConfigurationContainer
org.apache.maven.api.model.ReportSet
- All Implemented Interfaces:
Serializable
,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class ReportSet
extends ConfigurationContainer
implements Serializable, InputLocationTracker
Represents a set of reports and configuration to be used to generate them.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create ReportSet instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
ReportSet
(ReportSet.Builder builder) Constructor for this class, to be called from its subclasses andReportSet.Builder
. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
The unique id for this report set, to be used during POM inheritance and profile injection for merging of report sets.getLocation
(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.The list of reports from this plugin which should be generated from this set.static ReportSet.Builder
Creates a newReportSet
builder instance.static ReportSet.Builder
newBuilder
(boolean withDefaults) Creates a newReportSet
builder instance using default values or not.static ReportSet.Builder
newBuilder
(ReportSet from) Creates a newReportSet
builder instance using the specified object as a basis.static ReportSet.Builder
newBuilder
(ReportSet from, boolean forceCopy) Creates a newReportSet
builder instance using the specified object as a basis.static ReportSet
Creates a newReportSet
instance.static ReportSet
newInstance
(boolean withDefaults) Creates a newReportSet
instance using default values or not.toString()
with()
Creates a new builder with this object as the basis.withConfiguration
(XmlNode configuration) Creates a newReportSet
instance using the specified configuration.Creates a newReportSet
instance using the specified id.withInherited
(String inherited) Creates a newReportSet
instance using the specified inherited.withReports
(Collection<String> reports) Creates a newReportSet
instance using the specified reports.Methods inherited from class org.apache.maven.api.model.ConfigurationContainer
getConfiguration, getImportedFrom, getInherited, isInherited, newBuilder, newBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.maven.api.model.InputLocationTracker
getImportedFrom
-
Constructor Details
-
ReportSet
Constructor for this class, to be called from its subclasses andReportSet.Builder
.- See Also:
-
-
Method Details
-
getId
The unique id for this report set, to be used during POM inheritance and profile injection for merging of report sets.- Returns:
- a
String
-
getReports
The list of reports from this plugin which should be generated from this set.- Returns:
- a
List<String>
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Overrides:
getLocation
in classConfigurationContainer
-
getLocationKeys
Gets the keys of the locations of the input source.- Overrides:
getLocationKeys
in classConfigurationContainer
-
with
Creates a new builder with this object as the basis.- Overrides:
with
in classConfigurationContainer
- Returns:
- a
Builder
-
withInherited
Creates a newReportSet
instance using the specified inherited.- Overrides:
withInherited
in classConfigurationContainer
- Parameters:
inherited
- the newString
to use- Returns:
- a
ReportSet
with the specified inherited
-
withConfiguration
Creates a newReportSet
instance using the specified configuration.- Overrides:
withConfiguration
in classConfigurationContainer
- Parameters:
configuration
- the newXmlNode
to use- Returns:
- a
ReportSet
with the specified configuration
-
withId
Creates a newReportSet
instance using the specified id.- Parameters:
id
- the newString
to use- Returns:
- a
ReportSet
with the specified id
-
withReports
Creates a newReportSet
instance using the specified reports.- Parameters:
reports
- the newCollection<String>
to use- Returns:
- a
ReportSet
with the specified reports
-
newInstance
Creates a newReportSet
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
ReportSet
- See Also:
-
newInstance
Creates a newReportSet
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
ReportSet
-
newBuilder
Creates a newReportSet
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newReportSet
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 newReportSet
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theReportSet
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newReportSet
builder instance using the specified object as a basis.- Parameters:
from
- theReportSet
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
-