Interface XmlValueHandler


public interface XmlValueHandler
A handler that deals with arbitrary values being exported to XML and parsed back to JasperPrint objects.
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the namespace of the elements generated on XML export.
    boolean
    writeToXml(Object value, JRXmlExporter exporter)
    Outputs the XML representation of a value if the value is supported by this handler.
  • Method Details

    • getNamespace

      XmlHandlerNamespace getNamespace()
      Returns the namespace of the elements generated on XML export.
      Returns:
      the namespace of the elements generated on XML export
    • writeToXml

      boolean writeToXml(Object value, JRXmlExporter exporter) throws IOException
      Outputs the XML representation of a value if the value is supported by this handler.
      Parameters:
      value - the value
      exporter - the XML exporter
      Returns:
      true iff the value is supported by this handler
      Throws:
      IOException