Package net.sf.jasperreports.components
Class ComponentsXmlWriter
java.lang.Object
net.sf.jasperreports.components.AbstractComponentXmlWriter
net.sf.jasperreports.components.ComponentsXmlWriter
- All Implemented Interfaces:
ComponentXmlWriter
XML writer for built-in component implementations.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
Fields inherited from class net.sf.jasperreports.components.AbstractComponentXmlWriter
jasperReportsContext, PROPERTY_COMPONENTS_PREFIX, PROPERTY_COMPONENTS_VERSION_SUFFIX, versionComparator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisBarcode4jName(String name) booleanisToWrite(JRComponentElement componentElement, JRXmlWriter reportWriter) Specifies whether this component should be written out.protected voidwriteBarbecue(JRComponentElement componentElement, JRXmlWriter reportWriter) protected voidwriteGroupCells(JRComponentElement componentElement, List<GroupCell> cells, String name, JRXmlWriter reportWriter) protected voidwriteGroupRows(JRComponentElement componentElement, List<GroupRow> rows, String name, JRXmlWriter reportWriter) protected voidwriteList(JRComponentElement componentElement, JRXmlWriter reportWriter) protected voidwriteMap(JRComponentElement componentElement, JRXmlWriter reportWriter) protected voidwriteTable(JRComponentElement componentElement, JRXmlWriter reportWriter) protected voidwriteTableBaseCell(JRComponentElement componentElement, BaseCell cell, String name, JRXmlWriter reportWriter) protected voidwriteTableCell(JRComponentElement componentElement, Cell cell, String name, JRXmlWriter reportWriter) protected voidwriteTableRow(JRComponentElement componentElement, Row row, String name, JRXmlWriter reportWriter) voidwriteToXml(JRComponentElement componentElement, JRXmlWriter reportWriter) Outputs the XML representation of a component.Methods inherited from class net.sf.jasperreports.components.AbstractComponentXmlWriter
getVersion, isNewerVersionOrEqual, isOlderVersionThan, writeExpression, writeExpression
-
Constructor Details
-
ComponentsXmlWriter
-
-
Method Details
-
writeToXml
public void writeToXml(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException Description copied from interface:ComponentXmlWriterOutputs the XML representation of a component.- Parameters:
componentElement- the component elementreportWriter- the report writer to which output is to be written- Throws:
IOException- exceptions produced while writing to the output stream- See Also:
-
writeList
protected void writeList(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException - Throws:
IOException
-
writeBarbecue
protected void writeBarbecue(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException - Throws:
IOException
-
writeMap
protected void writeMap(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException - Throws:
IOException
-
writeTable
protected void writeTable(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException - Throws:
IOException
-
writeTableBaseCell
protected void writeTableBaseCell(JRComponentElement componentElement, BaseCell cell, String name, JRXmlWriter reportWriter) throws IOException - Throws:
IOException
-
writeGroupCells
protected void writeGroupCells(JRComponentElement componentElement, List<GroupCell> cells, String name, JRXmlWriter reportWriter) throws IOException - Throws:
IOException
-
writeTableCell
protected void writeTableCell(JRComponentElement componentElement, Cell cell, String name, JRXmlWriter reportWriter) throws IOException - Throws:
IOException
-
writeGroupRows
protected void writeGroupRows(JRComponentElement componentElement, List<GroupRow> rows, String name, JRXmlWriter reportWriter) throws IOException - Throws:
IOException
-
writeTableRow
protected void writeTableRow(JRComponentElement componentElement, Row row, String name, JRXmlWriter reportWriter) throws IOException - Throws:
IOException
-
isToWrite
Description copied from interface:ComponentXmlWriterSpecifies whether this component should be written out. This is useful for versioning. -
isBarcode4jName
-