Class JRXPathExecuterUtils
- java.lang.Object
-
- net.sf.jasperreports.engine.util.xml.JRXPathExecuterUtils
-
public final class JRXPathExecuterUtils extends Object
Helper class used to instantiateXPath executers
. TheXPath executer factory
class name is given by thenet.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
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_XPATH_EXECUTER_FACTORY_NOT_FOUND
static String
PROPERTY_XPATH_EXECUTER_FACTORY
Property that holds theXPath executer factory
class name.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JRXPathExecuter
getXPathExecuter(JasperReportsContext jasperReportsContext)
Produces anXPath executer
instance by means of the factory returned bygetXPathExecuterFactory(JasperReportsContext)
.static JRXPathExecuterFactory
getXPathExecuterFactory(JasperReportsContext jasperReportsContext)
Return anXPath executer factory
instance.
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_XPATH_EXECUTER_FACTORY_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_XPATH_EXECUTER_FACTORY_NOT_FOUND
- See Also:
- Constant Field Values
-
PROPERTY_XPATH_EXECUTER_FACTORY
public static final String PROPERTY_XPATH_EXECUTER_FACTORY
Property that holds theXPath executer factory
class name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getXPathExecuterFactory
public static JRXPathExecuterFactory getXPathExecuterFactory(JasperReportsContext jasperReportsContext) throws JRException
Return anXPath executer factory
instance.- Returns:
- a JRXPathExecuterFactory instance
- Throws:
JRException
- if theXPath factory property
is not defined or the factory cannot be instantiated.
-
getXPathExecuter
public static JRXPathExecuter getXPathExecuter(JasperReportsContext jasperReportsContext) throws JRException
Produces anXPath executer
instance by means of the factory returned bygetXPathExecuterFactory(JasperReportsContext)
.- Returns:
- an JRXPathExecuter instance
- Throws:
JRException
- if theXPath factory property
is not defined or the factory cannot be instantiated.
-
-