Class UnmarshalXPathEngine<XML_FIELD extends Field>
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.UnmarshalXPathEngine<XML_FIELD>
-
public class UnmarshalXPathEngine<XML_FIELD extends Field> extends java.lang.ObjectINTERNAL:Purpose: Utility class for finding XML nodes using XPath expressions.
- Since:
- Oracle TopLink 10.1.3
-
-
Constructor Summary
Constructors Constructor Description UnmarshalXPathEngine()The default constructor creates a platform instance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnmarshalXPathEnginegetInstance()Return theXPathEnginesingleton.org.w3c.dom.NodeListselectElementNodes(org.w3c.dom.Node contextNode, XPathFragment xPathFragment, XMLNamespaceResolver xmlNamespaceResolver)java.util.List<XMLEntry>selectNodes(org.w3c.dom.Node contextNode, java.util.List<XML_FIELD> xmlFields, XMLNamespaceResolver xmlNamespaceResolver)org.w3c.dom.NodeListselectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver)Execute the XPath statement relative to the context node.org.w3c.dom.NodeListselectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy)org.w3c.dom.NodeListselectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText)org.w3c.dom.NodeListselectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText, boolean concatinateTextNodes)java.lang.ObjectselectSingleNode(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver)java.lang.ObjectselectSingleNode(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, boolean checkForXsiNil)Execute the XPath statement relative to the context node.
-
-
-
Method Detail
-
getInstance
public static UnmarshalXPathEngine getInstance()
Return theXPathEnginesingleton.
-
selectSingleNode
public java.lang.Object selectSingleNode(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, boolean checkForXsiNil) throws XMLMarshalExceptionExecute the XPath statement relative to the context node.- Parameters:
contextNode- the node relative to which the XPath statement will be executedxmlField- the field containing the XPath statement to be executednamespaceResolver- used to resolve namespace prefixes to the corresponding namespace URI- Returns:
- the first node located matching the XPath statement
- Throws:
XMLPlatformExceptionXMLMarshalException
-
selectSingleNode
public java.lang.Object selectSingleNode(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver) throws XMLMarshalException- Throws:
XMLMarshalException
-
selectNodes
public org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver) throws XMLMarshalExceptionExecute the XPath statement relative to the context node.- Parameters:
contextNode- the node relative to which the XPath statement will be executedxmlField- the field containing the XPath statement to be executednamespaceResolver- used to resolve namespace prefixes to the corresponding namespace URI- Returns:
- a list of nodes matching the XPath statement
- Throws:
XMLPlatformExceptionXMLMarshalException
-
selectNodes
public org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy) throws XMLMarshalException- Throws:
XMLMarshalException
-
selectNodes
public org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText) throws XMLMarshalException- Throws:
XMLMarshalException
-
selectNodes
public org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText, boolean concatinateTextNodes)
-
selectNodes
public java.util.List<XMLEntry> selectNodes(org.w3c.dom.Node contextNode, java.util.List<XML_FIELD> xmlFields, XMLNamespaceResolver xmlNamespaceResolver) throws XMLMarshalException
- Throws:
XMLMarshalException
-
selectElementNodes
public org.w3c.dom.NodeList selectElementNodes(org.w3c.dom.Node contextNode, XPathFragment xPathFragment, XMLNamespaceResolver xmlNamespaceResolver)
-
-