Xalan-C++ API Reference
1.12.0
|
#include <xalanc/XPath/XPathEvaluator.hpp>
Public Member Functions | |
XPathEvaluator (MemoryManager &theManager XALAN_DEFAULT_MEMMGR) | |
~XPathEvaluator () | |
XalanNode * | selectSingleNode (DOMSupport &domSupport, XalanNode *contextNode, const XalanDOMChar *xpathString, const XalanElement *namespaceNode=0) |
Evaluate the supplied XPath expression, within the given context. More... | |
XalanNode * | selectSingleNode (DOMSupport &domSupport, XalanNode *contextNode, const XalanDOMChar *xpathString, const PrefixResolver &prefixResolver) |
Evaluate the supplied XPath expression, within the given context. More... | |
XalanNode * | selectSingleNode (DOMSupport &domSupport, XalanNode *contextNode, const XPath &xpath, const XalanElement *namespaceNode=0) |
Evaluate the supplied XPath, within the given context. More... | |
XalanNode * | selectSingleNode (DOMSupport &domSupport, XalanNode *contextNode, const XPath &xpath, const PrefixResolver &prefixResolver) |
Evaluate the supplied XPath, within the given context. More... | |
NodeRefList & | selectNodeList (NodeRefList &result, DOMSupport &domSupport, XalanNode *contextNode, const XalanDOMChar *xpathString, const XalanElement *namespaceNode=0) |
Evaluate the supplied XPath expression, within the given context. More... | |
NodeRefList & | selectNodeList (NodeRefList &result, DOMSupport &domSupport, XalanNode *contextNode, const XalanDOMChar *xpathString, const PrefixResolver &prefixResolver) |
Evaluate the supplied XPath expression, within the given context. More... | |
NodeRefList & | selectNodeList (NodeRefList &result, DOMSupport &domSupport, XalanNode *contextNode, const XPath &xpath, const XalanElement *namespaceNode=0) |
Evaluate the supplied XPath, within the given context. More... | |
NodeRefList & | selectNodeList (NodeRefList &result, DOMSupport &domSupport, XalanNode *contextNode, const XPath &xpath, const PrefixResolver &prefixResolver) |
Evaluate the supplied XPath, within the given context. More... | |
XObjectPtr | evaluate (DOMSupport &domSupport, XalanNode *contextNode, const XalanDOMChar *xpathString, const XalanElement *namespaceNode=0) |
Evaluate the supplied XPath expression, within the given context. More... | |
XObjectPtr | evaluate (DOMSupport &domSupport, XalanNode *contextNode, const XalanDOMChar *xpathString, const PrefixResolver &prefixResolver) |
Evaluate the supplied XPath expression, within the given context. More... | |
XObjectPtr | evaluate (DOMSupport &domSupport, XalanNode *contextNode, const XPath &xpath, const XalanElement *namespaceNode=0) |
Evaluate the supplied XPath expression, within the given context. More... | |
XObjectPtr | evaluate (DOMSupport &domSupport, XalanNode *contextNode, const XPath &xpath, const PrefixResolver &prefixResolver) |
Evaluate the supplied XPath expression, within the given context. More... | |
XPath * | createXPath (const XalanDOMChar *xpathString) |
Compile an XPath expression into an object which can be used multiple times. More... | |
XPath * | createXPath (const XalanDOMChar *xpathString, DOMSupport &domSupport, const XalanElement *namespaceNode) |
Compile an XPath expression into an object which can be used multiple times. More... | |
XPath * | createXPath (const XalanDOMChar *xpathString, const PrefixResolver &prefixResolver) |
Compile an XPath expression into an object which can be used multiple times. More... | |
bool | destroyXPath (XPath *theXPath) |
Destory a compiled XPath instance. More... | |
XPathExecutionContext & | getExecutionContext () |
Static Public Member Functions | |
static void | initialize (MemoryManager &theManager XALAN_DEFAULT_MEMMGR) |
static void | terminate () |
Definition at line 69 of file XPathEvaluator.hpp.
xalanc::XPathEvaluator::XPathEvaluator | ( | MemoryManager &theManager | XALAN_DEFAULT_MEMMGR | ) |
xalanc::XPathEvaluator::~XPathEvaluator | ( | ) |
XPath* xalanc::XPathEvaluator::createXPath | ( | const XalanDOMChar * | xpathString | ) |
Compile an XPath expression into an object which can be used multiple times.
Call destroyXPath() when finished with the instance. Otherwise, the object will be destroyed when the XPathEvaluator instance goes out of scope. Since no PrefixResolver is supplied, the XPath expression may not contain any namespace prefixes.
xpathString | The XPath expression to evaluate |
XPath* xalanc::XPathEvaluator::createXPath | ( | const XalanDOMChar * | xpathString, |
const PrefixResolver & | prefixResolver | ||
) |
Compile an XPath expression into an object which can be used multiple times.
Call destroyXPath() when finished with the instance. Otherwise, the object will be destroyed when the XPathEvaluator instance goes out of scope.
xpathString | The XPath expression to evaluate |
prefixResolver | A prefix resolver instance to use for namespace prefix resolution. |
XPath* xalanc::XPathEvaluator::createXPath | ( | const XalanDOMChar * | xpathString, |
DOMSupport & | domSupport, | ||
const XalanElement * | namespaceNode | ||
) |
Compile an XPath expression into an object which can be used multiple times.
Call destroyXPath() when finished with the instance. Otherwise, the object will be destroyed when the XPathEvaluator instance goes out of scope.
xpathString | The XPath expression to evaluate |
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
namespaceNode | A node to use for namespace prefix resolution. |
bool xalanc::XPathEvaluator::destroyXPath | ( | XPath * | theXPath | ) |
Destory a compiled XPath instance.
The instance must have been created using createXPath().
theXPath | The XPath instance to destroy |
XObjectPtr xalanc::XPathEvaluator::evaluate | ( | DOMSupport & | domSupport, |
XalanNode * | contextNode, | ||
const XalanDOMChar * | xpathString, | ||
const PrefixResolver & | prefixResolver | ||
) |
Evaluate the supplied XPath expression, within the given context.
The result is returned as a generalized object. The object will be destroyed when the user's copy of the returned XObjectPtr goes out of scope, or when the XPathEvaluator goes out of scope or another expression is evaluated.
The user's XObjectPtr copy must no longer be in scope when the XPathEvaluator instance goes out of scope, or another expression is evaluated.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpathString | The XPath expression to evaluate |
prefixResolver | A prefix resolver instance to use for namespace prefix resolution. |
XObjectPtr xalanc::XPathEvaluator::evaluate | ( | DOMSupport & | domSupport, |
XalanNode * | contextNode, | ||
const XalanDOMChar * | xpathString, | ||
const XalanElement * | namespaceNode = 0 |
||
) |
Evaluate the supplied XPath expression, within the given context.
The result is returned as a generalized object. The object will be destroyed when the user's copy of the returned XObjectPtr goes out of scope, or when the XPathEvaluator goes out of scope or another expression is evaluated.
The user's XObjectPtr copy must no longer be in scope when the XPathEvaluator instance goes out of scope, or another expression is evaluated.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpathString | The XPath expression to evaluate |
namespaceNode | A node to use for namespace prefix resolution. |
XObjectPtr xalanc::XPathEvaluator::evaluate | ( | DOMSupport & | domSupport, |
XalanNode * | contextNode, | ||
const XPath & | xpath, | ||
const PrefixResolver & | prefixResolver | ||
) |
Evaluate the supplied XPath expression, within the given context.
The result is returned as a generalized object. The object will be destroyed when the user's copy of the returned XObjectPtr goes out of scope, or when the XPathEvaluator goes out of scope or another expression is evaluated.
The user's XObjectPtr copy must no longer be in scope when the XPathEvaluator instance goes out of scope, or another expression is evaluated.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpath | A reference to a compiled XPath expression. |
prefixResolver | A prefix resolver instance to use for namespace prefix resolution. |
XObjectPtr xalanc::XPathEvaluator::evaluate | ( | DOMSupport & | domSupport, |
XalanNode * | contextNode, | ||
const XPath & | xpath, | ||
const XalanElement * | namespaceNode = 0 |
||
) |
Evaluate the supplied XPath expression, within the given context.
The result is returned as a generalized object. The object will be destroyed when the user's copy of the returned XObjectPtr goes out of scope, or when the XPathEvaluator goes out of scope or another expression is evaluated.
The user's XObjectPtr copy must no longer be in scope when the XPathEvaluator instance goes out of scope, or another expression is evaluated.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpath | A reference to a compiled XPath expression. |
namespaceNode | A node to use for namespace prefix resolution. |
XPathExecutionContext& xalanc::XPathEvaluator::getExecutionContext | ( | ) |
|
static |
NodeRefList& xalanc::XPathEvaluator::selectNodeList | ( | NodeRefList & | result, |
DOMSupport & | domSupport, | ||
XalanNode * | contextNode, | ||
const XalanDOMChar * | xpathString, | ||
const PrefixResolver & | prefixResolver | ||
) |
Evaluate the supplied XPath expression, within the given context.
If the expression doesn't select a node, an empty list is returned.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpathString | The XPath expression to evaluate |
prefixResolver | A prefix resolver instance to use for namespace prefix resolution. |
NodeRefList& xalanc::XPathEvaluator::selectNodeList | ( | NodeRefList & | result, |
DOMSupport & | domSupport, | ||
XalanNode * | contextNode, | ||
const XalanDOMChar * | xpathString, | ||
const XalanElement * | namespaceNode = 0 |
||
) |
Evaluate the supplied XPath expression, within the given context.
If the expression doesn't select a node, an empty list is returned.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpathString | The XPath expression to evaluate |
namespaceNode | A node to use for namespace prefix resolution. |
NodeRefList& xalanc::XPathEvaluator::selectNodeList | ( | NodeRefList & | result, |
DOMSupport & | domSupport, | ||
XalanNode * | contextNode, | ||
const XPath & | xpath, | ||
const PrefixResolver & | prefixResolver | ||
) |
Evaluate the supplied XPath, within the given context.
If the expression doesn't select a node, an empty list is returned.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpath | A reference to a compiled XPath expression. |
prefixResolver | A prefix resolver instance to use for namespace prefix resolution. |
NodeRefList& xalanc::XPathEvaluator::selectNodeList | ( | NodeRefList & | result, |
DOMSupport & | domSupport, | ||
XalanNode * | contextNode, | ||
const XPath & | xpath, | ||
const XalanElement * | namespaceNode = 0 |
||
) |
Evaluate the supplied XPath, within the given context.
If the expression doesn't select a node, an empty list is returned.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpath | A reference to a compiled XPath expression. |
namespaceNode | A node to use for namespace prefix resolution. |
XalanNode* xalanc::XPathEvaluator::selectSingleNode | ( | DOMSupport & | domSupport, |
XalanNode * | contextNode, | ||
const XalanDOMChar * | xpathString, | ||
const PrefixResolver & | prefixResolver | ||
) |
Evaluate the supplied XPath expression, within the given context.
If the expression doesn't select a node, 0 is returned. If it selects more than one node, only the first is returned.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpathString | The XPath expression to evaluate |
prefixResolver | A prefix resolver instance to use for namespace prefix resolution. |
XalanNode* xalanc::XPathEvaluator::selectSingleNode | ( | DOMSupport & | domSupport, |
XalanNode * | contextNode, | ||
const XalanDOMChar * | xpathString, | ||
const XalanElement * | namespaceNode = 0 |
||
) |
Evaluate the supplied XPath expression, within the given context.
If the expression doesn't select a node, 0 is returned. If it selects more than one node, only the first is returned.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpathString | The XPath expression to evaluate |
namespaceNode | A node to use for namespace prefix resolution. |
XalanNode* xalanc::XPathEvaluator::selectSingleNode | ( | DOMSupport & | domSupport, |
XalanNode * | contextNode, | ||
const XPath & | xpath, | ||
const PrefixResolver & | prefixResolver | ||
) |
Evaluate the supplied XPath, within the given context.
If the expression doesn't select a node, 0 is returned. If it selects more than one node, only the first is returned.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpath | A reference to a compiled XPath expression. |
prefixResolver | A prefix resolver instance to use for namespace prefix resolution. |
XalanNode* xalanc::XPathEvaluator::selectSingleNode | ( | DOMSupport & | domSupport, |
XalanNode * | contextNode, | ||
const XPath & | xpath, | ||
const XalanElement * | namespaceNode = 0 |
||
) |
Evaluate the supplied XPath, within the given context.
If the expression doesn't select a node, 0 is returned. If it selects more than one node, only the first is returned.
domSupport | An instance of the corresponding DOMSupport-derived for the DOM implementation being used. |
contextNode | The source tree context node |
xpath | A reference to a compiled XPath expression. |
namespaceNode | A node to use for namespace prefix resolution. |
|
static |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:41 for Xalan-C++ API Reference by 1.8.17