public class ReportBuilder extends Object
This is the one and only builder for any report
Typical usage:
Report report = new ReportBuilder(new HtmlReportOutput(new FileWriter("/temp/test.html"))) .add(new ReportTile("My first report")) .add(...) .add(other report components here) .build(); report.execute();
Report
,
ReportComponent
,
ReportOutput
Constructor and Description |
---|
ReportBuilder(AbstractReportOutput output) |
Modifier and Type | Method and Description |
---|---|
ReportBuilder |
add(ReportComponent newComponent)
adds a new component to the report
|
Report |
build() |
List<ReportComponent> |
getComponents() |
AbstractReportOutput |
getOutput() |
public ReportBuilder(AbstractReportOutput output)
output
- public ReportBuilder add(ReportComponent newComponent)
newComponent
- the componentpublic AbstractReportOutput getOutput()
public List<ReportComponent> getComponents()
public Report build()
Copyright © 2006–2015. All rights reserved.