public class TemplateableViewGenerator extends java.lang.Object implements ViewGenerator
ViewGenerator
, which uses the configured TemplateProcessor
to
generate the views from templates. The default view properties are
overridable via the method Properties
parameter. To override, specify
the path to the new template under the appropriate key:
"views": the path to global view template, including reports and maps views "maps": the path to the maps view template "reports": the path to the reports view template "decorated": the path to the template to generate a decorated (i.e. styled) single report "nonDecorated": the path to the template to generated a non decorated single report
The view generator provides the following resources:
"decorateNonHtml" = "true" "defaultFormats" = "stats" "viewDirectory" = "view"
Modifier and Type | Class and Description |
---|---|
static class |
TemplateableViewGenerator.Report |
static class |
TemplateableViewGenerator.ReportCreationFailed |
static class |
TemplateableViewGenerator.ReportsTable |
static class |
TemplateableViewGenerator.TimeFormatter |
static class |
TemplateableViewGenerator.ViewGenerationFailedForTemplate |
Constructor and Description |
---|
TemplateableViewGenerator(StoryNameResolver nameResolver,
TemplateProcessor processor) |
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
defaultViewProperties() |
void |
generateMapsView(java.io.File outputDirectory,
StoryMaps storyMaps,
java.util.Properties viewProperties) |
void |
generateReportsView(java.io.File outputDirectory,
java.util.List<java.lang.String> formats,
java.util.Properties viewProperties) |
ReportsCount |
getReportsCount() |
public TemplateableViewGenerator(StoryNameResolver nameResolver, TemplateProcessor processor)
public java.util.Properties defaultViewProperties()
public void generateMapsView(java.io.File outputDirectory, StoryMaps storyMaps, java.util.Properties viewProperties)
generateMapsView
in interface ViewGenerator
public void generateReportsView(java.io.File outputDirectory, java.util.List<java.lang.String> formats, java.util.Properties viewProperties)
generateReportsView
in interface ViewGenerator
public ReportsCount getReportsCount()
getReportsCount
in interface ViewGenerator
Copyright © 2003-2014. All Rights Reserved.