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 UnmarshalXPathEngine
getInstance()
Return theXPathEngine
singleton.NodeList
selectElementNodes(Node contextNode, XPathFragment xPathFragment, XMLNamespaceResolver xmlNamespaceResolver)
List<XMLEntry>
selectNodes(Node contextNode, List<XML_FIELD> xmlFields, XMLNamespaceResolver xmlNamespaceResolver)
NodeList
selectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver)
Execute the XPath statement relative to the context node.NodeList
selectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy)
NodeList
selectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText)
NodeList
selectNodes(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText, boolean concatinateTextNodes)
Object
selectSingleNode(Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver)
Object
selectSingleNode(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 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:
XMLPlatformException
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:
XMLPlatformException
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)
-
-