Class XPathEngine
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.deployment.xml.parser.XPathEngine
-
public class XPathEngine extends java.lang.ObjectINTERNAL 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 XPathEnginegetInstance()Return theXPathEnginesingleton.org.w3c.dom.NodeListselectNodes(org.w3c.dom.Node contextNode, java.lang.String[] xPathFragments)Execute the XPath statement relative to the context node.org.w3c.dom.NodeselectSingleNode(org.w3c.dom.Node contextNode, java.lang.String[] xPathFragments)Execute the XPath statement relative to the context node.
-
-
-
Method Detail
-
getInstance
public static XPathEngine getInstance()
Return theXPathEnginesingleton.
-
selectSingleNode
public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode, java.lang.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:
org.eclipse.persistence.platform.xml.XMLPlatformException
-
selectNodes
public org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode, java.lang.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:
org.eclipse.persistence.platform.xml.XMLPlatformException
-
-