net.sf.jasperreports.engine.xml

## Class XmlValueHandlerUtils

- java.lang.Object
- - net.sf.jasperreports.engine.xml.XmlValueHandlerUtils

-     public class XmlValueHandlerUtils
      extends java.lang.Object

  Class the provides access to `XML value handlers`.
  Version:
    $Id: XmlValueHandlerUtils.java 6863 2014-02-06 09:59:27Z teodord $
  Author:
    Lucian Chirita (lucianc@users.sourceforge.net)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<XmlValueHandler>` | `getHandlers()` Returns the list of XML value handlers.
    `static XmlValueHandlerUtils` | `instance()` Returns the singleton instance.
    `boolean` | `writeToXml(java.lang.Object value, JRXmlExporter exporter)` Outputs the XML representation of a value if the value is supported by any handler.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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)`

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com