XQuilla/docs/simple-api/classURIResolver.html

256 lines
14 KiB
HTML
Raw Normal View History

2020-02-17 21:05:20 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
2020-02-17 21:11:31 +00:00
<title>XQilla Simple API Documentation</title>
2020-02-17 21:05:20 +00:00
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
2020-02-17 21:11:31 +00:00
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
2020-02-17 21:17:06 +00:00
<!-- Generated by Doxygen 1.5.5 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="classes.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
2020-02-17 21:11:31 +00:00
<h1>URIResolver Class Reference</h1><!-- doxytag: class="URIResolver" --><!-- doxytag: inherits="xercesc::XMemory" -->This is an abstract class used to resolve URIs in different ways.
2020-02-17 21:05:20 +00:00
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="URIResolver_8hpp-source.html">URIResolver.hpp</a>&gt;</code>
<p>
2020-02-17 21:17:06 +00:00
<div class="dynheader">
Inheritance diagram for URIResolver:</div>
<div class="dynsection">
<p><center><img src="classURIResolver__inherit__graph.png" border="0" usemap="#URIResolver__inherit__map" alt="Inheritance graph"></center>
2020-02-17 21:11:31 +00:00
<map name="URIResolver__inherit__map">
2020-02-17 21:17:06 +00:00
<area shape="rect" href="classxercesc_1_1XMemory.html" title="This class makes it possible to override the C++ memory management by adding new/delete..." alt="" coords="5,7,136,31"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classURIResolver-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
2020-02-17 21:05:20 +00:00
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classURIResolver.html#ae25c302d6f7dff9db0c08e9a38cbf2f">~URIResolver</a> ()</td></tr>
2020-02-17 21:13:50 +00:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">virtual destructor, does nothing <a href="#ae25c302d6f7dff9db0c08e9a38cbf2f"></a><br></td></tr>
2020-02-17 21:12:51 +00:00
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classURIResolver.html#b8794725669e322c88a0acbd328a8105">resolveDocument</a> (<a class="el" href="classSequence.html">Sequence</a> &amp;result, const XMLCh *uri, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context, const QueryPathNode *projection)=0</td></tr>
2020-02-17 21:05:20 +00:00
2020-02-17 21:17:06 +00:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Resolve the given uri (and baseUri) to a <a class="el" href="classSequence.html" title="An eagerly evaluated result of a query execution.">Sequence</a> (reference parameter). <a href="#b8794725669e322c88a0acbd328a8105"></a><br></td></tr>
2020-02-17 21:12:51 +00:00
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classURIResolver.html#f94492ad28b27dcb4d86d3f8e7d7c96d">resolveCollection</a> (<a class="el" href="classSequence.html">Sequence</a> &amp;result, const XMLCh *uri, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context, const QueryPathNode *projection)=0</td></tr>
2020-02-17 21:05:20 +00:00
2020-02-17 21:17:06 +00:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Resolve the given uri (and baseUri) to a <a class="el" href="classSequence.html" title="An eagerly evaluated result of a query execution.">Sequence</a> (reference parameter). <a href="#f94492ad28b27dcb4d86d3f8e7d7c96d"></a><br></td></tr>
2020-02-17 21:12:51 +00:00
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classURIResolver.html#fc76ef26a214dee9b84b7487f91bb64d">resolveDefaultCollection</a> (<a class="el" href="classSequence.html">Sequence</a> &amp;result, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context, const QueryPathNode *projection)=0</td></tr>
2020-02-17 21:05:20 +00:00
2020-02-17 21:13:50 +00:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Resolve the default collection. <a href="#fc76ef26a214dee9b84b7487f91bb64d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classURIResolver.html#41988c3ea951241a90ebf05832abb8b8">putDocument</a> (const <a class="el" href="classRefCountPointer.html">Node::Ptr</a> &amp;document, const XMLCh *uri, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called with any document that has been updated, to allow the user to save the document in any manner applicable. <a href="#41988c3ea951241a90ebf05832abb8b8"></a><br></td></tr>
2020-02-17 21:05:20 +00:00
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This is an abstract class used to resolve URIs in different ways.
<p>
2020-02-17 21:17:06 +00:00
The user should derive a concrete class from <a class="el" href="classURIResolver.html" title="This is an abstract class used to resolve URIs in different ways.">URIResolver</a>, and use the <a class="el" href="classDynamicContext.html#eaf54fa468b79effd098ac1d6ae87fdf" title="Register a callback object for resolving URIs.">DynamicContext::registerURIResolver()</a> method to add this resolver to the list used by <a class="el" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects.">XQilla</a>. <hr><h2>Constructor &amp; Destructor Documentation</h2>
2020-02-17 21:10:06 +00:00
<a class="anchor" name="ae25c302d6f7dff9db0c08e9a38cbf2f"></a><!-- doxytag: member="URIResolver::~URIResolver" ref="ae25c302d6f7dff9db0c08e9a38cbf2f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="memname">virtual URIResolver::~URIResolver </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"><code> [inline, virtual]</code></td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
2020-02-17 21:13:50 +00:00
<p>
virtual destructor, does nothing
2020-02-17 21:05:20 +00:00
<p>
2020-02-17 21:10:06 +00:00
</div>
</div><p>
2020-02-17 21:05:20 +00:00
<hr><h2>Member Function Documentation</h2>
2020-02-17 21:12:51 +00:00
<a class="anchor" name="b8794725669e322c88a0acbd328a8105"></a><!-- doxytag: member="URIResolver::resolveDocument" ref="b8794725669e322c88a0acbd328a8105" args="(Sequence &amp;result, const XMLCh *uri, DynamicContext *context, const QueryPathNode *projection)=0" -->
2020-02-17 21:10:06 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="memname">virtual bool URIResolver::resolveDocument </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classSequence.html">Sequence</a> &amp;&nbsp;</td>
<td class="paramname"> <em>result</em>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const XMLCh *&nbsp;</td>
<td class="paramname"> <em>uri</em>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td>
2020-02-17 21:12:51 +00:00
<td class="paramname"> <em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QueryPathNode *&nbsp;</td>
<td class="paramname"> <em>projection</em></td><td>&nbsp;</td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
<p>
2020-02-17 21:17:06 +00:00
Resolve the given uri (and baseUri) to a <a class="el" href="classSequence.html" title="An eagerly evaluated result of a query execution.">Sequence</a> (reference parameter).
2020-02-17 21:13:50 +00:00
<p>
2020-02-17 21:17:06 +00:00
If the uri is relative, the base uri can be obtained from the context. If the uri is not handled by this <a class="el" href="classURIResolver.html" title="This is an abstract class used to resolve URIs in different ways.">URIResolver</a>, returns false, otherwise returns true.
2020-02-17 21:10:06 +00:00
</div>
</div><p>
2020-02-17 21:12:51 +00:00
<a class="anchor" name="f94492ad28b27dcb4d86d3f8e7d7c96d"></a><!-- doxytag: member="URIResolver::resolveCollection" ref="f94492ad28b27dcb4d86d3f8e7d7c96d" args="(Sequence &amp;result, const XMLCh *uri, DynamicContext *context, const QueryPathNode *projection)=0" -->
2020-02-17 21:10:06 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool URIResolver::resolveCollection </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classSequence.html">Sequence</a> &amp;&nbsp;</td>
<td class="paramname"> <em>result</em>, </td>
</tr>
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const XMLCh *&nbsp;</td>
<td class="paramname"> <em>uri</em>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td>
2020-02-17 21:12:51 +00:00
<td class="paramname"> <em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QueryPathNode *&nbsp;</td>
<td class="paramname"> <em>projection</em></td><td>&nbsp;</td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
<p>
2020-02-17 21:17:06 +00:00
Resolve the given uri (and baseUri) to a <a class="el" href="classSequence.html" title="An eagerly evaluated result of a query execution.">Sequence</a> (reference parameter).
2020-02-17 21:13:50 +00:00
<p>
2020-02-17 21:17:06 +00:00
If the uri is relative, the base uri can be obtained from the context. If the uri is not handled by this <a class="el" href="classURIResolver.html" title="This is an abstract class used to resolve URIs in different ways.">URIResolver</a>, returns false, otherwise returns true.
2020-02-17 21:10:06 +00:00
</div>
</div><p>
2020-02-17 21:12:51 +00:00
<a class="anchor" name="fc76ef26a214dee9b84b7487f91bb64d"></a><!-- doxytag: member="URIResolver::resolveDefaultCollection" ref="fc76ef26a214dee9b84b7487f91bb64d" args="(Sequence &amp;result, DynamicContext *context, const QueryPathNode *projection)=0" -->
2020-02-17 21:10:06 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="memname">virtual bool URIResolver::resolveDefaultCollection </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classSequence.html">Sequence</a> &amp;&nbsp;</td>
<td class="paramname"> <em>result</em>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td>
2020-02-17 21:12:51 +00:00
<td class="paramname"> <em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QueryPathNode *&nbsp;</td>
<td class="paramname"> <em>projection</em></td><td>&nbsp;</td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
<p>
2020-02-17 21:13:50 +00:00
Resolve the default collection.
<p>
If it is not defined, returns false, otherwise returns true.
</div>
</div><p>
<a class="anchor" name="41988c3ea951241a90ebf05832abb8b8"></a><!-- doxytag: member="URIResolver::putDocument" ref="41988c3ea951241a90ebf05832abb8b8" args="(const Node::Ptr &amp;document, const XMLCh *uri, DynamicContext *context)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool URIResolver::putDocument </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classRefCountPointer.html">Node::Ptr</a> &amp;&nbsp;</td>
<td class="paramname"> <em>document</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const XMLCh *&nbsp;</td>
<td class="paramname"> <em>uri</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td>
<td class="paramname"> <em>context</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
2020-02-17 21:10:06 +00:00
2020-02-17 21:13:50 +00:00
<p>
Called with any document that has been updated, to allow the user to save the document in any manner applicable.
<p>
2020-02-17 21:17:06 +00:00
The uri parameter will be the argument to the fn:put() function if that was called with the document - otherwise it will be the document URI of the document. If this <a class="el" href="classURIResolver.html" title="This is an abstract class used to resolve URIs in different ways.">URIResolver</a> successfully handled the <a class="el" href="classURIResolver.html#41988c3ea951241a90ebf05832abb8b8" title="Called with any document that has been updated, to allow the user to save the document...">putDocument()</a> request, the method should return true, otherwise it should return false and subsequent <a class="el" href="classURIResolver.html" title="This is an abstract class used to resolve URIs in different ways.">URIResolver</a> objects will be called to handle the document.
2020-02-17 21:10:06 +00:00
</div>
</div><p>
2020-02-17 21:05:20 +00:00
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="URIResolver_8hpp-source.html">URIResolver.hpp</a></ul>
2020-02-17 21:17:06 +00:00
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 5 19:54:25 2009 for XQilla Simple API by&nbsp;
2020-02-17 21:05:20 +00:00
<a href="http://www.doxygen.org/index.html">
2020-02-17 21:17:06 +00:00
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
2020-02-17 21:05:20 +00:00
</body>
</html>