public class Reporter extends Object
Constructor and Description |
---|
Reporter() |
Modifier and Type | Method and Description |
---|---|
static ReportBuilder |
createReport()
Creates an instance of
BasicReport without any name specified. |
static <BUILDERTYPE extends ReportBuilder<BUILDERTYPE,? extends Report>,REPORTTYPE extends Report<? extends Report,BUILDERTYPE>> |
createReport(REPORTTYPE report)
Uses the given instance of
Report and creates corresponding instance of ReportBuilder that should
be used for the given type of Report . |
static ReportBuilder |
createReport(String name)
Creates an instance of
BasicReport and sets it into a ReportBuilder as a report to be built. |
static ReportBuilder |
createReport(StringKey name)
Creates an instance of
BasicReport and sets it into a ReportBuilder as a report to be built. |
static TableBuilder |
createTable(String name)
Creates an instance of
TableEntry class and sets it into a TableBuilder as an entry to be built. |
static TableBuilder |
createTable(StringKey name)
Creates an instance of
TableEntry class and sets it into a TableBuilder as an entry to be built. |
static <BUILDERTYPE extends Builder> |
usingBuilder(Class<BUILDERTYPE> builderClass,
Object... constructParams)
Creates an instance of the given
Builder using the given constructor parameters. |
public static ReportBuilder createReport(StringKey name)
BasicReport
and sets it into a ReportBuilder
as a report to be built.
The ReportBuilder
instance will be then returned.name
- A StringKey representing a name of the BasicReport
instanceReportBuilder
with set instance of BasicReport
public static ReportBuilder createReport()
BasicReport
without any name specified. It sets the BasicReport implementation
into a ReportBuilder
as a report to be built. The ReportBuilder
instance will be then returned.ReportBuilder
with set instance of BasicReport
public static ReportBuilder createReport(String name)
BasicReport
and sets it into a ReportBuilder
as a report to be built.
The ReportBuilder
instance will be then returned.name
- A name of the BasicReport
instance. The name will be stored as an UnknownStringKey
ReportBuilder
with set instance of BasicReport
public static <BUILDERTYPE extends ReportBuilder<BUILDERTYPE,? extends Report>,REPORTTYPE extends Report<? extends Report,BUILDERTYPE>> BUILDERTYPE createReport(REPORTTYPE report)
Report
and creates corresponding instance of ReportBuilder
that should
be used for the given type of Report
.
The ReportBuilder
instance will be then returned.report
- An instance of Report
implementation to be builtReportBuilder
with the given report setpublic static <BUILDERTYPE extends Builder> BUILDERTYPE usingBuilder(Class<BUILDERTYPE> builderClass, Object... constructParams)
Builder
using the given constructor parameters. The instance of the builder is then returned.BUILDERTYPE
- The type of the given builder classbuilderClass
- An implementation class of the interface Builder
to be createdconstructParams
- Constructor parameters that should be used for instantiating of the given builder classBuilder
classpublic static TableBuilder createTable(String name)
TableEntry
class and sets it into a TableBuilder
as an entry to be built.
The TableBuilder
instance will be then returned.name
- A name of the TableEntry
instance. The name will be stored as an UnknownStringKey
TableBuilder
with the given table entry setpublic static TableBuilder createTable(StringKey name)
TableEntry
class and sets it into a TableBuilder
as an entry to be built.
The TableBuilder
instance will be then returned.name
- A StringKey representing name of the TableEntry
instance.TableBuilder
with the given table entry setCopyright © 2017 JBoss by Red Hat. All rights reserved.