org.pentaho.reporting.engine.classic.core.modules.parser.extwriter
Class TemplateWriter
java.lang.Object
org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.AbstractXMLDefinitionWriter
org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ObjectWriter
org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.TemplateWriter
public class TemplateWriter
- extends ObjectWriter
The template writer writes a single template definition to the xml-definition stream. This writer requires report
builder hints to be present for all templates.
- Author:
- Thomas Morgner
Fields inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.AbstractXMLDefinitionWriter |
BASIC_KEY_TAG, BASIC_OBJECT_TAG, CLASS_ATTRIBUTE, COMPOUND_KEY_TAG, COMPOUND_OBJECT_TAG, CONFIGURATION_TAG, DATASOURCE_TAG, EXTENDS_TAG, FUNCTIONS_TAG, HEIGHT_ATT, NAME_ATTR, OUTPUT_TARGET_TAG, PARSER_CONFIG_TAG, PROPERTIES_TAG, PROPERTY_TAG, REPORT_CONFIG_TAG, REPORT_DEFINITION_TAG, STYLE_TAG, STYLES_TAG, TEMPLATE_TAG, TEMPLATES_TAG, WIDTH_ATT |
Method Summary |
void |
write()
Writes the report definition portion. |
TemplateWriter
public TemplateWriter(ReportWriterContext reportWriter,
org.pentaho.reporting.libraries.xmlns.writer.XmlWriter indentLevel,
TemplateDescription template,
TemplateDescription parent)
- Creates a new template writer.
- Parameters:
reportWriter
- the report writer that is used to coordinate the writing.indentLevel
- the current indention level.template
- the template that should be written.parent
- the parent of the template.
write
public void write()
throws IOException,
ReportWriterException
- Writes the report definition portion. Every DefinitionWriter handles one or more elements of the JFreeReport object
tree, DefinitionWriter traverse the object tree and write the known objects or forward objects to other definition
writers.
- Overrides:
write
in class ObjectWriter
- Throws:
IOException
- if there is an I/O problem.
ReportWriterException
- if the report serialisation failed.