Class XmlValueHandlerUtils


  • public class XmlValueHandlerUtils
    extends java.lang.Object
    Class the provides access to XML value handlers.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Method Detail

      • instance

        public static XmlValueHandlerUtils instance()
        Returns the singleton instance.
        Returns:
        the singleton instance
      • getHandlers

        public java.util.List<XmlValueHandler> getHandlers()
        Returns the list of XML value handlers.
        Returns:
        the list of XML value handlers
      • writeToXml

        public boolean writeToXml​(java.lang.Object value,
                                  JRXmlExporter exporter)
                           throws java.io.IOException
        Outputs the XML representation of a value if the value is supported by any handler.
        Parameters:
        value - the value
        exporter - the exporter
        Returns:
        true iff a handler that supports the value was found
        Throws:
        java.io.IOException
        See Also:
        XmlValueHandler.writeToXml(Object, JRXmlExporter)