Module org.eclipse.persistence.jpa
Class XPathEngine
java.lang.Object
org.eclipse.persistence.internal.jpa.deployment.xml.parser.XPathEngine
INTERNAL
Utility class for finding XML nodes using XPath expressions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic XPathEngine
Return theXPathEngine
singleton.selectNodes
(Node contextNode, String[] xPathFragments) Execute the XPath statement relative to the context node.selectSingleNode
(Node contextNode, String[] xPathFragments) Execute the XPath statement relative to the context node.
-
Method Details
-
getInstance
Return theXPathEngine
singleton. -
selectSingleNode
Execute the XPath statement relative to the context node.- Parameters:
contextNode
- the node relative to which the XPath statement will be executed- Returns:
- the first node located matching the XPath statement
-
selectNodes
Execute the XPath statement relative to the context node.- Parameters:
contextNode
- the node relative to which the XPath statement will be executed- Returns:
- a list of nodes matching the XPath statement
-