Package net.sf.jasperreports.engine.xml
Class XmlValueHandlerUtils
- java.lang.Object
-
- net.sf.jasperreports.engine.xml.XmlValueHandlerUtils
-
public class XmlValueHandlerUtils extends java.lang.ObjectClass the provides access toXML value handlers.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<XmlValueHandler>getHandlers()Returns the list of XML value handlers.static XmlValueHandlerUtilsinstance()Returns the singleton instance.booleanwriteToXml(java.lang.Object value, JRXmlExporter exporter)Outputs the XML representation of a value if the value is supported by any handler.
-
-
-
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.IOExceptionOutputs the XML representation of a value if the value is supported by any handler.- Parameters:
value- the valueexporter- the exporter- Returns:
trueiff a handler that supports the value was found- Throws:
java.io.IOException- See Also:
XmlValueHandler.writeToXml(Object, JRXmlExporter)
-
-