org.pentaho.reporting.engine.classic.core.modules.parser.extwriter
Class ParserConfigWriter

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.AbstractXMLDefinitionWriter
      extended by org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ParserConfigWriter

public class ParserConfigWriter
extends AbstractXMLDefinitionWriter

A parser configuration writer.

Author:
Thomas Morgner

Field Summary
static String DATADEFINITION_FACTORY_TAG
          The 'datadefinition-factory' tag name.
static String DATASOURCE_FACTORY_TAG
          The 'datasource-factory' tag name.
static String ELEMENT_FACTORY_TAG
          The 'element-factory' tag name.
static String OBJECT_FACTORY_TAG
          The 'object-factory' tag name.
static String STYLEKEY_FACTORY_TAG
          The 'stylekey-factory' tag name.
static String TEMPLATE_FACTORY_TAG
          The 'template-factory' tag name.
 
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
ParserConfigWriter(ReportWriterContext reportWriter, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter)
          Creates a new writer.
 
Method Summary
 void write()
          Writes the XML.
 void writeFactory(String tagName, Iterator it)
          Writes a factory element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLEKEY_FACTORY_TAG

public static final String STYLEKEY_FACTORY_TAG
The 'stylekey-factory' tag name.

See Also:
Constant Field Values

TEMPLATE_FACTORY_TAG

public static final String TEMPLATE_FACTORY_TAG
The 'template-factory' tag name.

See Also:
Constant Field Values

OBJECT_FACTORY_TAG

public static final String OBJECT_FACTORY_TAG
The 'object-factory' tag name.

See Also:
Constant Field Values

DATADEFINITION_FACTORY_TAG

public static final String DATADEFINITION_FACTORY_TAG
The 'datadefinition-factory' tag name.

See Also:
Constant Field Values

DATASOURCE_FACTORY_TAG

public static final String DATASOURCE_FACTORY_TAG
The 'datasource-factory' tag name.

See Also:
Constant Field Values

ELEMENT_FACTORY_TAG

public static final String ELEMENT_FACTORY_TAG
The 'element-factory' tag name.

See Also:
Constant Field Values
Constructor Detail

ParserConfigWriter

public ParserConfigWriter(ReportWriterContext reportWriter,
                          org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter)
Creates a new writer.

Parameters:
reportWriter - the report writer.
Method Detail

write

public void write()
           throws IOException
Writes the XML.

Specified by:
write in class AbstractXMLDefinitionWriter
Throws:
IOException - if there is an I/O problem.

writeFactory

public void writeFactory(String tagName,
                         Iterator it)
                  throws IOException
Writes a factory element.

Parameters:
tagName - the tag name.
it - an iterator over a collection of factories, which should be defined for the target report.
Throws:
IOException - if there is an I/O problem.