Class JRXPathExecuterUtils
java.lang.Object
net.sf.jasperreports.engine.util.xml.JRXPathExecuterUtils
Helper class used to instantiate
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 Jaxen
are used.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringProperty that holds theXPath executer factoryclass name. -
Method Summary
Modifier and TypeMethodDescriptionstatic JRXPathExecutergetXPathExecuter(JasperReportsContext jasperReportsContext) Produces anXPath executerinstance by means of the factory returned bygetXPathExecuterFactory(JasperReportsContext).static JRXPathExecuterFactorygetXPathExecuterFactory(JasperReportsContext jasperReportsContext) Return anXPath executer factoryinstance.
-
Field Details
-
EXCEPTION_MESSAGE_KEY_XPATH_EXECUTER_FACTORY_NOT_FOUND
- See Also:
-
PROPERTY_XPATH_EXECUTER_FACTORY
Property that holds theXPath executer factoryclass name.- See Also:
-
-
Method Details
-
getXPathExecuterFactory
public static JRXPathExecuterFactory getXPathExecuterFactory(JasperReportsContext jasperReportsContext) throws JRException Return anXPath executer factoryinstance.- Returns:
- a JRXPathExecuterFactory instance
- Throws:
JRException- if theXPath factory propertyis not defined or the factory cannot be instantiated.
-
getXPathExecuter
public static JRXPathExecuter getXPathExecuter(JasperReportsContext jasperReportsContext) throws JRException Produces anXPath executerinstance by means of the factory returned bygetXPathExecuterFactory(JasperReportsContext).- Returns:
- an JRXPathExecuter instance
- Throws:
JRException- if theXPath factory propertyis not defined or the factory cannot be instantiated.
-