129 lines
11 KiB
HTML
129 lines
11 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&type=2" border="0" alt="SourceForge.net Logo" /></a>
|
|
<!-- Generated by Doxygen 1.3.9.1 -->
|
|
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="examples.html">Examples</a></div>
|
|
<div class="nav">
|
|
<a class="el" href="dir_000000.html">include</a> / <a class="el" href="dir_000001.html">xqilla</a> / <a class="el" href="dir_000006.html">schema</a></div>
|
|
<h1>DocumentCache.hpp</h1><a href="DocumentCache_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
|
|
00002 <span class="comment"> * Copyright (c) 2001-2008</span>
|
|
00003 <span class="comment"> * DecisionSoft Limited. All rights reserved.</span>
|
|
00004 <span class="comment"> * Copyright (c) 2004-2008</span>
|
|
00005 <span class="comment"> * Oracle. All rights reserved.</span>
|
|
00006 <span class="comment"> *</span>
|
|
00007 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
|
|
00008 <span class="comment"> * you may not use this file except in compliance with the License.</span>
|
|
00009 <span class="comment"> * You may obtain a copy of the License at</span>
|
|
00010 <span class="comment"> *</span>
|
|
00011 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
|
|
00012 <span class="comment"> *</span>
|
|
00013 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
|
|
00014 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
|
|
00015 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
|
|
00016 <span class="comment"> * See the License for the specific language governing permissions and</span>
|
|
00017 <span class="comment"> * limitations under the License.</span>
|
|
00018 <span class="comment"> *</span>
|
|
00019 <span class="comment"> * $Id: DocumentCache.hpp 576 2008-08-08 00:19:59Z jpcs $</span>
|
|
00020 <span class="comment"> */</span>
|
|
00021
|
|
00022 <span class="preprocessor">#ifndef _DOCUMENTCACHE_HPP</span>
|
|
00023 <span class="preprocessor"></span><span class="preprocessor">#define _DOCUMENTCACHE_HPP</span>
|
|
00024 <span class="preprocessor"></span>
|
|
00025 <span class="preprocessor">#include <vector></span>
|
|
00026
|
|
00027 <span class="preprocessor">#include <<a class="code" href="XPath2MemoryManager_8hpp.html">xqilla/framework/XPath2MemoryManager.hpp</a>></span>
|
|
00028 <span class="preprocessor">#include <<a class="code" href="Node_8hpp.html">xqilla/items/Node.hpp</a>></span>
|
|
00029
|
|
00030 <span class="preprocessor">#include <xercesc/util/XercesDefs.hpp></span>
|
|
00031 <span class="preprocessor">#include <<a class="code" href="XMemory_8hpp.html">xercesc/util/XMemory.hpp</a>></span>
|
|
00032
|
|
00033 <span class="keyword">class </span><a class="code" href="classDynamicContext.html">DynamicContext</a>;
|
|
00034 <span class="keyword">class </span><a class="code" href="classStaticContext.html">StaticContext</a>;
|
|
00035 <span class="keyword">class </span>QualifiedName;
|
|
00036 <span class="keyword">class </span><a class="code" href="classLocationInfo.html">LocationInfo</a>;
|
|
00037 <span class="keyword">class </span>QueryPathNode;
|
|
00038
|
|
<a name="l00039"></a><a class="code" href="DocumentCache_8hpp.html#a0">00039</a> <span class="keyword">typedef</span> std::vector<const XMLCh*, XQillaAllocator<const XMLCh*> > VectorOfStrings;
|
|
00040
|
|
00041 XERCES_CPP_NAMESPACE_BEGIN
|
|
00042 <span class="keyword">class </span>DOMDocument;
|
|
00043 <span class="keyword">class </span>DOMNode;
|
|
00044 <span class="keyword">class </span>DatatypeValidator;
|
|
00045 <span class="keyword">class </span>XMLEntityResolver;
|
|
00046 <span class="keyword">class </span>ComplexTypeInfo;
|
|
00047 <span class="keyword">class </span>SchemaElementDecl;
|
|
00048 <span class="keyword">class </span>SchemaAttDef;
|
|
00049 <span class="keyword">class </span>InputSource;
|
|
00050 <span class="keyword">class </span>GrammarResolver;
|
|
00051 XERCES_CPP_NAMESPACE_END
|
|
00052
|
|
<a name="l00054"></a><a class="code" href="classDocumentCache.html">00054</a> <span class="keyword">class </span>XQILLA_API DocumentCache : <span class="keyword">public</span> XERCES_CPP_NAMESPACE_QUALIFIER XMemory
|
|
00055 {
|
|
00056 <span class="keyword">public</span>:
|
|
<a name="l00058"></a><a class="code" href="classDocumentCache.html#s0">00058</a> <span class="keyword">static</span> <span class="keyword">const</span> XMLCh g_szUntyped[];
|
|
00059
|
|
<a name="l00060"></a><a class="code" href="classDocumentCache.html#w3">00060</a> <span class="keyword">enum</span> ValidationMode {
|
|
00061 VALIDATION_STRICT = 0,
|
|
00062 VALIDATION_LAX = 1,
|
|
00063 VALIDATION_SKIP = 2
|
|
00064 };
|
|
00065
|
|
<a name="l00067"></a><a class="code" href="classDocumentCache.html#a0">00067</a> <span class="keyword">virtual</span> ~DocumentCache() {}
|
|
00068
|
|
00070 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html">Node::Ptr</a> loadDocument(<span class="keyword">const</span> XMLCh* uri, <a class="code" href="classDynamicContext.html">DynamicContext</a> *context, <span class="keyword">const</span> QueryPathNode *projection = 0) = 0;
|
|
00072 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html">Node::Ptr</a> parseDocument(XERCES_CPP_NAMESPACE_QUALIFIER InputSource &srcToUse, <a class="code" href="classDynamicContext.html">DynamicContext</a> *context, <span class="keyword">const</span> QueryPathNode *projection = 0) = 0;
|
|
00074 <span class="keyword">virtual</span> <span class="keywordtype">void</span> parseDocument(XERCES_CPP_NAMESPACE_QUALIFIER InputSource &srcToUse, <a class="code" href="classEventHandler.html">EventHandler</a> *handler, <a class="code" href="classDynamicContext.html">DynamicContext</a> *context) = 0;
|
|
00075
|
|
00081 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setXMLEntityResolver(XERCES_CPP_NAMESPACE_QUALIFIER XMLEntityResolver* <span class="keyword">const</span> handler) = 0;
|
|
00082 <span class="keyword">virtual</span> XERCES_CPP_NAMESPACE_QUALIFIER XMLEntityResolver* getXMLEntityResolver() <span class="keyword">const </span>= 0;
|
|
00083
|
|
00084 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getDoPSVI() <span class="keyword">const </span>= 0;
|
|
00085 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDoPSVI(<span class="keywordtype">bool</span> value) = 0;
|
|
00086
|
|
00087 <span class="comment">/*</span>
|
|
00088 <span class="comment"> * returns true if the type represented by uri:typename is an instance of uriToCheck:typeNameToCheck </span>
|
|
00089 <span class="comment"> *</span>
|
|
00090 <span class="comment"> * ie: to check </span>
|
|
00091 <span class="comment"> * xs:integer instance of xs:decimal, </span>
|
|
00092 <span class="comment"> * call</span>
|
|
00093 <span class="comment"> * isTypeOrDerivedFromType("xs", "integer", "xs", "decimal") </span>
|
|
00094 <span class="comment"> * (except of course, call with URIs, not prefixes!)</span>
|
|
00095 <span class="comment"> */</span>
|
|
00096 <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;
|
|
00097 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isTypeDefined(<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>= 0;
|
|
00098
|
|
00099 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addSchemaLocation(<span class="keyword">const</span> XMLCh* uri, VectorOfStrings* locations, <a class="code" href="classStaticContext.html">StaticContext</a> *context, <span class="keyword">const</span> <a class="code" href="classLocationInfo.html">LocationInfo</a> *location) = 0;
|
|
00100
|
|
00102 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getSchemaUriId(<span class="keyword">const</span> XMLCh* uri) <span class="keyword">const </span>= 0;
|
|
00103 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getSchemaUri(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="keywordtype">id</span>) <span class="keyword">const </span>= 0;
|
|
00104
|
|
00105 <span class="keyword">virtual</span> XERCES_CPP_NAMESPACE_QUALIFIER GrammarResolver *getGrammarResolver() <span class="keyword">const </span>= 0;
|
|
00106
|
|
00107 <span class="keyword">virtual</span> XERCES_CPP_NAMESPACE_QUALIFIER DatatypeValidator* getDatatypeValidator(<span class="keyword">const</span> XMLCh* uri, <span class="keyword">const</span> XMLCh* typeName) <span class="keyword">const </span>= 0;
|
|
00108
|
|
00109 <span class="keyword">virtual</span> XERCES_CPP_NAMESPACE_QUALIFIER ComplexTypeInfo* getComplexTypeInfo(<span class="keyword">const</span> XMLCh* uri, <span class="keyword">const</span> XMLCh* typeName) <span class="keyword">const </span>= 0;
|
|
00110
|
|
00111 <span class="keyword">virtual</span> XERCES_CPP_NAMESPACE_QUALIFIER SchemaElementDecl* getElementDecl(<span class="keyword">const</span> XMLCh* elementUri, <span class="keyword">const</span> XMLCh* elementName) <span class="keyword">const </span>= 0;
|
|
00112
|
|
00113 <span class="keyword">virtual</span> XERCES_CPP_NAMESPACE_QUALIFIER SchemaAttDef* getAttributeDecl(<span class="keyword">const</span> XMLCh* attributeUri, <span class="keyword">const</span> XMLCh* attributeName) <span class="keyword">const </span>= 0;
|
|
00114
|
|
00115 <span class="keyword">virtual</span> DocumentCache *createDerivedCache(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) <span class="keyword">const </span>= 0;
|
|
00116 };
|
|
00117
|
|
00118 <span class="preprocessor">#endif</span>
|
|
00119 <span class="preprocessor"></span>
|
|
00120
|
|
00121
|
|
00122
|
|
00123
|
|
00124
|
|
00125
|
|
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 25 06:55:26 2009 for XQilla Simple API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
|
|
</body>
|
|
</html>
|