TYPE
- A type of the Report
implementation itselfBUILDERTYPE
- A ReportBuilder
type of a builder that should be used for building the Report
implementationpublic abstract class AbstractReport<TYPE extends AbstractReport,BUILDERTYPE extends ReportBuilder> extends Object implements Report<TYPE,BUILDERTYPE>
Report
interface.
It is advised to extend this abstract class, then creating a brand new one.Constructor and Description |
---|
AbstractReport()
Creates an instance of
AbstractReport |
AbstractReport(String name)
Creates an instance of
AbstractReport with the given String set as a name as UnknownStringKey |
AbstractReport(StringKey name)
Creates an instance of
AbstractReport with the given StringKey set as a name |
Modifier and Type | Method and Description |
---|---|
void |
defaultMerge(TYPE newReport)
Provides a default implementation of merging.
|
List<Entry> |
getEntries()
Returns a list of
Entry (-ies) contained in this report |
StringKey |
getName()
Returns the name of this report
|
List<Report> |
getSubReports()
Returns a list of
Report s that are stored as sub-reports of this report |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addNewReport, getReportBuilderClass, merge
public AbstractReport()
AbstractReport
public AbstractReport(StringKey name)
AbstractReport
with the given StringKey
set as a namename
- A StringKey
to be set as a namepublic AbstractReport(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 StringKey getName()
Report
getName
in interface Report<TYPE extends AbstractReport,BUILDERTYPE extends ReportBuilder>
public void setName(StringKey name)
Report
setName
in interface Report<TYPE extends AbstractReport,BUILDERTYPE extends ReportBuilder>
name
- A name to be set as a name of this reportpublic List<Entry> getEntries()
Report
Entry
(-ies) contained in this reportgetEntries
in interface Report<TYPE extends AbstractReport,BUILDERTYPE extends ReportBuilder>
Entry
(-ies) contained in this reportpublic void setEntries(List<Entry> entries)
Report
Entry
(-ies)setEntries
in interface Report<TYPE extends AbstractReport,BUILDERTYPE extends ReportBuilder>
entries
- A list of Entry
(-ies) to be setpublic List<Report> getSubReports()
Report
Report
s that are stored as sub-reports of this reportgetSubReports
in interface Report<TYPE extends AbstractReport,BUILDERTYPE extends ReportBuilder>
Report
s that are stored as sub-reports of this reportpublic void setSubReports(List<Report> subReports)
Report
Report
s as sub-reports of this reportsetSubReports
in interface Report<TYPE extends AbstractReport,BUILDERTYPE extends ReportBuilder>
subReports
- A list of Report
s to be set as sub-reports of this reportpublic void defaultMerge(TYPE newReport)
Report
and adds them into the list of entries and sub-reports respectively withing this instance of report.newReport
- A Report
to be mergedCopyright © 2017 JBoss by Red Hat. All rights reserved.