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

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.ObjectWriter
          extended by org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.DataSourceWriter

public class DataSourceWriter
extends ObjectWriter

A data-source writer. Writes datasources and templates.

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
DataSourceWriter(ReportWriterContext reportWriter, DataSource baseObject, ObjectDescription objectDescription, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter indent)
          Creates a new writer.
 
Method Summary
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ObjectWriter
getClassFactoryCollector, getObjectDescription, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceWriter

public DataSourceWriter(ReportWriterContext reportWriter,
                        DataSource baseObject,
                        ObjectDescription objectDescription,
                        org.pentaho.reporting.libraries.xmlns.writer.XmlWriter indent)
                 throws ReportWriterException
Creates a new writer.

Parameters:
reportWriter - the report writer.
baseObject - the base object.
objectDescription - the object description.
indent - the current indention level.
Throws:
ReportWriterException - if an error occured.
IllegalArgumentException - if the object description does not describe a datasource.