public class ComponentsXmlWriter extends Object implements ComponentXmlWriter
ComponentsExtensionsRegistryFactory| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_COMPONENTS_PREFIX |
static String |
PROPERTY_COMPONENTS_VERSION_SUFFIX |
| Constructor and Description |
|---|
ComponentsXmlWriter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getVersion(JRComponentElement componentElement,
JRXmlWriter reportWriter) |
protected boolean |
isBarcode4jName(String name) |
protected boolean |
isNewerVersionOrEqual(JRComponentElement componentElement,
JRXmlWriter reportWriter,
String oldVersion) |
boolean |
isToWrite(JRComponentElement componentElement,
JRXmlWriter reportWriter)
Specifies whether this component should be written out.
|
protected void |
writeBarbecue(JRComponentElement componentElement,
JRXmlWriter reportWriter) |
protected void |
writeExpression(String name,
JRExpression expression,
boolean writeClass,
JRComponentElement componentElement,
JRXmlWriter reportWriter) |
protected void |
writeExpression(String name,
XmlNamespace namespace,
JRExpression expression,
boolean writeClass,
JRComponentElement componentElement,
JRXmlWriter reportWriter) |
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.
|
public static final String PROPERTY_COMPONENTS_PREFIX
public static final String PROPERTY_COMPONENTS_VERSION_SUFFIX
public ComponentsXmlWriter(JasperReportsContext jasperReportsContext)
public void writeToXml(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
ComponentXmlWriterwriteToXml in interface ComponentXmlWritercomponentElement - 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
IOExceptionprotected void writeBarbecue(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
IOExceptionprotected void writeMap(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
IOExceptionprotected void writeTable(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
IOExceptionprotected void writeGroupCells(JRComponentElement componentElement, List<GroupCell> cells, String name, JRXmlWriter reportWriter) throws IOException
IOExceptionprotected void writeTableCell(JRComponentElement componentElement, Cell cell, String name, JRXmlWriter reportWriter) throws IOException
IOExceptionpublic boolean isToWrite(JRComponentElement componentElement, JRXmlWriter reportWriter)
ComponentXmlWriterisToWrite in interface ComponentXmlWriterprotected String getVersion(JRComponentElement componentElement, JRXmlWriter reportWriter)
protected boolean isNewerVersionOrEqual(JRComponentElement componentElement, JRXmlWriter reportWriter, String oldVersion)
protected boolean isBarcode4jName(String name)
protected void writeExpression(String name, JRExpression expression, boolean writeClass, JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
IOExceptionprotected void writeExpression(String name, XmlNamespace namespace, JRExpression expression, boolean writeClass, JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
IOExceptionCopyright © 2012. All Rights Reserved.