public class JaxenXPathExecuter extends java.lang.Object implements JRXPathExecuter
Modifier and Type | Class and Description |
---|---|
protected static class |
JaxenXPathExecuter.NodeListWrapper |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_XPATH_COMPILATION_FAILURE |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_XPATH_SELECTION_FAILURE |
Constructor and Description |
---|
JaxenXPathExecuter() |
Modifier and Type | Method and Description |
---|---|
protected XPath |
getXPath(java.lang.String expression) |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String expression)
Selects a node list by evaluating an XPath expression on a context node.
|
java.lang.Object |
selectObject(org.w3c.dom.Node contextNode,
java.lang.String expression)
Selects an object by evaluating an XPath expression on a context node.
|
public static final java.lang.String EXCEPTION_MESSAGE_KEY_XPATH_COMPILATION_FAILURE
public static final java.lang.String EXCEPTION_MESSAGE_KEY_XPATH_SELECTION_FAILURE
protected XPath getXPath(java.lang.String expression) throws JRException
JRException
public org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode, java.lang.String expression) throws JRException
JRXPathExecuter
selectNodeList
in interface JRXPathExecuter
contextNode
- the context node (a document can also be used)expression
- the XPath expressionJRException
- if the XPath evaluation failedpublic java.lang.Object selectObject(org.w3c.dom.Node contextNode, java.lang.String expression) throws JRException
JRXPathExecuter
java.lang.String
, java.lang.Number
or java.lang.Boolean
.selectObject
in interface JRXPathExecuter
contextNode
- the context node (a document can also be used)expression
- the XPath expressionJRException
- if the XPath evaluation failed© 2001-2014 TIBCO Software Inc. www.jaspersoft.com