XQuilla/docs/dom3-api/DOMBuilder_8hpp-source.html
2020-02-17 22:05:20 +01:00

189 lines
18 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: DOMBuilder.hpp Source File</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&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>DOMBuilder.hpp</h1><a href="DOMBuilder_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef DOMBuilder_HEADER_GUARD_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define DOMBuilder_HEADER_GUARD_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/*</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright 2002,2004 The Apache Software Foundation.</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
<a name="l00020"></a>00020 <span class="comment">/*</span>
<a name="l00021"></a>00021 <span class="comment"> * $Id: DOMBuilder.hpp 176026 2004-09-08 13:57:07Z peiyongz $</span>
<a name="l00022"></a>00022 <span class="comment"> *</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;xercesc/util/XercesDefs.hpp&gt;</span>
<a name="l00027"></a>00027
<a name="l00028"></a>00028 XERCES_CPP_NAMESPACE_BEGIN
<a name="l00029"></a>00029
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="keyword">class </span>DOMErrorHandler;
<a name="l00032"></a>00032 <span class="keyword">class </span>DOMEntityResolver;
<a name="l00033"></a>00033 <span class="keyword">class </span>DOMInputSource;
<a name="l00034"></a>00034 <span class="keyword">class </span>DOMBuilderFilter;
<a name="l00035"></a>00035 <span class="keyword">class </span>DOMNode;
<a name="l00036"></a>00036 <span class="keyword">class </span>DOMDocument;
<a name="l00037"></a>00037 <span class="keyword">class </span>Grammar;
<a name="l00038"></a>00038
<a name="l00049"></a><a class="code" href="classxercesc_1_1DOMBuilder.html">00049</a> <span class="keyword">class </span>CDOM_EXPORT <a class="code" href="classxercesc_1_1DOMBuilder.html">DOMBuilder</a>
<a name="l00050"></a>00050 {
<a name="l00051"></a>00051 <span class="keyword">protected</span> :
<a name="l00052"></a>00052 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00053"></a>00053 <span class="comment">// Hidden constructors</span>
<a name="l00054"></a>00054 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00057"></a><a class="code" href="classxercesc_1_1DOMBuilder.html#68d87a7d2ae0c206c7d743512b440192">00057</a> <span class="comment"></span> <a class="code" href="classxercesc_1_1DOMBuilder.html">DOMBuilder</a>() {};
<a name="l00059"></a>00059
<a name="l00060"></a>00060 <span class="keyword">private</span>:
<a name="l00061"></a>00061 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00062"></a>00062 <span class="comment">// Unimplemented constructors and operators</span>
<a name="l00063"></a>00063 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00066"></a>00066 <span class="comment"></span> <a class="code" href="classxercesc_1_1DOMBuilder.html">DOMBuilder</a>(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMBuilder.html">DOMBuilder</a> &amp;);
<a name="l00067"></a>00067 <a class="code" href="classxercesc_1_1DOMBuilder.html">DOMBuilder</a> &amp; operator = (<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMBuilder.html">DOMBuilder</a> &amp;);
<a name="l00069"></a>00069
<a name="l00070"></a>00070 <span class="keyword">public</span>:
<a name="l00071"></a>00071 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00072"></a>00072 <span class="comment">// All constructors are hidden, just the destructor is available</span>
<a name="l00073"></a>00073 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00080"></a><a class="code" href="classxercesc_1_1DOMBuilder.html#0d64d41e603c4fc6a6aa33c23b24fd5e">00080</a> <span class="comment"></span> <span class="keyword">virtual</span> ~<a class="code" href="classxercesc_1_1DOMBuilder.html">DOMBuilder</a>() {};
<a name="l00082"></a>00082
<a name="l00083"></a>00083 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00084"></a>00084 <span class="comment">// Class types</span>
<a name="l00085"></a>00085 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00115"></a><a class="code" href="classxercesc_1_1DOMBuilder.html#e291bcc6e2a316a21aafab8555b6cbc6">00115</a> <span class="comment"></span> <span class="keyword">enum</span> <a class="code" href="classxercesc_1_1DOMBuilder.html#e291bcc6e2a316a21aafab8555b6cbc6">ActionType</a>
<a name="l00116"></a>00116 {
<a name="l00117"></a>00117 ACTION_REPLACE = 1,
<a name="l00118"></a>00118 ACTION_APPEND_AS_CHILDREN = 2,
<a name="l00119"></a>00119 ACTION_INSERT_AFTER = 3,
<a name="l00120"></a>00120 ACTION_INSERT_BEFORE = 4
<a name="l00121"></a>00121 };
<a name="l00123"></a>00123
<a name="l00124"></a>00124 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00125"></a>00125 <span class="comment">// Virtual DOMBuilder interface</span>
<a name="l00126"></a>00126 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00129"></a>00129 <span class="comment"></span>
<a name="l00130"></a>00130 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00131"></a>00131 <span class="comment">// Getter methods</span>
<a name="l00132"></a>00132 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00133"></a>00133
<a name="l00145"></a>00145 <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMErrorHandler.html">DOMErrorHandler</a>* getErrorHandler() = 0;
<a name="l00146"></a>00146
<a name="l00158"></a>00158 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMErrorHandler.html">DOMErrorHandler</a>* getErrorHandler() <span class="keyword">const </span>= 0;
<a name="l00159"></a>00159
<a name="l00171"></a>00171 <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMEntityResolver.html">DOMEntityResolver</a>* getEntityResolver() = 0;
<a name="l00172"></a>00172
<a name="l00184"></a>00184 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMEntityResolver.html">DOMEntityResolver</a>* getEntityResolver() <span class="keyword">const </span>= 0;
<a name="l00185"></a>00185
<a name="l00197"></a>00197 <span class="keyword">virtual</span> DOMBuilderFilter* getFilter() = 0;
<a name="l00198"></a>00198
<a name="l00210"></a>00210 <span class="keyword">virtual</span> <span class="keyword">const</span> DOMBuilderFilter* getFilter() <span class="keyword">const </span>= 0;
<a name="l00211"></a>00211
<a name="l00212"></a>00212 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00213"></a>00213 <span class="comment">// Setter methods</span>
<a name="l00214"></a>00214 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00232"></a>00232 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setErrorHandler(<a class="code" href="classxercesc_1_1DOMErrorHandler.html">DOMErrorHandler</a>* <span class="keyword">const</span> handler) = 0;
<a name="l00233"></a>00233
<a name="l00253"></a>00253 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setEntityResolver(<a class="code" href="classxercesc_1_1DOMEntityResolver.html">DOMEntityResolver</a>* <span class="keyword">const</span> handler) = 0;
<a name="l00254"></a>00254
<a name="l00276"></a>00276 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setFilter(DOMBuilderFilter* <span class="keyword">const</span> filter) = 0;
<a name="l00277"></a>00277
<a name="l00278"></a>00278 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00279"></a>00279 <span class="comment">// Feature methods</span>
<a name="l00280"></a>00280 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00304"></a>00304 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setFeature(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> name, <span class="keyword">const</span> <span class="keywordtype">bool</span> state) = 0;
<a name="l00305"></a>00305
<a name="l00321"></a>00321 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getFeature(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> name) <span class="keyword">const </span>= 0;
<a name="l00322"></a>00322
<a name="l00339"></a>00339 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> canSetFeature(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> name, <span class="keyword">const</span> <span class="keywordtype">bool</span> state) <span class="keyword">const </span>= 0;
<a name="l00340"></a>00340
<a name="l00341"></a>00341 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00342"></a>00342 <span class="comment">// Parsing methods</span>
<a name="l00343"></a>00343 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00374"></a>00374 <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMDocument.html">DOMDocument</a>* parse(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMInputSource.html">DOMInputSource</a>&amp; source) = 0;
<a name="l00375"></a>00375
<a name="l00403"></a>00403 <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMDocument.html">DOMDocument</a>* parseURI(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> systemId) = 0;
<a name="l00404"></a>00404
<a name="l00431"></a>00431 <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMDocument.html">DOMDocument</a>* parseURI(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> systemId) = 0;
<a name="l00432"></a>00432
<a name="l00461"></a>00461 <span class="keyword">virtual</span> <span class="keywordtype">void</span> parseWithContext
<a name="l00462"></a>00462 (
<a name="l00463"></a>00463 <span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMInputSource.html">DOMInputSource</a>&amp; source
<a name="l00464"></a>00464 , <a class="code" href="classxercesc_1_1DOMNode.html">DOMNode</a>* <span class="keyword">const</span> contextNode
<a name="l00465"></a>00465 , <span class="keyword">const</span> <span class="keywordtype">short</span> action
<a name="l00466"></a>00466 ) = 0;
<a name="l00468"></a>00468
<a name="l00469"></a>00469 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00470"></a>00470 <span class="comment">// Non-standard Extension</span>
<a name="l00471"></a>00471 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00474"></a>00474 <span class="comment"></span>
<a name="l00496"></a>00496 <span class="keyword">virtual</span> <span class="keywordtype">void</span>* getProperty(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> name) <span class="keyword">const </span>= 0 ;
<a name="l00497"></a>00497
<a name="l00519"></a>00519 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setProperty(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> name, <span class="keywordtype">void</span>* value) = 0 ;
<a name="l00520"></a>00520
<a name="l00527"></a>00527 <span class="keyword">virtual</span> <span class="keywordtype">void</span> release() = 0;
<a name="l00528"></a>00528
<a name="l00552"></a>00552 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resetDocumentPool() = 0;
<a name="l00553"></a>00553
<a name="l00581"></a>00581 <span class="keyword">virtual</span> Grammar* loadGrammar(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMInputSource.html">DOMInputSource</a>&amp; source,
<a name="l00582"></a>00582 <span class="keyword">const</span> <span class="keywordtype">short</span> grammarType,
<a name="l00583"></a>00583 <span class="keyword">const</span> <span class="keywordtype">bool</span> toCache = <span class="keyword">false</span>) = 0;
<a name="l00584"></a>00584
<a name="l00610"></a>00610 <span class="keyword">virtual</span> Grammar* loadGrammar(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> systemId,
<a name="l00611"></a>00611 <span class="keyword">const</span> <span class="keywordtype">short</span> grammarType,
<a name="l00612"></a>00612 <span class="keyword">const</span> <span class="keywordtype">bool</span> toCache = <span class="keyword">false</span>) = 0;
<a name="l00613"></a>00613
<a name="l00639"></a>00639 <span class="keyword">virtual</span> Grammar* loadGrammar(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> systemId,
<a name="l00640"></a>00640 <span class="keyword">const</span> <span class="keywordtype">short</span> grammarType,
<a name="l00641"></a>00641 <span class="keyword">const</span> <span class="keywordtype">bool</span> toCache = <span class="keyword">false</span>) = 0;
<a name="l00642"></a>00642
<a name="l00649"></a>00649 <span class="keyword">virtual</span> Grammar* getGrammar(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> nameSpaceKey) <span class="keyword">const </span>= 0;
<a name="l00650"></a>00650
<a name="l00656"></a>00656 <span class="keyword">virtual</span> Grammar* getRootGrammar() <span class="keyword">const </span>= 0;
<a name="l00657"></a>00657
<a name="l00664"></a>00664 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getURIText(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uriId) <span class="keyword">const </span>= 0;
<a name="l00665"></a>00665
<a name="l00669"></a>00669 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resetCachedGrammarPool() = 0;
<a name="l00670"></a>00670
<a name="l00676"></a>00676 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getSrcOffset() <span class="keyword">const </span>= 0;
<a name="l00677"></a>00677
<a name="l00679"></a>00679
<a name="l00680"></a>00680 };
<a name="l00681"></a>00681
<a name="l00682"></a>00682
<a name="l00683"></a>00683 XERCES_CPP_NAMESPACE_END
<a name="l00684"></a>00684
<a name="l00685"></a>00685 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:19:01 2006 for XQilla DOM Level 3 API by&nbsp;
<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>