Class ReportDefinitionWriter
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.AbstractXMLDefinitionWriter
-
- org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportDefinitionWriter
-
public class ReportDefinitionWriter extends AbstractXMLDefinitionWriter
A report definition writer.- Author:
- Thomas Morgner.
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description ReportDefinitionWriter(ReportWriterContext reportWriter, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter)
Creates a new writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write()
Writes a report definition to a character stream writer.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.AbstractXMLDefinitionWriter
getReport, getReportWriter, getXmlWriter, hasPublicDefaultConstructor
-
-
-
-
Constructor Detail
-
ReportDefinitionWriter
public ReportDefinitionWriter(ReportWriterContext reportWriter, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter)
Creates a new writer.- Parameters:
reportWriter
- the writer context holding the global configuration for this write-operation.xmlWriter
- the report writer.
-
-
Method Detail
-
write
public void write() throws IOException, ReportWriterException
Writes a report definition to a character stream writer. After the standard XML header and the opening tag is written, this class delegates work to:ParserConfigWriter
to write the parser configuration;ReportConfigWriter
to write the report configuration;StylesWriter
to write the templates;ReportDescriptionWriter
to write the report description;FunctionsWriter
to write the function definitions;
- Specified by:
write
in classAbstractXMLDefinitionWriter
- Throws:
IOException
- if there is an I/O problem.ReportWriterException
- if there is a problem writing the report.
-
-