public class BasicReport extends AbstractReport<BasicReport,BasicReportBuilder>
Report
that represents a basic report that should be used for most of the cases.
It provides the basic implementation of using a name, list of entries and list of sub-reportsConstructor and Description |
---|
BasicReport()
Creates an instance of
AbstractReport |
BasicReport(String name)
Creates an instance of
AbstractReport with the given String set as a name as UnknownStringKey |
BasicReport(StringKey name)
Creates an instance of
AbstractReport with the given StringKey set as a name |
Modifier and Type | Method and Description |
---|---|
Report |
addNewReport(Report newReport,
Class<? extends Report> expectedReportTypeClass)
Takes the given
Report and adds it into the list of sub-reports. |
Class<BasicReportBuilder> |
getReportBuilderClass()
Returns a
ReportBuilder class that should be used as a builder for the report implementations |
BasicReport |
merge(BasicReport newBasicReport)
It uses only the default functionality of merging (see
AbstractReport.defaultMerge(AbstractReport) ). |
defaultMerge, getEntries, getName, getSubReports, setEntries, setName, setSubReports
public BasicReport()
AbstractReport
public BasicReport(StringKey name)
AbstractReport
with the given StringKey
set as a namename
- A StringKey
to be set as a namepublic BasicReport(String name)
AbstractReport
with the given String set as a name as UnknownStringKey
name
- A String to be set as a name as UnknownStringKey
public BasicReport merge(BasicReport newBasicReport)
AbstractReport.defaultMerge(AbstractReport)
).
Takes the entries and sub-reports contained in the given BasicReport
and adds them into the list of entries and sub-reports respectively withing this instance of report.newBasicReport
- A BasicReport
to be mergedBasicReport
public Report addNewReport(Report newReport, Class<? extends Report> expectedReportTypeClass)
Report
and adds it into the list of sub-reports.public Class<BasicReportBuilder> getReportBuilderClass()
Report
ReportBuilder
class that should be used as a builder for the report implementationsReportBuilder
class that should be used as a builder for the report implementationsCopyright © 2017 JBoss by Red Hat. All rights reserved.