blob: 0b047343c7d6ecdc3de27d4249485c9a58f48137 [file] [log] [blame]
<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>Xerces-C++: XMLElementDecl.hpp Source File</TITLE><link href="XercesApi.css" rel="stylesheet" type="text/css"></HEAD><BODY alink="#ff0000" bgcolor="#ffffff" leftmargin="4" link="#0000ff" marginheight="4" marginwidth="4" text="#000000" topmargin="4" vlink="#0000aa"><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" height="60" rowspan="3" valign="top" width="135"><IMG border="0" height="60" hspace="0" src="../resources/logo.gif" vspace="0" width="135"></TD><TD align="left" colspan="4" height="5" valign="top" width="456"><IMG border="0" height="5" hspace="0" src="../resources/line.gif" vspace="0" width="456"></TD><TD align="left" height="60" rowspan="3" valign="top" width="29"><IMG border="0" height="60" hspace="0" src="../resources/right.gif" vspace="0" width="29"></TD></TR><TR><TD align="left" bgcolor="#0086b2" colspan="4" height="35" valign="top" width="456"><IMG alt="" border="0" height="35" hspace="0" src="../graphics/api-header.jpg" vspace="0" width="456"></TD></TR><TR><TD align="left" height="20" valign="top" width="168"><IMG border="0" height="20" hspace="0" src="../resources/bottom.gif" vspace="0" width="168"></TD><TD align="left" height="20" valign="top" width="96"><A href="http://xml.apache.org/" onMouseOut="rolloverOff('xml');" onMouseOver="rolloverOn('xml');" target="new"><IMG alt="http://xml.apache.org/" border="0" height="20" hspace="0" name="xml" onLoad="rolloverLoad('xml','../resources/button-xml-hi.gif','../resources/button-xml-lo.gif');" src="../resources/button-xml-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.apache.org/" onMouseOut="rolloverOff('asf');" onMouseOver="rolloverOn('asf');" target="new"><IMG alt="http://www.apache.org/" border="0" height="20" hspace="0" name="asf" onLoad="rolloverLoad('asf','../resources/button-asf-hi.gif','../resources/button-asf-lo.gif');" src="../resources/button-asf-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.w3.org/" onMouseOut="rolloverOff('w3c');" onMouseOver="rolloverOn('w3c');" target="new"><IMG alt="http://www.w3.org/" border="0" height="20" hspace="0" name="w3c" onLoad="rolloverLoad('w3c','../resources/button-w3c-hi.gif','../resources/button-w3c-lo.gif');" src="../resources/button-w3c-lo.gif" vspace="0" width="96"></A></TD></TR></TABLE><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" valign="top" width="120"><IMG border="0" height="14" hspace="0" src="../resources/join.gif" vspace="0" width="120"><BR>
<A href="../../index.html" onMouseOut="rolloverOff('side-ext-2');" onMouseOver="rolloverOn('side-ext-2');"><IMG alt="Home" border="0" height="12" hspace="0" name="side-ext-2" onLoad="rolloverLoad('side-ext-2','../graphics/ext-2-label-2.jpg','../graphics/ext-2-label-3.jpg');" src="../graphics/ext-2-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../index.html" onMouseOut="rolloverOff('side-index');" onMouseOver="rolloverOn('side-index');"><IMG alt="Readme" border="0" height="12" hspace="0" name="side-index" onLoad="rolloverLoad('side-index','../graphics/index-label-2.jpg','../graphics/index-label-3.jpg');" src="../graphics/index-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../charter.html" onMouseOut="rolloverOff('side-charter');" onMouseOver="rolloverOn('side-charter');"><IMG alt="Charter" border="0" height="12" hspace="0" name="side-charter" onLoad="rolloverLoad('side-charter','../graphics/charter-label-2.jpg','../graphics/charter-label-3.jpg');" src="../graphics/charter-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../releases.html" onMouseOut="rolloverOff('side-releases');" onMouseOver="rolloverOn('side-releases');"><IMG alt="Release Info" border="0" height="12" hspace="0" name="side-releases" onLoad="rolloverLoad('side-releases','../graphics/releases-label-2.jpg','../graphics/releases-label-3.jpg');" src="../graphics/releases-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../install.html" onMouseOut="rolloverOff('side-install');" onMouseOver="rolloverOn('side-install');"><IMG alt="Installation" border="0" height="12" hspace="0" name="side-install" onLoad="rolloverLoad('side-install','../graphics/install-label-2.jpg','../graphics/install-label-3.jpg');" src="../graphics/install-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="http://xerces.apache.org/xerces-c/download.cgi" onMouseOut="rolloverOff('side-ext-20');" onMouseOver="rolloverOn('side-ext-20');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-20" onLoad="rolloverLoad('side-ext-20','../graphics/ext-20-label-2.jpg','../graphics/ext-20-label-3.jpg');" src="../graphics/ext-20-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build Instructions" border="0" height="12" hspace="0" name="side-build" onLoad="rolloverLoad('side-build','../graphics/build-label-2.jpg','../graphics/build-label-3.jpg');" src="../graphics/build-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../program.html" onMouseOut="rolloverOff('side-program');" onMouseOver="rolloverOn('side-program');"><IMG alt="Programming" border="0" height="12" hspace="0" name="side-program" onLoad="rolloverLoad('side-program','../graphics/program-label-2.jpg','../graphics/program-label-3.jpg');" src="../graphics/program-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../samples.html" onMouseOut="rolloverOff('side-samples');" onMouseOver="rolloverOn('side-samples');"><IMG alt="Samples" border="0" height="12" hspace="0" name="side-samples" onLoad="rolloverLoad('side-samples','../graphics/samples-label-2.jpg','../graphics/samples-label-3.jpg');" src="../graphics/samples-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../faqs.html" onMouseOut="rolloverOff('side-faqs');" onMouseOver="rolloverOn('side-faqs');"><IMG alt="FAQs" border="0" height="12" hspace="0" name="side-faqs" onLoad="rolloverLoad('side-faqs','../graphics/faqs-label-2.jpg','../graphics/faqs-label-3.jpg');" src="../graphics/faqs-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../api.html" onMouseOut="rolloverOff('side-api');" onMouseOver="rolloverOn('side-api');"><IMG alt="API Docs" border="0" height="12" hspace="0" name="side-api" onLoad="rolloverLoad('side-api','../graphics/api-label-2.jpg','../graphics/api-label-3.jpg');" src="../graphics/api-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-88');" onMouseOver="rolloverOn('side-ext-88');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-88" onLoad="rolloverLoad('side-ext-88','../graphics/ext-88-label-2.jpg','../graphics/ext-88-label-3.jpg');" src="../graphics/ext-88-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../migrate.html" onMouseOut="rolloverOff('side-migrate');" onMouseOver="rolloverOn('side-migrate');"><IMG alt="Migration Guide" border="0" height="12" hspace="0" name="side-migrate" onLoad="rolloverLoad('side-migrate','../graphics/migrate-label-2.jpg','../graphics/migrate-label-3.jpg');" src="../graphics/migrate-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../feedback.html" onMouseOut="rolloverOff('side-feedback');" onMouseOver="rolloverOn('side-feedback');"><IMG alt="Feedback" border="0" height="12" hspace="0" name="side-feedback" onLoad="rolloverLoad('side-feedback','../graphics/feedback-label-2.jpg','../graphics/feedback-label-3.jpg');" src="../graphics/feedback-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../bug-report.html" onMouseOut="rolloverOff('side-bug-report');" onMouseOver="rolloverOn('side-bug-report');"><IMG alt="Bug-Reporting" border="0" height="12" hspace="0" name="side-bug-report" onLoad="rolloverLoad('side-bug-report','../graphics/bug-report-label-2.jpg','../graphics/bug-report-label-3.jpg');" src="../graphics/bug-report-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../mailing-lists.html" onMouseOut="rolloverOff('side-mailing-lists');" onMouseOver="rolloverOn('side-mailing-lists');"><IMG alt="Mailing Lists" border="0" height="12" hspace="0" name="side-mailing-lists" onLoad="rolloverLoad('side-mailing-lists','../graphics/mailing-lists-label-2.jpg','../graphics/mailing-lists-label-3.jpg');" src="../graphics/mailing-lists-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../source-repository.html" onMouseOut="rolloverOff('side-source-repository');" onMouseOver="rolloverOn('side-source-repository');"><IMG alt="Source Repository" border="0" height="12" hspace="0" name="side-source-repository" onLoad="rolloverLoad('side-source-repository','../graphics/source-repository-label-2.jpg','../graphics/source-repository-label-3.jpg');" src="../graphics/source-repository-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../applications.html" onMouseOut="rolloverOff('side-applications');" onMouseOver="rolloverOn('side-applications');"><IMG alt="Applications" border="0" height="12" hspace="0" name="side-applications" onLoad="rolloverLoad('side-applications','../graphics/applications-label-2.jpg','../graphics/applications-label-3.jpg');" src="../graphics/applications-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="14" hspace="0" src="../resources/close.gif" vspace="0" width="120"><BR></TD><TD align="left" valign="top" width="500"><TABLE border="0" cellpadding="3" cellspacing="0"><TR><TD>
<TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#FFFFFF" colspan="2" width="494"><TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="492"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><IMG border="0" height="2" hspace="0" src="../resources/void.gif" vspace="0" width="2"><B>API Docs for SAX and DOM</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#017299" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10">&nbsp;</TD><TD width="484"><FONT color="#000000" face="arial,helvetica,sanserif">
<P>
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
</ul>
</div>
<h1>XMLElementDecl.hpp</h1><a href="XMLElementDecl_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"> * Licensed to the Apache Software Foundation (ASF) under one or more</span>
<a name="l00003"></a>00003 <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span>
<a name="l00004"></a>00004 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
<a name="l00005"></a>00005 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
<a name="l00006"></a>00006 <span class="comment"> * (the "License"); you may not use this file except in compliance with</span>
<a name="l00007"></a>00007 <span class="comment"> * the License. You may obtain a copy of the License at</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00010"></a>00010 <span class="comment"> * </span>
<a name="l00011"></a>00011 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00012"></a>00012 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00013"></a>00013 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00014"></a>00014 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00015"></a>00015 <span class="comment"> * limitations under the License.</span>
<a name="l00016"></a>00016 <span class="comment"> */</span>
<a name="l00017"></a>00017
<a name="l00018"></a>00018 <span class="comment">/*</span>
<a name="l00019"></a>00019 <span class="comment"> * $Id: XMLElementDecl.hpp 568078 2007-08-21 11:43:25Z amassari $</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="preprocessor">#if !defined(XMLELEMENTDECL_HPP)</span>
<a name="l00023"></a><a class="code" href="XMLElementDecl_8hpp.html#c5fc8243ed00e1b88408dd964dc8e26a">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define XMLELEMENTDECL_HPP</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="XMLAttr_8hpp.html">xercesc/framework/XMLAttr.hpp</a>&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="XMLAttDefList_8hpp.html">xercesc/framework/XMLAttDefList.hpp</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="XMLString_8hpp.html">xercesc/util/XMLString.hpp</a>&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;xercesc/internal/XSerializable.hpp&gt;</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <a class="code" href="XercesDefs_8hpp.html#43d74fa53d868d978f3e97cbb78b194d">XERCES_CPP_NAMESPACE_BEGIN</a>
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keyword">class </span>ContentSpecNode;
<a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="classXMLContentModel.html" title="This class defines the abstract interface for all content models.">XMLContentModel</a>;
<a name="l00035"></a>00035
<a name="l00051"></a><a class="code" href="classXMLElementDecl.html">00051</a> <span class="keyword">class </span><a class="code" href="XercesDefs_8hpp.html#13df5a01e63e51f62a1467b588b59054"></a> <a class="code" href="classXMLElementDecl.html" title="This class defines the core information of an element declaration.">XMLElementDecl</a> : <span class="keyword">public</span> XSerializable, <span class="keyword">public</span> <a class="code" href="classXMemory.html" title="This class makes it possible to override the C++ memory management by adding new/delete...">XMemory</a>
<a name="l00052"></a>00052 {
<a name="l00053"></a>00053 <span class="keyword">public</span>:
<a name="l00054"></a>00054 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00055"></a>00055 <span class="comment">// Class specific types</span>
<a name="l00056"></a>00056 <span class="comment">//</span>
<a name="l00057"></a>00057 <span class="comment">// CreateReasons</span>
<a name="l00058"></a>00058 <span class="comment">// This type is used to store how an element declaration got into</span>
<a name="l00059"></a>00059 <span class="comment">// the grammar's element pool. They are faulted in for various</span>
<a name="l00060"></a>00060 <span class="comment">// reasons.</span>
<a name="l00061"></a>00061 <span class="comment">//</span>
<a name="l00062"></a>00062 <span class="comment">// LookupOpts</span>
<a name="l00063"></a>00063 <span class="comment">// These are the values used by the attribute lookup methods.</span>
<a name="l00064"></a>00064 <span class="comment">//</span>
<a name="l00065"></a>00065 <span class="comment">// CharDataOpts</span>
<a name="l00066"></a>00066 <span class="comment">// This is used to indicate how this type of element reacts to</span>
<a name="l00067"></a>00067 <span class="comment">// character data as content.</span>
<a name="l00068"></a>00068 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00069"></a><a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aa">00069</a> <span class="keyword">enum</span> <a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aa">CreateReasons</a>
<a name="l00070"></a>00070 {
<a name="l00071"></a><a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aa6ea7ebbb617f944752e95c68cbd8bbd0">00071</a> NoReason
<a name="l00072"></a><a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aa5b140b134d9b9f934b740c7e995aa836">00072</a> , Declared
<a name="l00073"></a><a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aaf89d8c19c104e67286afeff0d401ce89">00073</a> , AttList
<a name="l00074"></a><a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aafeee0959f6ea3c8db3e3bb651364af5d">00074</a> , InContentModel
<a name="l00075"></a><a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aa3698d0f84f817958f37821f0eb205382">00075</a> , AsRootElem
<a name="l00076"></a><a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aae8a7a59607f85cd925e175f5c0e26d85">00076</a> , JustFaultIn
<a name="l00077"></a>00077 };
<a name="l00078"></a>00078
<a name="l00083"></a><a class="code" href="classXMLElementDecl.html#4944e397b4469a1303efb85704491e1d">00083</a> <span class="keyword">enum</span> <a class="code" href="classXMLElementDecl.html#4944e397b4469a1303efb85704491e1d">LookupOpts</a>
<a name="l00084"></a>00084 {
<a name="l00085"></a><a class="code" href="classXMLElementDecl.html#4944e397b4469a1303efb85704491e1db523a5469a02725f82b21a02b4fd2fb6">00085</a> AddIfNotFound
<a name="l00086"></a><a class="code" href="classXMLElementDecl.html#4944e397b4469a1303efb85704491e1de507b7dfe56b31ba1e691f76c6f89976">00086</a> , FailIfNotFound
<a name="l00087"></a>00087 };
<a name="l00088"></a>00088
<a name="l00089"></a><a class="code" href="classXMLElementDecl.html#44870fe57f7421bc6506b835046ed1b0">00089</a> <span class="keyword">enum</span> <a class="code" href="classXMLElementDecl.html#44870fe57f7421bc6506b835046ed1b0">CharDataOpts</a>
<a name="l00090"></a>00090 {
<a name="l00091"></a><a class="code" href="classXMLElementDecl.html#44870fe57f7421bc6506b835046ed1b00a2b984dff23855ba968a2d92fd800a7">00091</a> NoCharData
<a name="l00092"></a><a class="code" href="classXMLElementDecl.html#44870fe57f7421bc6506b835046ed1b0a3ed5983fbb5d209246f4aae94a558a8">00092</a> , SpacesOk
<a name="l00093"></a><a class="code" href="classXMLElementDecl.html#44870fe57f7421bc6506b835046ed1b02f1f5a4d2563647af3ebf576d4988021">00093</a> , AllCharData
<a name="l00094"></a>00094 };
<a name="l00095"></a>00095
<a name="l00096"></a>00096
<a name="l00097"></a>00097 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00098"></a>00098 <span class="comment">// Public static data</span>
<a name="l00099"></a>00099 <span class="comment">//</span>
<a name="l00100"></a>00100 <span class="comment">// fgInvalidElemId</span>
<a name="l00101"></a>00101 <span class="comment">// A value to represent an invalid element node id.</span>
<a name="l00102"></a>00102 <span class="comment">//</span>
<a name="l00103"></a>00103 <span class="comment">// fgPCDataElemId</span>
<a name="l00104"></a>00104 <span class="comment">// This is the value to use to represent a PCDATA node when an</span>
<a name="l00105"></a>00105 <span class="comment">// element id is required.</span>
<a name="l00106"></a>00106 <span class="comment">//</span>
<a name="l00107"></a>00107 <span class="comment">// fgPCDataElemName</span>
<a name="l00108"></a>00108 <span class="comment">// This is the value to use to represent a PCDATA node when an</span>
<a name="l00109"></a>00109 <span class="comment">// element name is required.</span>
<a name="l00110"></a>00110 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00111"></a><a class="code" href="classXMLElementDecl.html#afc21717d7759f3fe357e92707d1870d">00111</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fgInvalidElemId;
<a name="l00112"></a><a class="code" href="classXMLElementDecl.html#79dd4823913a168fb46ffb6b0bfc78ab">00112</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fgPCDataElemId;
<a name="l00113"></a><a class="code" href="classXMLElementDecl.html#a7b8ed177aca128f956132dea880cf6b">00113</a> <span class="keyword">static</span> <span class="keyword">const</span> XMLCh fgPCDataElemName[];
<a name="l00114"></a>00114
<a name="l00115"></a>00115
<a name="l00116"></a>00116
<a name="l00117"></a>00117 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00118"></a>00118 <span class="comment">// Destructor</span>
<a name="l00119"></a>00119 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00122"></a>00122 <span class="comment"></span> <span class="keyword">virtual</span> ~<a class="code" href="classXMLElementDecl.html" title="This class defines the core information of an element declaration.">XMLElementDecl</a>();
<a name="l00124"></a>00124
<a name="l00125"></a>00125
<a name="l00126"></a>00126 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00127"></a>00127 <span class="comment">// The virtual element decl interface</span>
<a name="l00128"></a>00128 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00129"></a>00129
<a name="l00132"></a>00132
<a name="l00163"></a>00163 <span class="keyword">virtual</span> <a class="code" href="classXMLAttDef.html" title="Represents the core information of an atribute definition.">XMLAttDef</a>* findAttr
<a name="l00164"></a>00164 (
<a name="l00165"></a>00165 <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> qName
<a name="l00166"></a>00166 , <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uriId
<a name="l00167"></a>00167 , <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> baseName
<a name="l00168"></a>00168 , <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> prefix
<a name="l00169"></a>00169 , <span class="keyword">const</span> <a class="code" href="classXMLElementDecl.html#4944e397b4469a1303efb85704491e1d">LookupOpts</a> options
<a name="l00170"></a>00170 , <span class="keywordtype">bool</span>&amp; wasAdded
<a name="l00171"></a>00171 ) <span class="keyword">const</span> = 0;
<a name="l00172"></a>00172
<a name="l00184"></a>00184 <span class="keyword">virtual</span> <a class="code" href="classXMLAttDefList.html" title="This class defines an abstract interface that all validators must support.">XMLAttDefList</a>&amp; getAttDefList() <span class="keyword">const</span> = 0;
<a name="l00185"></a>00185
<a name="l00193"></a>00193 <span class="keyword">virtual</span> <a class="code" href="classXMLElementDecl.html#44870fe57f7421bc6506b835046ed1b0">CharDataOpts</a> getCharDataOpts() <span class="keyword">const</span> = 0;
<a name="l00194"></a>00194
<a name="l00201"></a>00201 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasAttDefs() <span class="keyword">const</span> = 0;
<a name="l00202"></a>00202
<a name="l00210"></a>00210 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> resetDefs() = 0;
<a name="l00211"></a>00211
<a name="l00219"></a>00219 <span class="keyword">virtual</span> <span class="keyword">const</span> ContentSpecNode* getContentSpec() <span class="keyword">const</span> = 0;
<a name="l00220"></a>00220
<a name="l00226"></a>00226 <span class="keyword">virtual</span> ContentSpecNode* getContentSpec() = 0;
<a name="l00227"></a>00227
<a name="l00237"></a>00237 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setContentSpec(ContentSpecNode* toAdopt) = 0;
<a name="l00238"></a>00238
<a name="l00250"></a>00250 <span class="keyword">virtual</span> <a class="code" href="classXMLContentModel.html" title="This class defines the abstract interface for all content models.">XMLContentModel</a>* getContentModel() = 0;
<a name="l00251"></a>00251
<a name="l00263"></a>00263 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setContentModel(<a class="code" href="classXMLContentModel.html" title="This class defines the abstract interface for all content models.">XMLContentModel</a>* <span class="keyword">const</span> newModelToAdopt) = 0;
<a name="l00264"></a>00264
<a name="l00277"></a>00277 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getFormattedContentModel () <span class="keyword">const</span> = 0;
<a name="l00278"></a>00278
<a name="l00280"></a>00280
<a name="l00281"></a>00281
<a name="l00282"></a>00282 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00283"></a>00283 <span class="comment">// Getter methods</span>
<a name="l00284"></a>00284 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00285"></a>00285
<a name="l00288"></a>00288
<a name="l00296"></a>00296 <span class="keyword">const</span> XMLCh* getBaseName() <span class="keyword">const</span>;
<a name="l00297"></a>00297 XMLCh* getBaseName();
<a name="l00298"></a>00298
<a name="l00305"></a>00305 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getURI() <span class="keyword">const</span>;
<a name="l00306"></a>00306
<a name="l00314"></a>00314 <span class="keyword">const</span> <a class="code" href="classQName.html">QName</a>* getElementName() <span class="keyword">const</span>;
<a name="l00315"></a>00315 <a class="code" href="classQName.html">QName</a>* getElementName();
<a name="l00316"></a>00316
<a name="l00325"></a>00325 <span class="keyword">const</span> XMLCh* getFullName() <span class="keyword">const</span>;
<a name="l00326"></a>00326
<a name="l00338"></a>00338 <a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aa">CreateReasons</a> getCreateReason() <span class="keyword">const</span>;
<a name="l00339"></a>00339
<a name="l00349"></a>00349 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getId() <span class="keyword">const</span>;
<a name="l00350"></a>00350
<a name="l00351"></a>00351
<a name="l00356"></a>00356 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getDOMTypeInfoUri() <span class="keyword">const</span> = 0;
<a name="l00357"></a>00357
<a name="l00362"></a>00362 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getDOMTypeInfoName() <span class="keyword">const</span> = 0;
<a name="l00363"></a>00363
<a name="l00364"></a>00364
<a name="l00374"></a>00374 <span class="keywordtype">bool</span> isDeclared() <span class="keyword">const</span>;
<a name="l00375"></a>00375
<a name="l00384"></a>00384 <span class="keywordtype">bool</span> isExternal() <span class="keyword">const</span>;
<a name="l00385"></a>00385
<a name="l00393"></a>00393 <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* getMemoryManager() <span class="keyword">const</span>;
<a name="l00394"></a>00394
<a name="l00396"></a>00396
<a name="l00397"></a>00397
<a name="l00398"></a>00398 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00399"></a>00399 <span class="comment">// Setter methods</span>
<a name="l00400"></a>00400 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00401"></a>00401
<a name="l00404"></a>00404
<a name="l00415"></a>00415 <span class="keywordtype">void</span> setElementName(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> prefix
<a name="l00416"></a>00416 , <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> localPart
<a name="l00417"></a>00417 , <span class="keyword">const</span> <span class="keywordtype">int</span> uriId );
<a name="l00418"></a>00418
<a name="l00428"></a>00428 <span class="keywordtype">void</span> setElementName(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> rawName
<a name="l00429"></a>00429 , <span class="keyword">const</span> <span class="keywordtype">int</span> uriId );
<a name="l00430"></a>00430
<a name="l00439"></a>00439 <span class="keywordtype">void</span> setElementName(<span class="keyword">const</span> <a class="code" href="classQName.html">QName</a>* <span class="keyword">const</span> elementName);
<a name="l00440"></a>00440
<a name="l00451"></a>00451 <span class="keywordtype">void</span> setCreateReason(<span class="keyword">const</span> <a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aa">CreateReasons</a> newReason);
<a name="l00452"></a>00452
<a name="l00459"></a>00459 <span class="keywordtype">void</span> setId(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> newId);
<a name="l00460"></a>00460
<a name="l00461"></a>00461
<a name="l00465"></a>00465 <span class="keywordtype">void</span> setExternalElemDeclaration(<span class="keyword">const</span> <span class="keywordtype">bool</span> aValue);
<a name="l00466"></a>00466
<a name="l00468"></a>00468
<a name="l00469"></a>00469
<a name="l00470"></a>00470 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00471"></a>00471 <span class="comment">// Miscellaneous methods</span>
<a name="l00472"></a>00472 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00473"></a>00473
<a name="l00476"></a>00476
<a name="l00478"></a>00478
<a name="l00479"></a>00479 <span class="comment">/***</span>
<a name="l00480"></a>00480 <span class="comment"> * Support for Serialization/De-serialization</span>
<a name="l00481"></a>00481 <span class="comment"> ***/</span>
<a name="l00482"></a>00482 DECL_XSERIALIZABLE(<a class="code" href="classXMLElementDecl.html" title="This class defines the core information of an element declaration.">XMLElementDecl</a>)
<a name="l00483"></a>00483
<a name="l00484"></a><a class="code" href="classXMLElementDecl.html#29b943d4557d3922d520ba034c8276de">00484</a> enum <a class="code" href="classXMLElementDecl.html#29b943d4557d3922d520ba034c8276de">objectType</a>
<a name="l00485"></a>00485 {
<a name="l00486"></a><a class="code" href="classXMLElementDecl.html#29b943d4557d3922d520ba034c8276de1cedeaedd7216de31223a41e2bd1bc2f">00486</a> Schema
<a name="l00487"></a><a class="code" href="classXMLElementDecl.html#29b943d4557d3922d520ba034c8276de5ef04d628563f5b7f64880851c37ceba">00487</a> , DTD
<a name="l00488"></a><a class="code" href="classXMLElementDecl.html#29b943d4557d3922d520ba034c8276de697bb7c4ff963ec996716075a91bd1bd">00488</a> , UnKnown
<a name="l00489"></a>00489 };
<a name="l00490"></a>00490
<a name="l00491"></a>00491 <span class="keyword">virtual</span> <a class="code" href="classXMLElementDecl.html#29b943d4557d3922d520ba034c8276de">XMLElementDecl::objectType</a> getObjectType() <span class="keyword">const</span> = 0;
<a name="l00492"></a>00492
<a name="l00493"></a>00493 <span class="keyword">static</span> <span class="keywordtype">void</span> storeElementDecl(XSerializeEngine&amp; serEng
<a name="l00494"></a>00494 , <a class="code" href="classXMLElementDecl.html" title="This class defines the core information of an element declaration.">XMLElementDecl</a>* <span class="keyword">const</span> element);
<a name="l00495"></a>00495
<a name="l00496"></a>00496 <span class="keyword">static</span> <a class="code" href="classXMLElementDecl.html" title="This class defines the core information of an element declaration.">XMLElementDecl</a>* loadElementDecl(XSerializeEngine&amp; serEng);
<a name="l00497"></a>00497
<a name="l00498"></a>00498 <span class="keyword">protected</span> :
<a name="l00499"></a>00499 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00500"></a>00500 <span class="comment">// Hidden constructors</span>
<a name="l00501"></a>00501 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00502"></a>00502 <a class="code" href="classXMLElementDecl.html" title="This class defines the core information of an element declaration.">XMLElementDecl</a>(<a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00503"></a>00503
<a name="l00504"></a>00504 <span class="keyword">private</span> :
<a name="l00505"></a>00505 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00506"></a>00506 <span class="comment">// Unimplemented constructors and operators</span>
<a name="l00507"></a>00507 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00508"></a>00508 <a class="code" href="classXMLElementDecl.html" title="This class defines the core information of an element declaration.">XMLElementDecl</a>(<span class="keyword">const</span> <a class="code" href="classXMLElementDecl.html" title="This class defines the core information of an element declaration.">XMLElementDecl</a>&amp;);
<a name="l00509"></a>00509 <a class="code" href="classXMLElementDecl.html" title="This class defines the core information of an element declaration.">XMLElementDecl</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classXMLElementDecl.html" title="This class defines the core information of an element declaration.">XMLElementDecl</a>&amp;);
<a name="l00510"></a>00510
<a name="l00511"></a>00511
<a name="l00512"></a>00512 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00513"></a>00513 <span class="comment">// Data members</span>
<a name="l00514"></a>00514 <span class="comment">//</span>
<a name="l00515"></a>00515 <span class="comment">// fElementName</span>
<a name="l00516"></a>00516 <span class="comment">// This is the name of the element decl.</span>
<a name="l00517"></a>00517 <span class="comment">//</span>
<a name="l00518"></a>00518 <span class="comment">// fCreateReason</span>
<a name="l00519"></a>00519 <span class="comment">// We sometimes have to put an element decl object into the elem</span>
<a name="l00520"></a>00520 <span class="comment">// decl pool before the element's declaration is seen, such as when</span>
<a name="l00521"></a>00521 <span class="comment">// its used in another element's content model or an att list is</span>
<a name="l00522"></a>00522 <span class="comment">// seen for it. This flag tells us whether its been declared, and</span>
<a name="l00523"></a>00523 <span class="comment">// if not why it had to be created.</span>
<a name="l00524"></a>00524 <span class="comment">//</span>
<a name="l00525"></a>00525 <span class="comment">// fId</span>
<a name="l00526"></a>00526 <span class="comment">// The unique id of this element. This is created by the derived</span>
<a name="l00527"></a>00527 <span class="comment">// class, or more accurately the grammar that owns the objects</span>
<a name="l00528"></a>00528 <span class="comment">// of the derived types. But, since they all have to have them, we</span>
<a name="l00529"></a>00529 <span class="comment">// let them all store the id here. It is defaulted to have the</span>
<a name="l00530"></a>00530 <span class="comment">// value fgInvalidElem until explicitly set.</span>
<a name="l00531"></a>00531 <span class="comment">//</span>
<a name="l00532"></a>00532 <span class="comment">// fExternalElement</span>
<a name="l00533"></a>00533 <span class="comment">// This flag indicates whether or the element was declared externally.</span>
<a name="l00534"></a>00534 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00535"></a>00535 <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* fMemoryManager;
<a name="l00536"></a>00536 <a class="code" href="classQName.html">QName</a>* fElementName;
<a name="l00537"></a>00537 CreateReasons fCreateReason;
<a name="l00538"></a>00538 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fId;
<a name="l00539"></a>00539 <span class="keywordtype">bool</span> fExternalElement;
<a name="l00540"></a>00540 };
<a name="l00541"></a>00541
<a name="l00542"></a>00542
<a name="l00543"></a>00543 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00544"></a>00544 <span class="comment">// XMLElementDecl: Getter methods</span>
<a name="l00545"></a>00545 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00546"></a><a class="code" href="classXMLElementDecl.html#4b8e71ee50aafabc32c08c4b7024d00c">00546</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classXMLElementDecl.html#4b8e71ee50aafabc32c08c4b7024d00c" title="Get the base name of this element type.">XMLElementDecl::getBaseName</a>()<span class="keyword"> const</span>
<a name="l00547"></a>00547 <span class="keyword"></span>{
<a name="l00548"></a>00548 <span class="keywordflow">return</span> fElementName-&gt;<a class="code" href="classQName.html#a22c091478cc3ec4fa64c9d448fdeb0d">getLocalPart</a>();
<a name="l00549"></a>00549 }
<a name="l00550"></a>00550
<a name="l00551"></a><a class="code" href="classXMLElementDecl.html#8963b2d813cc5386096164147ed7d6e9">00551</a> <span class="keyword">inline</span> XMLCh* <a class="code" href="classXMLElementDecl.html#4b8e71ee50aafabc32c08c4b7024d00c" title="Get the base name of this element type.">XMLElementDecl::getBaseName</a>()
<a name="l00552"></a>00552 {
<a name="l00553"></a>00553 <span class="keywordflow">return</span> fElementName-&gt;<a class="code" href="classQName.html#a22c091478cc3ec4fa64c9d448fdeb0d">getLocalPart</a>();
<a name="l00554"></a>00554 }
<a name="l00555"></a>00555
<a name="l00556"></a><a class="code" href="classXMLElementDecl.html#c2d6e48600f45dcaaedd6f278e7d285e">00556</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classXMLElementDecl.html#c2d6e48600f45dcaaedd6f278e7d285e" title="Get the URI id of this element type.">XMLElementDecl::getURI</a>()<span class="keyword"> const</span>
<a name="l00557"></a>00557 <span class="keyword"></span>{
<a name="l00558"></a>00558 <span class="keywordflow">return</span> fElementName-&gt;<a class="code" href="classQName.html#e8a5c241b363084db7ca67c1982df060">getURI</a>();
<a name="l00559"></a>00559 }
<a name="l00560"></a>00560
<a name="l00561"></a><a class="code" href="classXMLElementDecl.html#a8581855ead5baddd945aab819c91ead">00561</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classQName.html">QName</a>* <a class="code" href="classXMLElementDecl.html#a8581855ead5baddd945aab819c91ead" title="Get the QName of this element type.">XMLElementDecl::getElementName</a>()<span class="keyword"> const</span>
<a name="l00562"></a>00562 <span class="keyword"></span>{
<a name="l00563"></a>00563 <span class="keywordflow">return</span> fElementName;
<a name="l00564"></a>00564 }
<a name="l00565"></a>00565
<a name="l00566"></a><a class="code" href="classXMLElementDecl.html#3f73052c506a1a8066c17c59e7485964">00566</a> <span class="keyword">inline</span> <a class="code" href="classQName.html">QName</a>* <a class="code" href="classXMLElementDecl.html#a8581855ead5baddd945aab819c91ead" title="Get the QName of this element type.">XMLElementDecl::getElementName</a>()
<a name="l00567"></a>00567 {
<a name="l00568"></a>00568 <span class="keywordflow">return</span> fElementName;
<a name="l00569"></a>00569 }
<a name="l00570"></a>00570
<a name="l00571"></a><a class="code" href="classXMLElementDecl.html#ab7a3db5fbbe3c7e21956d78fa18ab6d">00571</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classXMLElementDecl.html#ab7a3db5fbbe3c7e21956d78fa18ab6d" title="Get the full name of this element type.">XMLElementDecl::getFullName</a>()<span class="keyword"> const</span>
<a name="l00572"></a>00572 <span class="keyword"></span>{
<a name="l00573"></a>00573 <span class="keywordflow">return</span> fElementName-&gt;<a class="code" href="classQName.html#153e7cc021b9a63f3b1add304b6b0698">getRawName</a>();
<a name="l00574"></a>00574 }
<a name="l00575"></a>00575
<a name="l00576"></a><a class="code" href="classXMLElementDecl.html#dc24848e8722ceed15af8366900206fd">00576</a> <span class="keyword">inline</span> <a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aa">XMLElementDecl::CreateReasons</a> <a class="code" href="classXMLElementDecl.html#dc24848e8722ceed15af8366900206fd" title="Get the create reason for this element type.">XMLElementDecl::getCreateReason</a>()<span class="keyword"> const</span>
<a name="l00577"></a>00577 <span class="keyword"></span>{
<a name="l00578"></a>00578 <span class="keywordflow">return</span> fCreateReason;
<a name="l00579"></a>00579 }
<a name="l00580"></a>00580
<a name="l00581"></a><a class="code" href="classXMLElementDecl.html#d59c671130bf40c69e53cf624088f0bd">00581</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classXMLElementDecl.html#d59c671130bf40c69e53cf624088f0bd" title="Get the element decl pool id for this element type.">XMLElementDecl::getId</a>()<span class="keyword"> const</span>
<a name="l00582"></a>00582 <span class="keyword"></span>{
<a name="l00583"></a>00583 <span class="keywordflow">return</span> fId;
<a name="l00584"></a>00584 }
<a name="l00585"></a>00585
<a name="l00586"></a><a class="code" href="classXMLElementDecl.html#52c952aa2f0ddbebcbcc8a28dcbade89">00586</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classXMLElementDecl.html#52c952aa2f0ddbebcbcc8a28dcbade89" title="Indicate whether this element type has been declared yet.">XMLElementDecl::isDeclared</a>()<span class="keyword"> const</span>
<a name="l00587"></a>00587 <span class="keyword"></span>{
<a name="l00588"></a>00588 <span class="keywordflow">return</span> (fCreateReason == <a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aa5b140b134d9b9f934b740c7e995aa836">Declared</a>);
<a name="l00589"></a>00589 }
<a name="l00590"></a>00590
<a name="l00591"></a>00591
<a name="l00592"></a><a class="code" href="classXMLElementDecl.html#59f01f2cfbeb9280a5ffcc9baab39177">00592</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classXMLElementDecl.html#59f01f2cfbeb9280a5ffcc9baab39177" title="Indicate whether this element type has been declared externally.">XMLElementDecl::isExternal</a>()<span class="keyword"> const</span>
<a name="l00593"></a>00593 <span class="keyword"></span>{
<a name="l00594"></a>00594 <span class="keywordflow">return</span> fExternalElement;
<a name="l00595"></a>00595 }
<a name="l00596"></a>00596
<a name="l00597"></a><a class="code" href="classXMLElementDecl.html#7fcea325660b738e0407cde416e5b4f4">00597</a> <span class="keyword">inline</span> <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <a class="code" href="classXMLElementDecl.html#7fcea325660b738e0407cde416e5b4f4" title="Get the memory manager.">XMLElementDecl::getMemoryManager</a>()<span class="keyword"> const</span>
<a name="l00598"></a>00598 <span class="keyword"></span>{
<a name="l00599"></a>00599 <span class="keywordflow">return</span> fMemoryManager;
<a name="l00600"></a>00600 }
<a name="l00601"></a>00601
<a name="l00602"></a>00602
<a name="l00603"></a>00603 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00604"></a>00604 <span class="comment">// XMLElementDecl: Setter methods</span>
<a name="l00605"></a>00605 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00606"></a>00606 <span class="keyword">inline</span> <span class="keywordtype">void</span>
<a name="l00607"></a><a class="code" href="classXMLElementDecl.html#205865ce4f892e83e273d0febb46fa1c">00607</a> <a class="code" href="classXMLElementDecl.html#205865ce4f892e83e273d0febb46fa1c" title="Update the create reason for this element type.">XMLElementDecl::setCreateReason</a>(<span class="keyword">const</span> <a class="code" href="classXMLElementDecl.html#1307bfa5455f69a27898614ed168f7aa">XMLElementDecl::CreateReasons</a> newReason)
<a name="l00608"></a>00608 {
<a name="l00609"></a>00609 fCreateReason = newReason;
<a name="l00610"></a>00610 }
<a name="l00611"></a>00611
<a name="l00612"></a><a class="code" href="classXMLElementDecl.html#393e55ac8c395680b15d894810a19fa2">00612</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLElementDecl.html#393e55ac8c395680b15d894810a19fa2" title="Set the element decl pool id for this element type.">XMLElementDecl::setId</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> newId)
<a name="l00613"></a>00613 {
<a name="l00614"></a>00614 fId = newId;
<a name="l00615"></a>00615 }
<a name="l00616"></a>00616
<a name="l00617"></a>00617
<a name="l00618"></a><a class="code" href="classXMLElementDecl.html#dd0cdf27f589ab23ea8de1a629b51dd7">00618</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLElementDecl.html#dd0cdf27f589ab23ea8de1a629b51dd7" title="Set the element decl to indicate external declaration.">XMLElementDecl::setExternalElemDeclaration</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> aValue)
<a name="l00619"></a>00619 {
<a name="l00620"></a>00620 fExternalElement = aValue;
<a name="l00621"></a>00621 }
<a name="l00622"></a>00622
<a name="l00623"></a>00623 <a class="code" href="XercesDefs_8hpp.html#f03d5cb905763ef7a7bd22ab82718285">XERCES_CPP_NAMESPACE_END</a>
<a name="l00624"></a>00624
<a name="l00625"></a>00625 <span class="preprocessor">#endif</span>
</pre></div> </FONT></TD></TR></TABLE><BR>
</TD></TR></TABLE></TD></TR></TABLE><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1" alt=""></TD></TR><TR><TD align="center"><FONT color="#0086b2" size="-1"><I>
Copyright &copy; 1994-2004 The Apache Software Foundation.
All Rights Reserved.
</I></FONT></TD></TR></TABLE></BODY></HTML>