Class XPathEngine
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.deployment.xml.parser.XPathEngine
-
public class XPathEngine extends Object
INTERNAL Utility class for finding XML nodes using XPath expressions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XPathEngine
getInstance()
Return theXPathEngine
singleton.NodeList
selectNodes(Node contextNode, String[] xPathFragments)
Execute the XPath statement relative to the context node.Node
selectSingleNode(Node contextNode, String[] xPathFragments)
Execute the XPath statement relative to the context node.
-
-
-
Method Detail
-
getInstance
public static XPathEngine getInstance()
Return theXPathEngine
singleton.
-
selectSingleNode
public Node selectSingleNode(Node contextNode, String[] xPathFragments)
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
- Throws:
XMLPlatformException
-
selectNodes
public NodeList selectNodes(Node contextNode, String[] xPathFragments)
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
- Throws:
XMLPlatformException
-
-