XQuilla/docs/simple-api/StaticContext_8hpp-source.html
2020-02-17 22:12:51 +01:00

195 lines
22 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 Simple API Documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<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>
<!-- Generated by Doxygen 1.5.1 -->
<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><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul></div>
<h1>StaticContext.hpp</h1><a href="StaticContext_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (c) 2001-2007</span>
<a name="l00003"></a>00003 <span class="comment"> * DecisionSoft Limited. All rights reserved.</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2004-2007</span>
<a name="l00005"></a>00005 <span class="comment"> * Oracle. All rights reserved.</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
<a name="l00008"></a>00008 <span class="comment"> * you may not use this file except in compliance with the License.</span>
<a name="l00009"></a>00009 <span class="comment"> * You may obtain a copy of the License at</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00014"></a>00014 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00015"></a>00015 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00016"></a>00016 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00017"></a>00017 <span class="comment"> * limitations under the License.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * $Id: StaticContext.hpp,v 1.25 2007/11/29 16:53:00 jpcs Exp $</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef _STATICCONTEXT_HPP</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _STATICCONTEXT_HPP</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;xqilla/framework/XQillaExport.hpp&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="XQilla_8hpp.html">xqilla/simple-api/XQilla.hpp</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;xqilla/schema/DocumentCache.hpp&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="XMemory_8hpp.html">xercesc/util/XMemory.hpp</a>&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="comment">// Copied from ASTNode.hpp</span>
<a name="l00033"></a><a class="code" href="StaticContext_8hpp.html#945a726d9c06a9f5a66be9834475e658">00033</a> <span class="keyword">typedef</span> std::vector&lt;ASTNode*,XQillaAllocator&lt;ASTNode*&gt; &gt; <a class="code" href="StaticContext_8hpp.html#945a726d9c06a9f5a66be9834475e658">VectorOfASTNodes</a>;
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="classDynamicContext.html">DynamicContext</a>;
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="classXPath2MemoryManager.html">XPath2MemoryManager</a>;
<a name="l00037"></a>00037 <span class="keyword">class </span>FuncFactory;
<a name="l00038"></a>00038 <span class="keyword">class </span>DatatypeFactory;
<a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="classCollation.html">Collation</a>;
<a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="classVariableTypeStore.html">VariableTypeStore</a>;
<a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="classItemFactory.html">ItemFactory</a>;
<a name="l00042"></a>00042 <span class="keyword">class </span>StaticType;
<a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="classModuleResolver.html">ModuleResolver</a>;
<a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="classMessageListener.html">MessageListener</a>;
<a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="classExternalFunction.html">ExternalFunction</a>;
<a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="classXQillaConfiguration.html">XQillaConfiguration</a>;
<a name="l00047"></a>00047
<a name="l00048"></a>00048 XERCES_CPP_NAMESPACE_BEGIN
<a name="l00049"></a>00049 <span class="keyword">class </span>DOMDocument;
<a name="l00050"></a>00050 <span class="keyword">class </span>DOMXPathNSResolver;
<a name="l00051"></a>00051 <span class="keyword">class </span>XMLEntityResolver;
<a name="l00052"></a>00052 XERCES_CPP_NAMESPACE_END
<a name="l00053"></a>00053
<a name="l00055"></a><a class="code" href="classStaticContext.html">00055</a> <span class="keyword">class </span>XQILLA_API <a class="code" href="classStaticContext.html">StaticContext</a> : <span class="keyword">public</span> XERCES_CPP_NAMESPACE_QUALIFIER XMemory
<a name="l00056"></a>00056 {
<a name="l00057"></a>00057 <span class="keyword">public</span>:
<a name="l00058"></a><a class="code" href="classStaticContext.html#b8bafb380375462baaed1f97db7314cd">00058</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00059"></a>00059 ORDERING_ORDERED,
<a name="l00060"></a>00060 ORDERING_UNORDERED
<a name="l00061"></a>00061 } NodeSetOrdering;
<a name="l00062"></a>00062
<a name="l00063"></a><a class="code" href="classStaticContext.html#afd3dd12453e8237c20895f80a9360a1">00063</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00064"></a>00064 CONSTRUCTION_MODE_PRESERVE,
<a name="l00065"></a>00065 CONSTRUCTION_MODE_STRIP
<a name="l00066"></a>00066 } ConstructionMode;
<a name="l00067"></a>00067
<a name="l00068"></a><a class="code" href="classStaticContext.html#e2f0da091c646c1fce65483226d9c6ac">00068</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00069"></a>00069 FLWOR_ORDER_EMPTY_GREATEST,
<a name="l00070"></a>00070 FLWOR_ORDER_EMPTY_LEAST
<a name="l00071"></a>00071 } FLWOROrderingMode;
<a name="l00072"></a>00072
<a name="l00073"></a><a class="code" href="classStaticContext.html#ab10e680c7e45b1f1c15af9954fff65a">00073</a> <span class="keyword">virtual</span> ~<a class="code" href="classStaticContext.html">StaticContext</a>() {};
<a name="l00074"></a>00074
<a name="l00075"></a>00075 <span class="keyword">virtual</span> <a class="code" href="classDynamicContext.html">DynamicContext</a> *createModuleContext(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr =
<a name="l00076"></a>00076 XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::fgMemoryManager) <span class="keyword">const </span>= 0;
<a name="l00077"></a>00077 <span class="keyword">virtual</span> <a class="code" href="classDynamicContext.html">DynamicContext</a> *createDynamicContext(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr =
<a name="l00078"></a>00078 XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::fgMemoryManager) <span class="keyword">const </span>= 0;
<a name="l00079"></a>00079
<a name="l00081"></a>00081 <span class="keyword">virtual</span> <a class="code" href="classXQillaConfiguration.html">XQillaConfiguration</a> *getConfiguration() <span class="keyword">const </span>= 0;
<a name="l00082"></a>00082
<a name="l00085"></a>00085 <span class="keyword">virtual</span> <a class="code" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d">XQilla::Language</a> getLanguage() <span class="keyword">const </span>= 0;
<a name="l00086"></a>00086
<a name="l00088"></a>00088 <span class="keyword">virtual</span> <a class="code" href="classItemFactory.html">ItemFactory</a> *getItemFactory() <span class="keyword">const </span>= 0;
<a name="l00090"></a>00090 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setItemFactory(<a class="code" href="classItemFactory.html">ItemFactory</a> *factory) = 0;
<a name="l00091"></a>00091
<a name="l00093"></a>00093 <span class="keyword">virtual</span> <span class="keyword">const</span> StaticType &amp;getContextItemType() <span class="keyword">const </span>= 0;
<a name="l00095"></a>00095 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setContextItemType(<span class="keyword">const</span> StaticType &amp;st) = 0;
<a name="l00096"></a>00096
<a name="l00098"></a>00098 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getXPath1CompatibilityMode() <span class="keyword">const </span>= 0;
<a name="l00100"></a>00100 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setXPath1CompatibilityMode(<span class="keywordtype">bool</span> newMode) = 0;
<a name="l00101"></a>00101
<a name="l00103"></a>00103 <span class="keyword">virtual</span> <span class="keyword">const</span> XERCES_CPP_NAMESPACE_QUALIFIER DOMXPathNSResolver* getNSResolver() <span class="keyword">const </span>= 0;
<a name="l00106"></a>00106 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getUriBoundToPrefix(<span class="keyword">const</span> XMLCh* prefix, <span class="keyword">const</span> LocationInfo *location = 0) <span class="keyword">const </span>= 0;
<a name="l00109"></a>00109 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getPrefixBoundToUri(<span class="keyword">const</span> XMLCh* uri) <span class="keyword">const </span>= 0;
<a name="l00111"></a>00111 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNSResolver(<span class="keyword">const</span> XERCES_CPP_NAMESPACE_QUALIFIER DOMXPathNSResolver* resolver) = 0;
<a name="l00113"></a>00113 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNamespaceBinding(<span class="keyword">const</span> XMLCh* prefix, <span class="keyword">const</span> XMLCh* uri) = 0;
<a name="l00114"></a>00114
<a name="l00116"></a>00116 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getDefaultElementAndTypeNS() <span class="keyword">const </span>= 0;
<a name="l00118"></a>00118 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDefaultElementAndTypeNS(<span class="keyword">const</span> XMLCh* newNS) = 0;
<a name="l00119"></a>00119
<a name="l00121"></a>00121 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getDefaultFuncNS() <span class="keyword">const </span>= 0;
<a name="l00123"></a>00123 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDefaultFuncNS(<span class="keyword">const</span> XMLCh* newNS) = 0;
<a name="l00124"></a>00124
<a name="l00126"></a>00126 <span class="keyword">virtual</span> <span class="keyword">const</span> DocumentCache* getDocumentCache() <span class="keyword">const </span>= 0;
<a name="l00128"></a>00128 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDocumentCache(DocumentCache* docCache) = 0;
<a name="l00129"></a>00129
<a name="l00138"></a>00138 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isTypeOrDerivedFromType(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> uri, <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> typeName, <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> uriToCheck, <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> typeNameToCheck) <span class="keyword">const </span>= 0;
<a name="l00144"></a>00144 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setXMLEntityResolver(XERCES_CPP_NAMESPACE_QUALIFIER XMLEntityResolver* <span class="keyword">const</span> handler) = 0;
<a name="l00146"></a>00146 <span class="keyword">virtual</span> XERCES_CPP_NAMESPACE_QUALIFIER XMLEntityResolver* getXMLEntityResolver() <span class="keyword">const </span>= 0;
<a name="l00147"></a>00147
<a name="l00149"></a>00149 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setModuleResolver(<a class="code" href="classModuleResolver.html">ModuleResolver</a> *resolver) = 0;
<a name="l00151"></a>00151 <span class="keyword">virtual</span> <a class="code" href="classModuleResolver.html">ModuleResolver</a> *getModuleResolver() <span class="keyword">const </span>= 0;
<a name="l00152"></a>00152 <span class="comment">/* Retrieve a list of locations for the given module URI */</span>
<a name="l00153"></a>00153 <span class="keyword">virtual</span> VectorOfStrings* resolveModuleURI(<span class="keyword">const</span> XMLCh* uri) <span class="keyword">const </span>= 0;
<a name="l00154"></a>00154
<a name="l00156"></a>00156 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addSchemaLocation(<span class="keyword">const</span> XMLCh* uri, VectorOfStrings* locations, <span class="keyword">const</span> LocationInfo *location = 0) = 0;
<a name="l00157"></a>00157
<a name="l00159"></a>00159 <span class="keyword">virtual</span> <a class="code" href="classVariableTypeStore.html">VariableTypeStore</a>* getVariableTypeStore() = 0;
<a name="l00160"></a>00160
<a name="l00162"></a>00162 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addCustomFunction(FuncFactory *func) = 0;
<a name="l00164"></a>00164 <span class="keyword">virtual</span> ASTNode *lookUpFunction(<span class="keyword">const</span> XMLCh *uri, <span class="keyword">const</span> XMLCh* name, <span class="keyword">const</span> <a class="code" href="StaticContext_8hpp.html#945a726d9c06a9f5a66be9834475e658">VectorOfASTNodes</a> &amp;v) <span class="keyword">const </span>= 0;
<a name="l00165"></a>00165
<a name="l00167"></a>00167 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addExternalFunction(<span class="keyword">const</span> <a class="code" href="classExternalFunction.html">ExternalFunction</a> *func) = 0;
<a name="l00169"></a>00169 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classExternalFunction.html">ExternalFunction</a> *lookUpExternalFunction(<span class="keyword">const</span> XMLCh *uri, <span class="keyword">const</span> XMLCh *name, size_t numArgs) <span class="keyword">const </span>= 0;
<a name="l00170"></a>00170
<a name="l00172"></a>00172 <span class="keyword">virtual</span> <a class="code" href="classCollation.html">Collation</a>* getCollation(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> URI, <span class="keyword">const</span> LocationInfo *location = 0) <span class="keyword">const </span>= 0;
<a name="l00174"></a>00174 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addCollation(<a class="code" href="classCollation.html">Collation</a>* collation) = 0;
<a name="l00175"></a>00175
<a name="l00177"></a>00177 <span class="keyword">virtual</span> <a class="code" href="classCollation.html">Collation</a>* getDefaultCollation(<span class="keyword">const</span> LocationInfo *location = 0) <span class="keyword">const </span>= 0;
<a name="l00179"></a>00179 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDefaultCollation(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> URI) = 0;
<a name="l00180"></a>00180
<a name="l00182"></a>00182 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getBaseURI() <span class="keyword">const </span>= 0;
<a name="l00184"></a>00184 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setBaseURI(<span class="keyword">const</span> XMLCh* newURI) = 0;
<a name="l00185"></a>00185
<a name="l00187"></a>00187 <span class="keyword">virtual</span> NodeSetOrdering getNodeSetOrdering() <span class="keyword">const </span>= 0;
<a name="l00189"></a>00189 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNodeSetOrdering(NodeSetOrdering newOrder) = 0;
<a name="l00190"></a>00190
<a name="l00192"></a>00192 <span class="keyword">virtual</span> ConstructionMode getConstructionMode() <span class="keyword">const </span>= 0;
<a name="l00194"></a>00194 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setConstructionMode(ConstructionMode newMode) = 0;
<a name="l00195"></a>00195
<a name="l00197"></a>00197 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPreserveBoundarySpace(<span class="keywordtype">bool</span> value) = 0;
<a name="l00199"></a>00199 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getPreserveBoundarySpace() <span class="keyword">const </span>= 0;
<a name="l00200"></a>00200
<a name="l00202"></a>00202 <span class="keyword">virtual</span> FLWOROrderingMode getDefaultFLWOROrderingMode() <span class="keyword">const </span>= 0;
<a name="l00204"></a>00204 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDefaultFLWOROrderingMode(FLWOROrderingMode newMode) = 0;
<a name="l00205"></a>00205
<a name="l00207"></a>00207 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInheritNamespaces(<span class="keywordtype">bool</span> value) = 0;
<a name="l00209"></a>00209 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getInheritNamespaces() <span class="keyword">const </span>= 0;
<a name="l00210"></a>00210
<a name="l00212"></a>00212 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPreserveNamespaces(<span class="keywordtype">bool</span> value) = 0;
<a name="l00214"></a>00214 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getPreserveNamespaces() <span class="keyword">const </span>= 0;
<a name="l00215"></a>00215
<a name="l00217"></a>00217 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setRevalidationMode(DocumentCache::ValidationMode mode) = 0;
<a name="l00219"></a>00219 <span class="keyword">virtual</span> DocumentCache::ValidationMode getRevalidationMode() <span class="keyword">const </span>= 0;
<a name="l00220"></a>00220
<a name="l00222"></a>00222 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMessageListener(<a class="code" href="classMessageListener.html">MessageListener</a> *listener) = 0;
<a name="l00224"></a>00224 <span class="keyword">virtual</span> <a class="code" href="classMessageListener.html">MessageListener</a> *getMessageListener() <span class="keyword">const </span>= 0;
<a name="l00225"></a>00225
<a name="l00227"></a>00227 <span class="comment">// XQilla context specific accessors //</span>
<a name="l00229"></a>00229 <span class="comment"></span>
<a name="l00243"></a>00243 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getProjection() <span class="keyword">const </span>= 0;
<a name="l00260"></a>00260 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setProjection(<span class="keywordtype">bool</span> enabled) = 0;
<a name="l00261"></a>00261
<a name="l00263"></a>00263 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh *allocateTempVarName() = 0;
<a name="l00264"></a>00264
<a name="l00266"></a>00266 <span class="keyword">virtual</span> <a class="code" href="classXPath2MemoryManager.html">XPath2MemoryManager</a>* getMemoryManager() <span class="keyword">const </span>= 0;
<a name="l00268"></a>00268 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMemoryManager(<a class="code" href="classXPath2MemoryManager.html">XPath2MemoryManager</a>* memMgr) = 0;
<a name="l00269"></a>00269 };
<a name="l00270"></a>00270
<a name="l00271"></a>00271 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 12 20:16:43 2007 for XQilla Simple API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>