BUILDERTYPE
- The Builder
type of this implementation itselfREPORTTYPE
- The Report
type the builder should buildpublic interface ReportBuilder<BUILDERTYPE extends ReportBuilder,REPORTTYPE extends Report<REPORTTYPE,? extends ReportBuilder>> extends Builder
Modifier and Type | Method and Description |
---|---|
BUILDERTYPE |
addEntries(Collection<? extends Entry> entries)
|
BUILDERTYPE |
addEntries(Entry... entries)
|
BUILDERTYPE |
addEntries(String... entries)
Adds the given array of strings into the list of entries in the associated
Report instance. |
BUILDERTYPE |
addEntry(Entry entry)
|
BUILDERTYPE |
addEntry(String entry)
Adds the given string as a
StringEntry into the list of entries in the associated Report instance |
BUILDERTYPE |
addKeyValueEntry(StringKey key,
boolean value)
Adds the given
StringKey and boolean as a KeyValueEntry into the list of entries in the associated Report instance |
BUILDERTYPE |
addKeyValueEntry(StringKey key,
Entry value)
Adds the given
StringKey and Entry as a KeyValueEntry into the list of entries in the associated Report instance |
BUILDERTYPE |
addKeyValueEntry(StringKey key,
int value)
Adds the given
StringKey and integer value as a KeyValueEntry into the list of entries in the associated Report instance |
BUILDERTYPE |
addKeyValueEntry(StringKey key,
String value)
Adds the given
StringKey and String value as a KeyValueEntry into the list of entries in the associated Report instance |
BUILDERTYPE |
addKeyValueEntry(String key,
String value)
Adds the given Strings as a
KeyValueEntry into the list of entries in the associated Report instance |
BUILDERTYPE |
addReport(ReportBuilder reportBuilder)
Takes the given
ReportBuilder that represents a sub-report. |
BUILDERTYPE |
addReport(REPORTTYPE report)
|
REPORTTYPE |
build()
Finishes all necessary building actions and returns the resulting instance of
Report . |
BUILDERTYPE |
feedKeyValueListFromMap(Map<String,String> keyValueMap)
Takes the given map of Strings and each pair stores as a
KeyValueEntry in the list of entries in the associated Report instance. |
<SECTIONTYPE extends SectionEvent<SECTIONTYPE,REPORTTYPE,? extends SectionEvent>> |
inSection(SECTIONTYPE event)
Builds the associated
Report and assigns it into the given SectionEvent . |
REPORTTYPE build()
Report
.Report
BUILDERTYPE addEntry(Entry entry)
entry
- An Entry
to addReportBuilder
with modified Report
instanceBUILDERTYPE addEntry(String entry)
StringEntry
into the list of entries in the associated Report
instanceentry
- A string to be added as a StringEntry
ReportBuilder
with modified Report
instanceBUILDERTYPE addEntries(Collection<? extends Entry> entries)
entries
- A collection of entry to be addedReportBuilder
with modified Report
instanceBUILDERTYPE addEntries(Entry... entries)
entries
- An array of entries to be addedReportBuilder
with modified Report
instanceBUILDERTYPE addEntries(String... entries)
Report
instance. Each string
is stored as a StringEntry
entries
- An array of strings to be added as StringEntry
(-ies)ReportBuilder
with modified Report
instanceBUILDERTYPE feedKeyValueListFromMap(Map<String,String> keyValueMap)
KeyValueEntry
in the list of entries in the associated Report
instance.
The String values are stored as UnknownStringKey
.keyValueMap
- Map of Strings to be added as KeyValueEntry
(-ies)ReportBuilder
with modified Report
instanceBUILDERTYPE addReport(ReportBuilder reportBuilder)
ReportBuilder
that represents a sub-report. When the method this#build()
is called,
the builder is built as well and the resulting report is added into the list of sub-reports in the associated Report
instancereportBuilder
- An Report
to add into the list of sub-reportsReportBuilder
with modified Report
instanceBUILDERTYPE addReport(REPORTTYPE report)
report
- An Report
to add into the list of sub-reportsReportBuilder
with modified Report
instanceBUILDERTYPE addKeyValueEntry(StringKey key, Entry value)
StringKey
and Entry
as a KeyValueEntry
into the list of entries in the associated Report
instancekey
- A StringKey
to be added as key of the KeyValueEntry
value
- An Entry
to be added as value of the KeyValueEntry
ReportBuilder
with modified Report
instanceBUILDERTYPE addKeyValueEntry(StringKey key, String value)
StringKey
and String value as a KeyValueEntry
into the list of entries in the associated Report
instancekey
- A StringKey
to be added as key of the KeyValueEntry
value
- A String to be added as value of the KeyValueEntry
. It is stored as an UnknownStringKey
ReportBuilder
with modified Report
instanceBUILDERTYPE addKeyValueEntry(String key, String value)
KeyValueEntry
into the list of entries in the associated Report
instancekey
- A String to be added as key of the KeyValueEntry
. It is stored as an UnknownStringKey
value
- A String to be added as value of the KeyValueEntry
. It is stored as an UnknownStringKey
ReportBuilder
with modified Report
instanceBUILDERTYPE addKeyValueEntry(StringKey key, int value)
StringKey
and integer value as a KeyValueEntry
into the list of entries in the associated Report
instancekey
- A StringKey
to be added as key of the KeyValueEntry
value
- An integer to be added as value of the KeyValueEntry
. It is stored as an UnknownStringKey
ReportBuilder
with modified Report
instanceBUILDERTYPE addKeyValueEntry(StringKey key, boolean value)
StringKey
and boolean as a KeyValueEntry
into the list of entries in the associated Report
instancekey
- A StringKey
to be added as key of the KeyValueEntry
value
- A boolean to be added as value of the KeyValueEntry
. It is stored as an UnknownStringKey
ReportBuilder
with modified Report
instance<SECTIONTYPE extends SectionEvent<SECTIONTYPE,REPORTTYPE,? extends SectionEvent>> ReportInSectionBuilder<REPORTTYPE,SECTIONTYPE> inSection(SECTIONTYPE event)
Report
and assigns it into the given SectionEvent
. Then, it is possible to fire the event.SECTIONTYPE
- Type of the SectionEvent
event
- A SectionEvent
that should carry the built Report
.ReportInSectionBuilder
with the given SectionEvent
containing the built Report
.Copyright © 2017 JBoss by Red Hat. All rights reserved.