net.sf.jasperreports.components
Class ComponentsXmlHandler

java.lang.Object
  extended by 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

Constructor Summary
ComponentsXmlHandler()
           
 
Method Summary
protected  void addListRules(Digester digester)
           
 void configureDigester(Digester digester)
          Configures an XML digester by adding the rules required to parse component XML fragments.
protected  void writeList(ListComponent list, ComponentKey componentKey, 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
 

Constructor Detail

ComponentsXmlHandler

public ComponentsXmlHandler()
Method Detail

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)

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 key
component - the component instance
reportWriter - 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


© 2001-2009 Jaspersoft Corporation www.jaspersoft.com