Module org.eclipse.persistence.core
Class UnmarshalXPathEngine<XML_FIELD extends Field>
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.UnmarshalXPathEngine<XML_FIELD>
-
-
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.NodeListselectElementNodes(Node contextNode, XPathFragment xPathFragment, XMLNamespaceResolver xmlNamespaceResolver)List<XMLEntry>selectNodes(Node contextNode, List<XML_FIELD> xmlFields, XMLNamespaceResolver xmlNamespaceResolver)NodeListselectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver)Execute the XPath statement relative to the context node.NodeListselectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy)NodeListselectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText)NodeListselectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText, boolean concatinateTextNodes)ObjectselectSingleNode(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver)ObjectselectSingleNode(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 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)
-
-