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 factoryclass name is given by thenet.sf.jasperreports.xpath.executer.factoryproperty. The class should have a public default constructor so that it can be instantiated via reflection. By default,XPath executersbased on Jaxen are used.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCEPTION_MESSAGE_KEY_XPATH_EXECUTER_FACTORY_NOT_FOUNDstatic StringPROPERTY_XPATH_EXECUTER_FACTORYProperty that holds theXPath executer factoryclass name.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JRXPathExecutergetXPathExecuter(JasperReportsContext jasperReportsContext)Produces anXPath executerinstance by means of the factory returned bygetXPathExecuterFactory(JasperReportsContext).static JRXPathExecuterFactorygetXPathExecuterFactory(JasperReportsContext jasperReportsContext)Return anXPath executer factoryinstance.
-
-
-
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 factoryclass name.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-