public class UnmarshalXPathEngine<XML_FIELD extends Field>
extends java.lang.Object
Purpose: Utility class for finding XML nodes using XPath expressions.
Constructor and Description |
---|
UnmarshalXPathEngine()
The default constructor creates a platform instance
|
Modifier and Type | Method and Description |
---|---|
static UnmarshalXPathEngine |
getInstance()
Return the
XPathEngine singleton. |
org.w3c.dom.NodeList |
selectElementNodes(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.NodeList |
selectNodes(org.w3c.dom.Node contextNode,
XML_FIELD xmlField,
XMLNamespaceResolver xmlNamespaceResolver)
Execute the XPath statement relative to the context node.
|
org.w3c.dom.NodeList |
selectNodes(org.w3c.dom.Node contextNode,
XML_FIELD xmlField,
XMLNamespaceResolver xmlNamespaceResolver,
AbstractNullPolicy nullPolicy) |
org.w3c.dom.NodeList |
selectNodes(org.w3c.dom.Node contextNode,
XML_FIELD xmlField,
XMLNamespaceResolver xmlNamespaceResolver,
AbstractNullPolicy nullPolicy,
boolean omitText) |
org.w3c.dom.NodeList |
selectNodes(org.w3c.dom.Node contextNode,
XML_FIELD xmlField,
XMLNamespaceResolver xmlNamespaceResolver,
AbstractNullPolicy nullPolicy,
boolean omitText,
boolean concatinateTextNodes) |
java.lang.Object |
selectSingleNode(org.w3c.dom.Node contextNode,
XML_FIELD xmlField,
XMLNamespaceResolver xmlNamespaceResolver) |
java.lang.Object |
selectSingleNode(org.w3c.dom.Node contextNode,
XML_FIELD xmlField,
XMLNamespaceResolver xmlNamespaceResolver,
boolean checkForXsiNil)
Execute the XPath statement relative to the context node.
|
public UnmarshalXPathEngine()
public static UnmarshalXPathEngine getInstance()
XPathEngine
singleton.public java.lang.Object selectSingleNode(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, boolean checkForXsiNil) throws XMLMarshalException
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 URIXMLPlatformException
XMLMarshalException
public java.lang.Object selectSingleNode(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver) throws XMLMarshalException
XMLMarshalException
public org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver) throws XMLMarshalException
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 URIXMLPlatformException
XMLMarshalException
public org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy) throws XMLMarshalException
XMLMarshalException
public org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText) throws XMLMarshalException
XMLMarshalException
public org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode, XML_FIELD xmlField, XMLNamespaceResolver xmlNamespaceResolver, AbstractNullPolicy nullPolicy, boolean omitText, boolean concatinateTextNodes)
public java.util.List<XMLEntry> selectNodes(org.w3c.dom.Node contextNode, java.util.List<XML_FIELD> xmlFields, XMLNamespaceResolver xmlNamespaceResolver) throws XMLMarshalException
XMLMarshalException
public org.w3c.dom.NodeList selectElementNodes(org.w3c.dom.Node contextNode, XPathFragment xPathFragment, XMLNamespaceResolver xmlNamespaceResolver)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference