net.sf.jasperreports.components
Class ComponentsXmlHandler
java.lang.Object
net.sf.jasperreports.components.ComponentsXmlHandler
- All Implemented Interfaces:
- ComponentXmlWriter, XmlDigesterConfigurer
public class ComponentsXmlHandler
- extends java.lang.Object
- implements XmlDigesterConfigurer, ComponentXmlWriter
XML handler (digester + writer) for built-in component implementations.
- Version:
- $Id: ComponentsXmlHandler.java 4595 2011-09-08 15:55:10Z teodord $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
ComponentsExtensionsRegistryFactory
Method Summary |
protected
|
addExpressionRules(Digester digester,
java.lang.String expressionPattern,
java.lang.Class<T> factoryClass,
java.lang.String setterMethod,
boolean jrNamespace)
|
protected void |
addListRules(Digester digester)
|
protected void |
addMapRules(Digester digester)
|
protected void |
addTableCellRules(Digester digester,
java.lang.String pattern,
java.lang.String setNextMethod)
|
protected void |
addTableGroupCellRules(Digester digester,
java.lang.String pattern,
java.lang.String setNextMethod)
|
protected void |
addTableRules(Digester digester)
|
void |
configureDigester(Digester digester)
Configures an XML digester by adding the rules required to parse
component XML fragments. |
protected void |
writeGroupCells(java.util.List<GroupCell> cells,
java.lang.String name,
JRXmlWriter reportWriter)
|
protected void |
writeList(ListComponent list,
ComponentKey componentKey,
JRXmlWriter reportWriter)
|
protected void |
writeMap(MapComponent map,
ComponentKey componentKey,
JRXmlWriter reportWriter)
|
protected void |
writeTable(TableComponent table,
ComponentKey componentKey,
JRXmlWriter reportWriter)
|
protected void |
writeTableCell(Cell cell,
java.lang.String name,
JRXmlWriter reportWriter)
|
void |
writeToXml(ComponentKey componentKey,
Component component,
JRXmlWriter reportWriter)
Outputs the XML representation of a component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentsXmlHandler
public ComponentsXmlHandler()
configureDigester
public void configureDigester(Digester digester)
- Description copied from interface:
XmlDigesterConfigurer
- Configures an XML digester by adding the rules required to parse
component XML fragments.
- Specified by:
configureDigester
in interface XmlDigesterConfigurer
- Parameters:
digester
- the digester to configure
addListRules
protected void addListRules(Digester digester)
addMapRules
protected void addMapRules(Digester digester)
addTableRules
protected void addTableRules(Digester digester)
addTableCellRules
protected void addTableCellRules(Digester digester,
java.lang.String pattern,
java.lang.String setNextMethod)
addTableGroupCellRules
protected void addTableGroupCellRules(Digester digester,
java.lang.String pattern,
java.lang.String setNextMethod)
addExpressionRules
protected <T> void addExpressionRules(Digester digester,
java.lang.String expressionPattern,
java.lang.Class<T> factoryClass,
java.lang.String setterMethod,
boolean jrNamespace)
writeToXml
public void writeToXml(ComponentKey componentKey,
Component component,
JRXmlWriter reportWriter)
throws java.io.IOException
- Description copied from interface:
ComponentXmlWriter
- Outputs the XML representation of a component.
- Specified by:
writeToXml
in interface ComponentXmlWriter
- Parameters:
componentKey
- the component type keycomponent
- the component instancereportWriter
- the report writer to which output is to be written
- Throws:
java.io.IOException
- exceptions produced while writing to the
output stream- See Also:
ComponentKey.getNamespacePrefix()
,
JRXmlWriter.getXmlWriteHelper()
writeList
protected void writeList(ListComponent list,
ComponentKey componentKey,
JRXmlWriter reportWriter)
throws java.io.IOException
- Throws:
java.io.IOException
writeMap
protected void writeMap(MapComponent map,
ComponentKey componentKey,
JRXmlWriter reportWriter)
throws java.io.IOException
- Throws:
java.io.IOException
writeTable
protected void writeTable(TableComponent table,
ComponentKey componentKey,
JRXmlWriter reportWriter)
throws java.io.IOException
- Throws:
java.io.IOException
writeGroupCells
protected void writeGroupCells(java.util.List<GroupCell> cells,
java.lang.String name,
JRXmlWriter reportWriter)
throws java.io.IOException
- Throws:
java.io.IOException
writeTableCell
protected void writeTableCell(Cell cell,
java.lang.String name,
JRXmlWriter reportWriter)
throws java.io.IOException
- Throws:
java.io.IOException
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com