public class JaxenNsAwareXPathExecuter extends JaxenXPathExecuter
JaxenXPathExecuter.NodeListWrapperEXCEPTION_MESSAGE_KEY_XPATH_COMPILATION_FAILURE, EXCEPTION_MESSAGE_KEY_XPATH_SELECTION_FAILURE| Constructor and Description |
|---|
JaxenNsAwareXPathExecuter()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNamespaceContext(Node contextNode,
org.jaxen.XPath xPath,
String expression) |
protected boolean |
containsPrefixes(String expression) |
boolean |
getDetectXmlNamespaces() |
Map<String,String> |
getXmlNamespaceMap() |
protected org.jaxen.XPath |
getXPath(Node contextNode,
String expression) |
NodeList |
selectNodeList(Node contextNode,
String expression)
Selects a node list by evaluating an XPath expression on a context node.
|
Object |
selectObject(Node contextNode,
String expression)
Selects an object by evaluating an XPath expression on a context node.
|
void |
setDetectXmlNamespaces(boolean detectXmlNamespaces) |
void |
setXmlNamespaceMap(Map<String,String> xmlNamespaceMap) |
getXPathpublic JaxenNsAwareXPathExecuter()
public void setXmlNamespaceMap(Map<String,String> xmlNamespaceMap) throws JRException
JRExceptionpublic boolean getDetectXmlNamespaces()
public void setDetectXmlNamespaces(boolean detectXmlNamespaces)
protected org.jaxen.XPath getXPath(Node contextNode, String expression) throws JRException
JRExceptionpublic NodeList selectNodeList(Node contextNode, String expression) throws JRException
JRXPathExecuterselectNodeList in interface JRXPathExecuterselectNodeList in class JaxenXPathExecutercontextNode - the context node (a document can also be used)expression - the XPath expressionJRException - if the XPath evaluation failedpublic Object selectObject(Node contextNode, String expression) throws JRException
JRXPathExecuterjava.lang.String, java.lang.Number or java.lang.Boolean.selectObject in interface JRXPathExecuterselectObject in class JaxenXPathExecutercontextNode - the context node (a document can also be used)expression - the XPath expressionJRException - if the XPath evaluation failedprotected boolean containsPrefixes(String expression)
protected void addNamespaceContext(Node contextNode, org.jaxen.XPath xPath, String expression) throws JRException
JRExceptionCopyright © 2017. All rights reserved.