public final class JRXPathExecuterUtils extends Object
XPath executers.
The XPath executer factory class name is given by the
net.sf.jasperreports.xpath.executer.factory property.
The class should have a public default constructor so that it can be instantiated via reflection.
By default, XPath executers based on Apache Xalan
are used.| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE_KEY_XPATH_EXECUTER_FACTORY_NOT_FOUND |
static String |
PROPERTY_XPATH_EXECUTER_FACTORY
Property that holds the
XPath executer factory class name. |
| Modifier and Type | Method and Description |
|---|---|
static JRXPathExecuter |
getXPathExecuter(JasperReportsContext jasperReportsContext)
Produces an
XPath executer instance by means of the factory
returned by getXPathExecuterFactory(JasperReportsContext). |
static JRXPathExecuterFactory |
getXPathExecuterFactory(JasperReportsContext jasperReportsContext)
Return an
XPath executer factory instance. |
public static final String EXCEPTION_MESSAGE_KEY_XPATH_EXECUTER_FACTORY_NOT_FOUND
public static final String PROPERTY_XPATH_EXECUTER_FACTORY
XPath executer factory class name.public static JRXPathExecuterFactory getXPathExecuterFactory(JasperReportsContext jasperReportsContext) throws JRException
XPath executer factory instance.JRException - if the XPath factory property is not defined
or the factory cannot be instantiated.public static JRXPathExecuter getXPathExecuter(JasperReportsContext jasperReportsContext) throws JRException
XPath executer instance by means of the factory
returned by getXPathExecuterFactory(JasperReportsContext).JRException - if the XPath factory property is not defined
or the factory cannot be instantiated.Copyright © 2017. All rights reserved.