public class SimpleReport extends Object implements Report
Report.OutputType| Constructor and Description |
|---|
SimpleReport(String name,
Report.OutputType outputType,
FileResolver fileResolver) |
| Modifier and Type | Method and Description |
|---|---|
Report |
configure(Closure configure) |
File |
getDestination()
The location on the filesystem of the report when it is generated.
|
String |
getName()
The symbolic name of this report.
|
Report.OutputType |
getOutputType()
The type of output that the report generates.
|
boolean |
isEnabled()
Whether or not this report should be generated by whatever generates it.
|
protected void |
setDestination(Object destination) |
void |
setEnabled(boolean enabled)
Whether or not this report should be generated by whatever generates it.
|
String |
toString() |
public SimpleReport(String name, Report.OutputType outputType, FileResolver fileResolver)
public String getName()
ReportReportContainer, reports are accessed via their name. That is, given a report container variable
named reports containing a report who's getName() returns "html", the report could be accessed
via:
reports.html
public File getDestination()
Reportoutput type of the report, this may point to
a file or a directory.
Subtypes may implement setters for the destination.getDestination in interface Reportprotected void setDestination(Object destination)
public Report.OutputType getOutputType()
ReportgetOutputType in interface Reportpublic Report configure(Closure configure)
configure in interface Configurable<Report>public boolean isEnabled()
Reporttrue, the generator of this report will generate it at the appropriate time.
If false, the generator of this report will not generate this report.public void setEnabled(boolean enabled)
ReportsetEnabled in interface Reportenabled - Whether or not this report should be generated by whatever generates it.Report.isEnabled()Copyright © 2013. All rights reserved