public abstract class JRXmlBaseWriter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_REPORT_VERSION
Property that specifies the JasperReports version associated with this report.
|
protected String |
version |
protected VersionComparator |
versionComparator |
protected JRXmlWriteHelper |
writer |
Constructor and Description |
---|
JRXmlBaseWriter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isNewerVersionOrEqual(String oldVersion) |
protected boolean |
isOlderVersionThan(String version) |
protected abstract boolean |
toWriteConditionalStyles()
Decides whether conditional styles are to be written.
|
protected void |
useWriter(JRXmlWriteHelper writer,
String version)
Sets the XML write helper.
|
void |
writeBox(JRLineBox box) |
void |
writeBox(JRLineBox box,
XmlNamespace namespace) |
protected void |
writeConditionalStyle(JRConditionalStyle style)
Writes a conditional style.
|
protected void |
writeExpression(String name,
JRExpression expression,
boolean writeClass) |
void |
writeParagraph(JRParagraph paragraph) |
void |
writeParagraph(JRParagraph paragraph,
XmlNamespace namespace) |
protected void |
writePen(JRPen pen) |
protected void |
writeStyle(JRStyle style)
Writes a style.
|
void |
writeStyleReferenceAttr(JRStyleContainer styleContainer) |
void |
writeTabStop(TabStop tabStop) |
public static final String PROPERTY_REPORT_VERSION
JRXmlWriter
,
Constant Field Valuesprotected JRXmlWriteHelper writer
protected String version
protected VersionComparator versionComparator
protected void useWriter(JRXmlWriteHelper writer, String version)
writer
- the XML write helperprotected void writeStyle(JRStyle style) throws IOException
style
- the style to write.IOException
public void writeStyleReferenceAttr(JRStyleContainer styleContainer)
protected abstract boolean toWriteConditionalStyles()
protected void writeConditionalStyle(JRConditionalStyle style) throws IOException
style
- the conditional styleIOException
protected void writePen(JRPen pen) throws IOException
IOException
public void writeBox(JRLineBox box) throws IOException
IOException
public void writeBox(JRLineBox box, XmlNamespace namespace) throws IOException
IOException
public void writeParagraph(JRParagraph paragraph) throws IOException
IOException
public void writeParagraph(JRParagraph paragraph, XmlNamespace namespace) throws IOException
IOException
public void writeTabStop(TabStop tabStop) throws IOException
IOException
protected boolean isNewerVersionOrEqual(String oldVersion)
protected boolean isOlderVersionThan(String version)
protected void writeExpression(String name, JRExpression expression, boolean writeClass) throws IOException
IOException
Copyright © 2017. All rights reserved.