public class DataSourceWriter extends ObjectWriter
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 and Description |
---|
DataSourceWriter(ReportWriterContext reportWriter,
DataSource baseObject,
ObjectDescription objectDescription,
XmlWriter indent)
Creates a new writer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
writeParameter(String name)
Writes a parameter.
|
getClassFactoryCollector, getObjectDescription, getParameterDescription, getParameterNames, isBasicObject, write
getReport, getReportWriter, getXmlWriter, hasPublicDefaultConstructor
public DataSourceWriter(ReportWriterContext reportWriter, DataSource baseObject, ObjectDescription objectDescription, XmlWriter indent) throws ReportWriterException
reportWriter
- the report writer.baseObject
- the base object.objectDescription
- the object description.indent
- the current indention level.ReportWriterException
- if an error occured.IllegalArgumentException
- if the object description does not describe a datasource.protected void writeParameter(String name) throws IOException, ReportWriterException
writeParameter
in class ObjectWriter
name
- the name.IOException
- if there is an I/O problem.ReportWriterException
- if the report definition could not be written.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.