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 3138 2009-10-22 15:40:22Z lucianc $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
ComponentsExtensionsRegistryFactory
| 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(org.apache.commons.digester.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(org.apache.commons.digester.Digester digester)
addBarbecueRules
protected void addBarbecueRules(org.apache.commons.digester.Digester digester)
addBarcode4jRules
protected void addBarcode4jRules(org.apache.commons.digester.Digester digester)
addBaseBarcode4jRules
protected void addBaseBarcode4jRules(org.apache.commons.digester.Digester digester,
java.lang.String barcodePattern,
java.lang.Class barcodeComponentClass)
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
writeBarbecue
protected void writeBarbecue(BarbecueComponent barcode,
ComponentKey componentKey,
JRXmlWriter reportWriter)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010. All Rights Reserved.