public class ReportDescriptionWriter extends AbstractXMLDefinitionWriter
ReportDefinitionWriter
class is responsible for writing the complete XML
report definition file, but it delegates one large section (the report description) to this class.Modifier and Type | Field and Description |
---|---|
static String |
BAND_TAG
The 'band' tag.
|
static String |
ELEMENT_TAG
The 'element' tag.
|
static String |
FIELD_TAG
The 'field' tag name.
|
static String |
FIELDS_TAG
The 'fields' tag name.
|
static String |
GROUP_FOOTER_TAG
The 'group-footer' tag name.
|
static String |
GROUP_HEADER_TAG
The 'group-header' tag name.
|
static String |
GROUP_TAG
The 'group' tag name.
|
static String |
GROUPS_TAG
The 'groups' tag name.
|
static String |
ITEMBAND_TAG
The 'itemband' tag name.
|
static String |
NO_DATA_BAND_TAG |
static String |
PAGE_FOOTER_TAG
The 'page-footer' tag name.
|
static String |
PAGE_HEADER_TAG
The 'page-header' tag name.
|
static String |
REPORT_DESCRIPTION_TAG
The report description tag name.
|
static String |
REPORT_FOOTER_TAG
The 'report-footer' tag name.
|
static String |
REPORT_HEADER_TAG
The 'report-header' tag name.
|
static String |
WATERMARK_TAG
The 'watermark' tag name.
|
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 |
---|
ReportDescriptionWriter(ReportWriterContext reportWriter,
XmlWriter indent)
Creates a new report description writer.
|
Modifier and Type | Method and Description |
---|---|
void |
write()
Writes a report description element to a character stream writer.
|
protected void |
writeDataSourceForElement(Element element)
Writes the datasource- or template-tag for an given element.
|
getReport, getReportWriter, getXmlWriter, hasPublicDefaultConstructor
public static final String BAND_TAG
public static final String ELEMENT_TAG
public static final String FIELDS_TAG
public static final String FIELD_TAG
public static final String GROUP_HEADER_TAG
public static final String GROUP_FOOTER_TAG
public static final String GROUP_TAG
public static final String GROUPS_TAG
public static final String WATERMARK_TAG
public static final String REPORT_DESCRIPTION_TAG
public static final String REPORT_HEADER_TAG
public static final String REPORT_FOOTER_TAG
public static final String PAGE_HEADER_TAG
public static final String PAGE_FOOTER_TAG
public static final String ITEMBAND_TAG
public static final String NO_DATA_BAND_TAG
public ReportDescriptionWriter(ReportWriterContext reportWriter, XmlWriter indent)
reportWriter
- the report writer.indent
- the current indention level.public void write() throws IOException, ReportWriterException
write
in class AbstractXMLDefinitionWriter
IOException
- if there is an I/O problem.ReportWriterException
- if there is a problem writing the report.protected void writeDataSourceForElement(Element element) throws ReportWriterException, IOException
element
- the element, which should be written.ReportWriterException
- if there is a problem writing the reportIOException
- if there is an IO error.Copyright © 2017 Hitachi Vantara. All rights reserved.