638 lines
32 KiB
HTML
638 lines
32 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||
|
<title>XQilla DOM Level 3 API: XPath2Result Class Reference</title>
|
||
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||
|
</head><body>
|
||
|
<!-- Generated by Doxygen 1.4.6 -->
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||
|
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
|
||
|
<li><a href="files.html"><span>Files</span></a></li>
|
||
|
</ul></div>
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
|
||
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||
|
</ul></div>
|
||
|
<h1>XPath2Result Class Reference</h1><!-- doxytag: class="XPath2Result" -->The XPathResult2 interface represents the result of the evaluation of an XPath 2.0 expression within the context of a particular node.
|
||
|
<a href="#_details">More...</a>
|
||
|
<p>
|
||
|
<code>#include <<a class="el" href="XPath2Result_8hpp-source.html">XPath2Result.hpp</a>></code>
|
||
|
<p>
|
||
|
<a href="classXPath2Result-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
||
|
<tr><td></td></tr>
|
||
|
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
|
||
|
<tr><td colspan="2"><div class="groupHeader">Public Constants</div></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#18e0dff57e4162f32438836da74eaabd">ResultType</a> { <a class="el" href="classXPath2Result.html#18e0dff57e4162f32438836da74eaabdcaf577b5b4e9d358e98e266635178916">FIRST_RESULT</a> = 100,
|
||
|
<a class="el" href="classXPath2Result.html#18e0dff57e4162f32438836da74eaabda6da9af2d88f691092166a318d9f5f3f">ITERATOR_RESULT</a> = 101,
|
||
|
<a class="el" href="classXPath2Result.html#18e0dff57e4162f32438836da74eaabdc9cfdd09d682afd6d40222907da1b8d7">SNAPSHOT_RESULT</a> = 102
|
||
|
}</td></tr>
|
||
|
|
||
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
||
|
<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#c6209c093de954f12163bc234c9f5306">~XPath2Result</a> ()</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#c6209c093de954f12163bc234c9f5306"></a><br></td></tr>
|
||
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 3</div></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classXPath2Result.html#18e0dff57e4162f32438836da74eaabd">ResultType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#99c7a03d8af94716b20ee9b459d8c4e0">getResultType</a> () const =0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the result type of this result. <a href="#99c7a03d8af94716b20ee9b459d8c4e0"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#7ebbdf5df735155dd651afb9766dfc01">isNode</a> () const =0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the result has a current result and the value is a node. <a href="#7ebbdf5df735155dd651afb9766dfc01"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="classxercesc_1_1DOMTypeInfo.html">xercesc::DOMTypeInfo</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#e123dc342ef0c418d3bda6f0146d118d">getTypeInfo</a> () const =0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the DOM type info of the current result node or value. <a href="#e123dc342ef0c418d3bda6f0146d118d"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#9dab3a3b5f8a7aa40dcf9eb208f68199">asDouble</a> () const =0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion of the current result to double. <a href="#9dab3a3b5f8a7aa40dcf9eb208f68199"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#b3d50634dba42d7ceece56a108f6ba88">asInt</a> () const =0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion of the current result to int. <a href="#b3d50634dba42d7ceece56a108f6ba88"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#9a780a0e598dfcfaea6a4e18eb6b2dca">asString</a> () const =0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion of the current result to string. <a href="#9a780a0e598dfcfaea6a4e18eb6b2dca"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#6a36b40c64d704061c07dd0abe1e7689">asBoolean</a> () const =0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion of the current result to boolean. <a href="#6a36b40c64d704061c07dd0abe1e7689"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="classxercesc_1_1DOMNode.html">xercesc::DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#7777eeaa4031e2f55162f61952bd72be">asNode</a> () const =0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the current node value. <a href="#7777eeaa4031e2f55162f61952bd72be"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#03fe13a9c19742f3e9bae278a4090f1b">getInvalidIteratorState</a> () const =0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Signifies that the iterator has become invalid. <a href="#03fe13a9c19742f3e9bae278a4090f1b"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#a044508ec4f50445ed5dc7ddd897c8db">getSnapshotLength</a> () const =0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The number of items in the result snapshot. <a href="#a044508ec4f50445ed5dc7ddd897c8db"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#b0eb8f59658545aa61b7dab1c30f5b64">iterateNext</a> ()=0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Iterates and returns true if the current result is the next item from the sequence or false if there are no more items. <a href="#b0eb8f59658545aa61b7dab1c30f5b64"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#e369b3e0ef4e277b26577c3854cd74fe">snapshotItem</a> (unsigned long index)=0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the current result to the indexth item in the snapshot collection. <a href="#e369b3e0ef4e277b26577c3854cd74fe"></a><br></td></tr>
|
||
|
<tr><td colspan="2"><div class="groupHeader">Non-standard Extension</div></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#626c24927dfce8d8bc8162c643ff590c">release</a> ()=0</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Called to indicate that this object (and its associated children) is no longer in use and that the implementation may relinquish any resources associated with it and its associated children. <a href="#626c24927dfce8d8bc8162c643ff590c"></a><br></td></tr>
|
||
|
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
|
||
|
<tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXPath2Result.html#19e37cebc1d9d50bb02c23eb7de2f3d1">XPath2Result</a> ()</td></tr>
|
||
|
|
||
|
</table>
|
||
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
||
|
The XPathResult2 interface represents the result of the evaluation of an XPath 2.0 expression within the context of a particular node.
|
||
|
<p>
|
||
|
Since evaluation of an XPath 2.0 expression can result in various result types, this object makes it possible to discover and manipulate the type and value of the result. <dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
||
|
|
||
|
<p>
|
||
|
<hr><h2>Member Enumeration Documentation</h2>
|
||
|
<a class="anchor" name="18e0dff57e4162f32438836da74eaabd"></a><!-- doxytag: member="XPath2Result::ResultType" ref="18e0dff57e4162f32438836da74eaabd" args="" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">enum <a class="el" href="classXPath2Result.html#18e0dff57e4162f32438836da74eaabd">XPath2Result::ResultType</a> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
FIRST_RESULT <br>
|
||
|
The result is a sequence as defined by XPath 2.0 and will be accessed as a single current value or there will be no current value if the sequence is empty. Document modification does not invalidate the value, but may mean that the result no longer corresponds to the current document. This is a convenience that permits optimization since the implementation can stop once the first item in the resulting sequence has been found. If there is more than one item in the actual result, the single item returned might not be the first in document order. <p>
|
||
|
ITERATOR_RESULT <br>
|
||
|
The result is a sequence as defined by XPath 2.0 that will be accessed iteratively. Document modification invalidates the iteration. <p>
|
||
|
SNAPSHOT_RESULT <br>
|
||
|
The result is a sequence as defined by XPath 2.0 that will be accessed as a snapshot list of values. Document modification does not invalidate the snapshot but may mean that reevaluation would not yield the same snapshot and any items in the snapshot may have been altered, moved, or removed from the document. <dl compact><dt><b>Enumerator: </b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"><em><a class="anchor" name="18e0dff57e4162f32438836da74eaabdcaf577b5b4e9d358e98e266635178916"></a><!-- doxytag: member="FIRST_RESULT" ref="18e0dff57e4162f32438836da74eaabdcaf577b5b4e9d358e98e266635178916" args="" -->FIRST_RESULT</em> </td><td>
|
||
|
</td></tr>
|
||
|
<tr><td valign="top"><em><a class="anchor" name="18e0dff57e4162f32438836da74eaabda6da9af2d88f691092166a318d9f5f3f"></a><!-- doxytag: member="ITERATOR_RESULT" ref="18e0dff57e4162f32438836da74eaabda6da9af2d88f691092166a318d9f5f3f" args="" -->ITERATOR_RESULT</em> </td><td>
|
||
|
</td></tr>
|
||
|
<tr><td valign="top"><em><a class="anchor" name="18e0dff57e4162f32438836da74eaabdc9cfdd09d682afd6d40222907da1b8d7"></a><!-- doxytag: member="SNAPSHOT_RESULT" ref="18e0dff57e4162f32438836da74eaabdc9cfdd09d682afd6d40222907da1b8d7" args="" -->SNAPSHOT_RESULT</em> </td><td>
|
||
|
</td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
||
|
<a class="anchor" name="c6209c093de954f12163bc234c9f5306"></a><!-- doxytag: member="XPath2Result::~XPath2Result" ref="c6209c093de954f12163bc234c9f5306" args="()" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual XPath2Result::~XPath2Result </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap><code> [inline, virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Destructor.
|
||
|
<p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="19e37cebc1d9d50bb02c23eb7de2f3d1"></a><!-- doxytag: member="XPath2Result::XPath2Result" ref="19e37cebc1d9d50bb02c23eb7de2f3d1" args="()" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">XPath2Result::XPath2Result </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap><code> [inline, protected]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<hr><h2>Member Function Documentation</h2>
|
||
|
<a class="anchor" name="6a36b40c64d704061c07dd0abe1e7689"></a><!-- doxytag: member="XPath2Result::asBoolean" ref="6a36b40c64d704061c07dd0abe1e7689" args="() const =0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual bool XPath2Result::asBoolean </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Conversion of the current result to boolean.
|
||
|
<p>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>asBoolean of type boolean, readonly </dd></dl>
|
||
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>XPathException</em> </td><td>TYPE_ERR: raised if cannot be properly converted to boolean. </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_STATE_ERR: There is no current result in the result. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="9dab3a3b5f8a7aa40dcf9eb208f68199"></a><!-- doxytag: member="XPath2Result::asDouble" ref="9dab3a3b5f8a7aa40dcf9eb208f68199" args="() const =0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual double XPath2Result::asDouble </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Conversion of the current result to double.
|
||
|
<p>
|
||
|
If the native double type of the DOM binding does not directly support the exact IEEE 754 result of the XPath expression, then it is up to the definition of the binding to specify how the XPath number is converted to the native binding number. <dl compact><dt><b>Returns:</b></dt><dd>asDouble of type double, readonly </dd></dl>
|
||
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>XPathException</em> </td><td>TYPE_ERR: raised if current result cannot be properly converted to double. </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_STATE_ERR: There is no current result in the result. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="b3d50634dba42d7ceece56a108f6ba88"></a><!-- doxytag: member="XPath2Result::asInt" ref="b3d50634dba42d7ceece56a108f6ba88" args="() const =0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual int XPath2Result::asInt </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Conversion of the current result to int.
|
||
|
<p>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>asInt of type int, readonly </dd></dl>
|
||
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>XPathException</em> </td><td>TYPE_ERR: raised if current result cannot be properly converted to int. </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_STATE_ERR: There is no current result in the result. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="7777eeaa4031e2f55162f61952bd72be"></a><!-- doxytag: member="XPath2Result::asNode" ref="7777eeaa4031e2f55162f61952bd72be" args="() const =0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual const xercesc:: DOMNode* XPath2Result::asNode </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Retrieve the current node value.
|
||
|
<p>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>asNode of type Node, readonly </dd></dl>
|
||
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>XPathException</em> </td><td>TYPE_ERR: raised if current result is not a node. </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_STATE_ERR: There is no current result in the result. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="9a780a0e598dfcfaea6a4e18eb6b2dca"></a><!-- doxytag: member="XPath2Result::asString" ref="9a780a0e598dfcfaea6a4e18eb6b2dca" args="() const =0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual const XMLCh* XPath2Result::asString </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Conversion of the current result to string.
|
||
|
<p>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>asString of type DOMString, readonly </dd></dl>
|
||
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>XPathException</em> </td><td>TYPE_ERR: raised if current result cannot be properly converted to string. </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_STATE_ERR: There is no current result in the result. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="03fe13a9c19742f3e9bae278a4090f1b"></a><!-- doxytag: member="XPath2Result::getInvalidIteratorState" ref="03fe13a9c19742f3e9bae278a4090f1b" args="() const =0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual bool XPath2Result::getInvalidIteratorState </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Signifies that the iterator has become invalid.
|
||
|
<p>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>invalidIteratorState of type boolean, readonly </dd></dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="99c7a03d8af94716b20ee9b459d8c4e0"></a><!-- doxytag: member="XPath2Result::getResultType" ref="99c7a03d8af94716b20ee9b459d8c4e0" args="() const =0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classXPath2Result.html#18e0dff57e4162f32438836da74eaabd">ResultType</a> XPath2Result::getResultType </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Returns the result type of this result.
|
||
|
<p>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>ResultType A code representing the type of this result, as defined by the type constants. </dd></dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="a044508ec4f50445ed5dc7ddd897c8db"></a><!-- doxytag: member="XPath2Result::getSnapshotLength" ref="a044508ec4f50445ed5dc7ddd897c8db" args="() const =0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual unsigned long XPath2Result::getSnapshotLength </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
The number of items in the result snapshot.
|
||
|
<p>
|
||
|
Valid values for snapshotItem indices are 0 to snapshotLength-1 inclusive. <dl compact><dt><b>Returns:</b></dt><dd>snapshotLength of type unsigned long, readonly </dd></dl>
|
||
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>XPathException</em> </td><td>TYPE_ERR: raised if resultType is not SNAPSHOT_RESULT. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="e123dc342ef0c418d3bda6f0146d118d"></a><!-- doxytag: member="XPath2Result::getTypeInfo" ref="e123dc342ef0c418d3bda6f0146d118d" args="() const =0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual const xercesc:: DOMTypeInfo* XPath2Result::getTypeInfo </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Returns the DOM type info of the current result node or value.
|
||
|
<p>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>typeInfo of type TypeInfo, readonly </dd></dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="7ebbdf5df735155dd651afb9766dfc01"></a><!-- doxytag: member="XPath2Result::isNode" ref="7ebbdf5df735155dd651afb9766dfc01" args="() const =0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual bool XPath2Result::isNode </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Returns true if the result has a current result and the value is a node.
|
||
|
<p>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>isNode of type boolean, readonly </dd></dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="b0eb8f59658545aa61b7dab1c30f5b64"></a><!-- doxytag: member="XPath2Result::iterateNext" ref="b0eb8f59658545aa61b7dab1c30f5b64" args="()=0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual bool XPath2Result::iterateNext </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Iterates and returns true if the current result is the next item from the sequence or false if there are no more items.
|
||
|
<p>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>boolean True if the current result is the next item from the sequence or false if there are no more items. </dd></dl>
|
||
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>XPathException</em> </td><td>TYPE_ERR: raised if resultType is not ITERATOR_RESULT. </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_STATE_ERR: The document has been mutated since the result was returned. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="626c24927dfce8d8bc8162c643ff590c"></a><!-- doxytag: member="XPath2Result::release" ref="626c24927dfce8d8bc8162c643ff590c" args="()=0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual void XPath2Result::release </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Called to indicate that this object (and its associated children) is no longer in use and that the implementation may relinquish any resources associated with it and its associated children.
|
||
|
<p>
|
||
|
Access to a released object will lead to unexpected result. </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="e369b3e0ef4e277b26577c3854cd74fe"></a><!-- doxytag: member="XPath2Result::snapshotItem" ref="e369b3e0ef4e277b26577c3854cd74fe" args="(unsigned long index)=0" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual bool XPath2Result::snapshotItem </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="md" nowrap valign="top">unsigned long </td>
|
||
|
<td class="mdname1" valign="top" nowrap> <em>index</em> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Sets the current result to the indexth item in the snapshot collection.
|
||
|
<p>
|
||
|
If index is greater than or equal to the number of items in the list, this method returns false. Unlike the iterator result, the snapshot does not become invalid, but may not correspond to the current document if it is mutated. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>of type unsigned long - Index into the snapshot collection. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
<dl compact><dt><b>Returns:</b></dt><dd>boolean True if the current result is the next item from the sequence or false if there are no more items. </dd></dl>
|
||
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>XPathException</em> </td><td>TYPE_ERR: raised if resultType is not SNAPSHOT_RESULT. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<hr>The documentation for this class was generated from the following file:<ul>
|
||
|
<li><a class="el" href="XPath2Result_8hpp-source.html">XPath2Result.hpp</a></ul>
|
||
|
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:19:01 2006 for XQilla DOM Level 3 API by
|
||
|
<a href="http://www.doxygen.org/index.html">
|
||
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
|
||
|
</body>
|
||
|
</html>
|