Package com.tngtech.jgiven.report
Class AbstractReportGenerator
- java.lang.Object
-
- com.tngtech.jgiven.report.AbstractReportGenerator
-
- Direct Known Subclasses:
AsciiDocReportGenerator
,PlainTextReportGenerator
public abstract class AbstractReportGenerator extends java.lang.Object
This abstract class is the basic layout that includes the minimal functionality for reading/writing a report The following flags are predefined inAbstractReportConfig.createConfigOptions()
:- --format=
- --sourceDir= /--dir=
- --targetDir= /--todir=
- --title=
- --exclude-empty-scenarios=<boolean>
- --help / -h
AsciiDocReportGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected CompleteReportModel
completeReportModel
AbstractReportConfig
config
-
Constructor Summary
Constructors Constructor Description AbstractReportGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractReportConfig
createReportConfig(java.lang.String... args)
abstract void
generate()
This implements the main functionality of the report generator, utilizing the information from the specializedAbstractReportConfig
protected void
generateFromCommandLine(java.lang.String... args)
void
generateWithConfig(AbstractReportConfig config)
void
loadReportModel()
void
setConfig(AbstractReportConfig config)
-
-
-
Field Detail
-
completeReportModel
protected CompleteReportModel completeReportModel
-
config
public AbstractReportConfig config
-
-
Method Detail
-
setConfig
public void setConfig(AbstractReportConfig config)
-
generateFromCommandLine
protected void generateFromCommandLine(java.lang.String... args)
-
generateWithConfig
public void generateWithConfig(AbstractReportConfig config)
-
loadReportModel
public void loadReportModel()
-
createReportConfig
public abstract AbstractReportConfig createReportConfig(java.lang.String... args)
- Parameters:
args
- these are the command line arguments- Returns:
- an
AbstractReportConfig
where any option may be accessible via setter and getter
-
generate
public abstract void generate() throws java.lang.Exception
This implements the main functionality of the report generator, utilizing the information from the specializedAbstractReportConfig
- Throws:
java.lang.Exception
-
-