Module org.eclipse.persistence.core
Class UnmarshalXPathEngine<XML_FIELD extends Field>
java.lang.Object
org.eclipse.persistence.internal.oxm.UnmarshalXPathEngine<XML_FIELD>
INTERNAL:
Purpose: Utility class for finding XML nodes using XPath expressions.
- Since:
- Oracle TopLink 10.1.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UnmarshalXPathEngine
Return theXPathEngine
singleton.selectElementNodes
(Node contextNode, XPathFragment xPathFragment, XMLNamespaceResolver xmlNamespaceResolver) selectNodes
(Node contextNode, List<XML_FIELD> xmlFields, XMLNamespaceResolver xmlNamespaceResolver) selectNodes
(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver) Execute the XPath statement relative to the context node.selectNodes
(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy) selectNodes
(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText) selectNodes
(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText, boolean concatinateTextNodes) selectSingleNode
(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver) selectSingleNode
(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, boolean checkForXsiNil) Execute the XPath statement relative to the context node.
-
Constructor Details
-
UnmarshalXPathEngine
public UnmarshalXPathEngine()The default constructor creates a platform instance
-
-
Method Details
-
getInstance
Return theXPathEngine
singleton. -
selectSingleNode
public Object selectSingleNode(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, boolean checkForXsiNil) throws XMLMarshalException Execute 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 executedxmlNamespaceResolver
- used to resolve namespace prefixes to the corresponding namespace URI- Returns:
- the first node located matching the XPath statement
- Throws:
XMLMarshalException
-
selectSingleNode
public Object selectSingleNode(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver) throws XMLMarshalException - Throws:
XMLMarshalException
-
selectNodes
public NodeList selectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver) throws XMLMarshalException Execute 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 executedxmlNamespaceResolver
- used to resolve namespace prefixes to the corresponding namespace URI- Returns:
- a list of nodes matching the XPath statement
- Throws:
XMLMarshalException
-
selectNodes
public NodeList selectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy) throws XMLMarshalException - Throws:
XMLMarshalException
-
selectNodes
public NodeList selectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText) throws XMLMarshalException - Throws:
XMLMarshalException
-
selectNodes
public NodeList selectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText, boolean concatinateTextNodes) -
selectNodes
public List<XMLEntry> selectNodes(Node contextNode, List<XML_FIELD> xmlFields, XMLNamespaceResolver xmlNamespaceResolver) throws XMLMarshalException - Throws:
XMLMarshalException
-
selectElementNodes
public NodeList selectElementNodes(Node contextNode, XPathFragment xPathFragment, XMLNamespaceResolver xmlNamespaceResolver)
-