Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > ee493823148ed6fb895c827f4e36eb1c > files > 820

xerces-c-doc-2.7.0-7mdv2008.1.x86_64.rpm

<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>Xerces-C++: XMLEntityDecl.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://xml.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="../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>

     <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="../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>

  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>

     <A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-70');" onMouseOver="rolloverOn('side-ext-70');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-70" onLoad="rolloverLoad('side-ext-70','../graphics/ext-70-label-2.jpg','../graphics/ext-70-label-3.jpg');" src="../graphics/ext-70-label-3.jpg" vspace="0" width="120"></A><BR>

     <IMG alt="Programming" border="0" height="12" hspace="0" src="../graphics/program-label-1.jpg" vspace="0" width="120"><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="../pdf.html" onMouseOut="rolloverOff('side-pdf');" onMouseOver="rolloverOn('side-pdf');"><IMG alt="PDF Document" border="0" height="12" hspace="0" name="side-pdf" onLoad="rolloverLoad('side-pdf','../graphics/pdf-label-2.jpg','../graphics/pdf-label-3.jpg');" src="../graphics/pdf-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="http://svn.apache.org/viewcvs.cgi/xerces/?root=Apache-SVN" onMouseOut="rolloverOff('side-ext-102');" onMouseOver="rolloverOn('side-ext-102');"><IMG alt="Source Repository" border="0" height="12" hspace="0" name="side-ext-102" onLoad="rolloverLoad('side-ext-102','../graphics/ext-102-label-2.jpg','../graphics/ext-102-label-3.jpg');" src="../graphics/ext-102-label-3.jpg" vspace="0" width="120"></A><BR>

   
<A href="http://marc.theaimsgroup.com/?l=xerces-c-users" onMouseOut="rolloverOff('side-ext-104');" onMouseOver="rolloverOn('side-ext-104');"><IMG alt="User Mail Archive" border="0" height="12" hspace="0" name="side-ext-104" onLoad="rolloverLoad('side-ext-104','../graphics/ext-104-label-2.jpg','../graphics/ext-104-label-3.jpg');" src="../graphics/ext-104-label-3.jpg" vspace="0" width="120"></A><BR>

   
<A href="http://marc.theaimsgroup.com/?l=xerces-c-dev" onMouseOut="rolloverOff('side-ext-106');" onMouseOver="rolloverOn('side-ext-106');"><IMG alt="Devel Mail Archive" border="0" height="12" hspace="0" name="side-ext-106" onLoad="rolloverLoad('side-ext-106','../graphics/ext-106-label-2.jpg','../graphics/ext-106-label-3.jpg');" src="../graphics/ext-106-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.4.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">src</a>&nbsp;/&nbsp;<a class="el" href="dir_000001.html">xercesc</a>&nbsp;/&nbsp;<a class="el" href="dir_000006.html">framework</a></div>
<h1>XMLEntityDecl.hpp</h1><a href="XMLEntityDecl_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 1999-2004 The Apache Software Foundation.</span>
00003 <span class="comment"> * </span>
00004 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
00005 <span class="comment"> * you may not use this file except in compliance with the License.</span>
00006 <span class="comment"> * You may obtain a copy of the License at</span>
00007 <span class="comment"> * </span>
00008 <span class="comment"> *      http://www.apache.org/licenses/LICENSE-2.0</span>
00009 <span class="comment"> * </span>
00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
00011 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
00013 <span class="comment"> * See the License for the specific language governing permissions and</span>
00014 <span class="comment"> * limitations under the License.</span>
00015 <span class="comment"> */</span>
00016 
00017 <span class="comment">/*</span>
00018 <span class="comment"> * $Id: XMLEntityDecl.hpp 191054 2005-06-17 02:56:35Z jberry $</span>
00019 <span class="comment"> */</span>
00020 
00021 <span class="preprocessor">#if !defined(XMLENTITYDECL_HPP)</span>
<a name="l00022"></a><a class="code" href="XMLEntityDecl_8hpp.html#a0">00022</a> <span class="preprocessor"></span><span class="preprocessor">#define XMLENTITYDECL_HPP</span>
00023 <span class="preprocessor"></span>
00024 <span class="preprocessor">#include &lt;<a class="code" href="XMemory_8hpp.html">xercesc/util/XMemory.hpp</a>&gt;</span>
00025 <span class="preprocessor">#include &lt;<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>&gt;</span>
00026 <span class="preprocessor">#include &lt;<a class="code" href="XMLString_8hpp.html">xercesc/util/XMLString.hpp</a>&gt;</span>
00027 <span class="preprocessor">#include &lt;xercesc/internal/XSerializable.hpp&gt;</span>
00028 
00029 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_BEGIN</a>
00030 
<a name="l00049"></a><a class="code" href="classXMLEntityDecl.html">00049</a> <span class="keyword">class </span><a class="code" href="XercesDefs_8hpp.html#a10"></a> XMLEntityDecl : <span class="keyword">public</span> XSerializable, <span class="keyword">public</span> <a class="code" href="classXMemory.html">XMemory</a>
00050 {
00051 <span class="keyword">public</span>:
00052     <span class="comment">// -----------------------------------------------------------------------</span>
00053     <span class="comment">//  Constructors and Destructor</span>
00054     <span class="comment">// -----------------------------------------------------------------------</span>
00055 
00058 
00062     XMLEntityDecl(<a class="code" href="classMemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
00063 
00070     XMLEntityDecl
00071     (
00072         <span class="keyword">const</span>   XMLCh* <span class="keyword">const</span>    entName
00073         , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
00074     );
00075 
00084     XMLEntityDecl
00085     (
00086         <span class="keyword">const</span>   XMLCh* <span class="keyword">const</span>    entName
00087         , <span class="keyword">const</span> XMLCh* <span class="keyword">const</span>    value
00088         , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
00089     );
00090 
00099     XMLEntityDecl
00100     (
00101         <span class="keyword">const</span>   XMLCh* <span class="keyword">const</span>    entName
00102         , <span class="keyword">const</span> XMLCh           value
00103         , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
00104     );
00106 
00109 
00113     <span class="keyword">virtual</span> ~XMLEntityDecl();
00114 
00116 
00117 
00118     <span class="comment">// -----------------------------------------------------------------------</span>
00119     <span class="comment">//  Virtual entity decl interface</span>
00120     <span class="comment">// -----------------------------------------------------------------------</span>
00121 
00124 
00132     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getDeclaredInIntSubset() <span class="keyword">const </span>= 0;
00133 
00139     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getIsParameter() <span class="keyword">const </span>= 0;
00140 
00146     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getIsSpecialChar() <span class="keyword">const </span>= 0;
00147 
00149 
00150 
00151     <span class="comment">// -----------------------------------------------------------------------</span>
00152     <span class="comment">//  Getter methods</span>
00153     <span class="comment">// -----------------------------------------------------------------------</span>
00154 
00157 
00162     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getId() <span class="keyword">const</span>;
00163 
00169     <span class="keyword">const</span> XMLCh* getName() <span class="keyword">const</span>;
00170 
00175     <span class="keyword">const</span> XMLCh* getNotationName() <span class="keyword">const</span>;
00176 
00181     <span class="keyword">const</span> XMLCh* getPublicId() <span class="keyword">const</span>;
00182 
00187     <span class="keyword">const</span> XMLCh* getSystemId() <span class="keyword">const</span>;
00188 
00192     <span class="keyword">const</span> XMLCh* getBaseURI() <span class="keyword">const</span>;
00193 
00199     <span class="keyword">const</span> XMLCh* getValue() <span class="keyword">const</span>;
00200 
00206     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getValueLen() <span class="keyword">const</span>;
00207 
00212     <span class="keywordtype">bool</span> isExternal() <span class="keyword">const</span>;
00213 
00219     <span class="keywordtype">bool</span> isUnparsed() <span class="keyword">const</span>;
00220 
00228     <a class="code" href="classMemoryManager.html">MemoryManager</a>* getMemoryManager() <span class="keyword">const</span>;
00229 
00231 
00232 
00233     <span class="comment">// -----------------------------------------------------------------------</span>
00234     <span class="comment">//  Setter methods</span>
00235     <span class="comment">// -----------------------------------------------------------------------</span>
00236 
00239 
00248     <span class="keywordtype">void</span> setName
00249     (
00250         <span class="keyword">const</span>   XMLCh* <span class="keyword">const</span>    entName
00251     );
00252 
00259     <span class="keywordtype">void</span> setNotationName(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newName);
00260 
00267     <span class="keywordtype">void</span> setPublicId(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newId);
00268 
00278     <span class="keywordtype">void</span> setSystemId(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newId);
00279 
00286     <span class="keywordtype">void</span> setBaseURI(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newId);
00287 
00295     <span class="keywordtype">void</span> setValue(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newValue);
00296 
00298 
00299     <span class="comment">/* For internal use only */</span>
00300     <span class="keywordtype">void</span> setId(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> newId);
00301 
00302 
00303     <span class="comment">// -----------------------------------------------------------------------</span>
00304     <span class="comment">//  Support named pool syntax</span>
00305     <span class="comment">// -----------------------------------------------------------------------</span>
00306 
00309 
00316     <span class="keyword">const</span> XMLCh* getKey() <span class="keyword">const</span>;
00317 
00319 
00320     <span class="comment">/***</span>
00321 <span class="comment">     * Support for Serialization/De-serialization</span>
00322 <span class="comment">     ***/</span>
00323     DECL_XSERIALIZABLE(XMLEntityDecl)
00324 
00325 <span class="keyword">private</span> :
00326     <span class="comment">// -----------------------------------------------------------------------</span>
00327     <span class="comment">//  Unimplemented constructors and operators</span>
00328     <span class="comment">// -----------------------------------------------------------------------</span>
00329     XMLEntityDecl(<span class="keyword">const</span> XMLEntityDecl&amp;);
00330     XMLEntityDecl&amp; operator=(XMLEntityDecl&amp;);
00331 
00332 
00333     <span class="comment">// -----------------------------------------------------------------------</span>
00334     <span class="comment">//  XMLEntityDecl: Private helper methods</span>
00335     <span class="comment">// -----------------------------------------------------------------------</span>
00336     <span class="keywordtype">void</span> cleanUp();
00337 
00338 
00339     <span class="comment">// -----------------------------------------------------------------------</span>
00340     <span class="comment">//  Private data members</span>
00341     <span class="comment">//</span>
00342     <span class="comment">//  fId</span>
00343     <span class="comment">//      This is the unique id given to this entity decl.</span>
00344     <span class="comment">//</span>
00345     <span class="comment">//  fName</span>
00346     <span class="comment">//      The name of the enitity. Entity names are never namespace based.</span>
00347     <span class="comment">//</span>
00348     <span class="comment">//  fNotationName</span>
00349     <span class="comment">//      The optional notation of the entity. If there was none, then its</span>
00350     <span class="comment">//      empty.</span>
00351     <span class="comment">//</span>
00352     <span class="comment">//  fPublicId</span>
00353     <span class="comment">//      The public id of the entity, which can be empty.</span>
00354     <span class="comment">//</span>
00355     <span class="comment">//  fSystemId</span>
00356     <span class="comment">//      The system id of the entity.</span>
00357     <span class="comment">//</span>
00358     <span class="comment">//  fValue</span>
00359     <span class="comment">//  fValueLen</span>
00360     <span class="comment">//      The entity's value and length, which is only valid if its an</span>
00361     <span class="comment">//      internal style entity.</span>
00362     <span class="comment">//</span>
00363     <span class="comment">//  fBaseURI</span>
00364     <span class="comment">//      The base URI of the entity.   According to XML InfoSet, such value</span>
00365     <span class="comment">//      is the URI where it is declared (NOT referenced).</span>
00366     <span class="comment">// -----------------------------------------------------------------------</span>
00367     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>    fId;
00368     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>    fValueLen;
00369     XMLCh*          fValue;
00370     XMLCh*          fName;
00371     XMLCh*          fNotationName;
00372     XMLCh*          fPublicId;
00373     XMLCh*          fSystemId;
00374     XMLCh*          fBaseURI;
00375     <a class="code" href="classMemoryManager.html">MemoryManager</a>*  fMemoryManager;
00376 };
00377 
00378 
00379 <span class="comment">// ---------------------------------------------------------------------------</span>
00380 <span class="comment">//  XMLEntityDecl: Getter methods</span>
00381 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00382"></a><a class="code" href="classXMLEntityDecl.html#z536_0">00382</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classXMLEntityDecl.html#z536_0">XMLEntityDecl::getId</a>()<span class="keyword"> const</span>
00383 <span class="keyword"></span>{
00384     <span class="keywordflow">return</span> fId;
00385 }
00386 
<a name="l00387"></a><a class="code" href="classXMLEntityDecl.html#z536_1">00387</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classXMLEntityDecl.html#z536_1">XMLEntityDecl::getName</a>()<span class="keyword"> const</span>
00388 <span class="keyword"></span>{
00389     <span class="keywordflow">return</span> fName;
00390 }
00391 
<a name="l00392"></a><a class="code" href="classXMLEntityDecl.html#z536_2">00392</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classXMLEntityDecl.html#z536_2">XMLEntityDecl::getNotationName</a>()<span class="keyword"> const</span>
00393 <span class="keyword"></span>{
00394     <span class="keywordflow">return</span> fNotationName;
00395 }
00396 
<a name="l00397"></a><a class="code" href="classXMLEntityDecl.html#z536_3">00397</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classXMLEntityDecl.html#z536_3">XMLEntityDecl::getPublicId</a>()<span class="keyword"> const</span>
00398 <span class="keyword"></span>{
00399     <span class="keywordflow">return</span> fPublicId;
00400 }
00401 
<a name="l00402"></a><a class="code" href="classXMLEntityDecl.html#z536_4">00402</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classXMLEntityDecl.html#z536_4">XMLEntityDecl::getSystemId</a>()<span class="keyword"> const</span>
00403 <span class="keyword"></span>{
00404     <span class="keywordflow">return</span> fSystemId;
00405 }
00406 
<a name="l00407"></a><a class="code" href="classXMLEntityDecl.html#z536_5">00407</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classXMLEntityDecl.html#z536_5">XMLEntityDecl::getBaseURI</a>()<span class="keyword"> const</span>
00408 <span class="keyword"></span>{
00409     <span class="keywordflow">return</span> fBaseURI;
00410 }
00411 
<a name="l00412"></a><a class="code" href="classXMLEntityDecl.html#z536_6">00412</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classXMLEntityDecl.html#z536_6">XMLEntityDecl::getValue</a>()<span class="keyword"> const</span>
00413 <span class="keyword"></span>{
00414     <span class="keywordflow">return</span> fValue;
00415 }
00416 
<a name="l00417"></a><a class="code" href="classXMLEntityDecl.html#z536_7">00417</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classXMLEntityDecl.html#z536_7">XMLEntityDecl::getValueLen</a>()<span class="keyword"> const</span>
00418 <span class="keyword"></span>{
00419     <span class="keywordflow">return</span> fValueLen;
00420 }
00421 
<a name="l00422"></a><a class="code" href="classXMLEntityDecl.html#z536_8">00422</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classXMLEntityDecl.html#z536_8">XMLEntityDecl::isExternal</a>()<span class="keyword"> const</span>
00423 <span class="keyword"></span>{
00424     <span class="comment">// If it has a system or public id, its external</span>
00425     <span class="keywordflow">return</span> ((fPublicId != 0) || (fSystemId != 0));
00426 }
00427 
<a name="l00428"></a><a class="code" href="classXMLEntityDecl.html#z536_9">00428</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classXMLEntityDecl.html#z536_9">XMLEntityDecl::isUnparsed</a>()<span class="keyword"> const</span>
00429 <span class="keyword"></span>{
00430     <span class="comment">// If it has a notation, its unparsed</span>
00431     <span class="keywordflow">return</span> (fNotationName != 0);
00432 }
00433 
<a name="l00434"></a><a class="code" href="classXMLEntityDecl.html#z536_10">00434</a> <span class="keyword">inline</span> <a class="code" href="classMemoryManager.html">MemoryManager</a>* <a class="code" href="classXMLEntityDecl.html#z536_10">XMLEntityDecl::getMemoryManager</a>()<span class="keyword"> const</span>
00435 <span class="keyword"></span>{
00436     <span class="keywordflow">return</span> fMemoryManager;
00437 }
00438 
00439 <span class="comment">// ---------------------------------------------------------------------------</span>
00440 <span class="comment">//  XMLEntityDecl: Setter methods</span>
00441 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00442"></a><a class="code" href="classXMLEntityDecl.html#a0">00442</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLEntityDecl.html#a0">XMLEntityDecl::setId</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> newId)
00443 {
00444     fId = newId;
00445 }
00446 
<a name="l00447"></a><a class="code" href="classXMLEntityDecl.html#z538_1">00447</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLEntityDecl.html#z538_1">XMLEntityDecl::setNotationName</a>(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newName)
00448 {
00449     <span class="keywordflow">if</span> (fNotationName)
00450         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z442_1">deallocate</a>(fNotationName);
00451 
00452     fNotationName = <a class="code" href="classXMLString.html#z1011_0">XMLString::replicate</a>(newName, fMemoryManager);
00453 }
00454 
<a name="l00455"></a><a class="code" href="classXMLEntityDecl.html#z538_2">00455</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLEntityDecl.html#z538_2">XMLEntityDecl::setPublicId</a>(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newId)
00456 {
00457     <span class="keywordflow">if</span> (fPublicId)
00458         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z442_1">deallocate</a>(fPublicId);
00459 
00460     fPublicId = <a class="code" href="classXMLString.html#z1011_0">XMLString::replicate</a>(newId, fMemoryManager);
00461 }
00462 
<a name="l00463"></a><a class="code" href="classXMLEntityDecl.html#z538_3">00463</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLEntityDecl.html#z538_3">XMLEntityDecl::setSystemId</a>(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newId)
00464 {
00465     <span class="keywordflow">if</span> (fSystemId)
00466         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z442_1">deallocate</a>(fSystemId);
00467 
00468     fSystemId = <a class="code" href="classXMLString.html#z1011_0">XMLString::replicate</a>(newId, fMemoryManager);
00469 }
00470 
<a name="l00471"></a><a class="code" href="classXMLEntityDecl.html#z538_4">00471</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLEntityDecl.html#z538_4">XMLEntityDecl::setBaseURI</a>(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newId)
00472 {
00473     <span class="keywordflow">if</span> (fBaseURI)
00474         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z442_1">deallocate</a>(fBaseURI);
00475 
00476     fBaseURI = <a class="code" href="classXMLString.html#z1011_0">XMLString::replicate</a>(newId, fMemoryManager);
00477 }
00478 
<a name="l00479"></a><a class="code" href="classXMLEntityDecl.html#z538_5">00479</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLEntityDecl.html#z538_5">XMLEntityDecl::setValue</a>(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newValue)
00480 {
00481     <span class="keywordflow">if</span> (fValue)
00482         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z442_1">deallocate</a>(fValue);
00483 
00484     fValue = <a class="code" href="classXMLString.html#z1011_0">XMLString::replicate</a>(newValue, fMemoryManager);
00485     fValueLen = <a class="code" href="classXMLString.html#z1013_8">XMLString::stringLen</a>(newValue);
00486 }
00487 
00488 
00489 <span class="comment">// ---------------------------------------------------------------------------</span>
00490 <span class="comment">//  XMLEntityDecl: Support named pool syntax</span>
00491 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00492"></a><a class="code" href="classXMLEntityDecl.html#z540_0">00492</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classXMLEntityDecl.html#z540_0">XMLEntityDecl::getKey</a>()<span class="keyword"> const</span>
00493 <span class="keyword"></span>{
00494     <span class="keywordflow">return</span> fName;
00495 }
00496 
00497 <a class="code" href="XercesDefs_8hpp.html#a4">XERCES_CPP_NAMESPACE_END</a>
00498 
00499 <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>