public class ComponentsXmlWriter extends AbstractComponentXmlWriter
ComponentsExtensionsRegistryFactory
jasperReportsContext, PROPERTY_COMPONENTS_PREFIX, PROPERTY_COMPONENTS_VERSION_SUFFIX, versionComparator
Constructor and Description |
---|
ComponentsXmlWriter(JasperReportsContext jasperReportsContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
isToWrite(JRComponentElement componentElement,
JRXmlWriter reportWriter)
Specifies whether this component should be written out.
|
protected void |
writeGroupCells(JRComponentElement componentElement,
List<GroupCell> cells,
String name,
JRXmlWriter reportWriter) |
protected void |
writeList(JRComponentElement componentElement,
JRXmlWriter reportWriter) |
protected void |
writeMap(JRComponentElement componentElement,
JRXmlWriter reportWriter) |
protected void |
writeTable(JRComponentElement componentElement,
JRXmlWriter reportWriter) |
protected void |
writeTableCell(JRComponentElement componentElement,
Cell cell,
String name,
JRXmlWriter reportWriter) |
void |
writeToXml(JRComponentElement componentElement,
JRXmlWriter reportWriter)
Outputs the XML representation of a component.
|
getVersion, isNewerVersionOrEqual, isOlderVersionThan, writeExpression, writeExpression
public ComponentsXmlWriter(JasperReportsContext jasperReportsContext)
public void writeToXml(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
ComponentXmlWriter
componentElement
- the component elementreportWriter
- the report writer to which output is to be writtenIOException
- exceptions produced while writing to the
output streamComponentKey.getNamespacePrefix()
,
JRXmlWriter.getXmlWriteHelper()
protected void writeList(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
IOException
protected void writeMap(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
IOException
protected void writeTable(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
IOException
protected void writeGroupCells(JRComponentElement componentElement, List<GroupCell> cells, String name, JRXmlWriter reportWriter) throws IOException
IOException
protected void writeTableCell(JRComponentElement componentElement, Cell cell, String name, JRXmlWriter reportWriter) throws IOException
IOException
public boolean isToWrite(JRComponentElement componentElement, JRXmlWriter reportWriter)
ComponentXmlWriter
Copyright © 2017. All rights reserved.