TYPE
- A type of the Report
implementation itselfBUILDERTYPE
- A ReportBuilder
type of a builder that should be used for building the Report
implementationpublic interface Report<TYPE extends Report,BUILDERTYPE extends ReportBuilder>
Entry
(-ies) and additional sub-reportsModifier and Type | Method and Description |
---|---|
Report |
addNewReport(Report newReport,
Class<? extends Report> expectedReportTypeClass)
Takes the given
Report and based on its type and the type of the given expectedReportTypeClass, it adds
the whole report into some list of sub-reports contained in this report instance. |
List<Entry> |
getEntries()
Returns a list of
Entry (-ies) contained in this report |
StringKey |
getName()
Returns the name of this report
|
Class<BUILDERTYPE> |
getReportBuilderClass()
Returns a
ReportBuilder class that should be used as a builder for the report implementations |
List<Report> |
getSubReports()
Returns a list of
Report s that are stored as sub-reports of this report |
TYPE |
merge(TYPE newReport)
Takes the information contained in the given
Report and add them into this report instance. |
void |
setEntries(List<Entry> entries)
Sets the given list of
Entry (-ies) |
void |
setName(StringKey name)
Sets the given name as a name of this report
|
void |
setSubReports(List<Report> subReports)
Sets the given list of
Report s as sub-reports of this report |
StringKey getName()
void setName(StringKey name)
name
- A name to be set as a name of this reportList<Entry> getEntries()
Entry
(-ies) contained in this reportEntry
(-ies) contained in this reportvoid setEntries(List<Entry> entries)
Entry
(-ies)entries
- A list of Entry
(-ies) to be setList<Report> getSubReports()
Report
s that are stored as sub-reports of this reportReport
s that are stored as sub-reports of this reportvoid setSubReports(List<Report> subReports)
Report
s as sub-reports of this reportsubReports
- A list of Report
s to be set as sub-reports of this reportClass<BUILDERTYPE> getReportBuilderClass()
ReportBuilder
class that should be used as a builder for the report implementationsReportBuilder
class that should be used as a builder for the report implementationsTYPE merge(TYPE newReport)
Report
and add them into this report instance. In other words.
merges information that were already present in this report with those that are brought in the given report.
When the reports are merged no information should be lost. The type of the given report should be same as this one.
If the type is different then the method this#addNewReport(Report)
should be usedCopyright © 2017 JBoss by Red Hat. All rights reserved.