source: NonGTP/Xerces/xerces/doc/html/apiDocs/XMLAttDef_8hpp-source.html @ 358

Revision 358, 43.5 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>XMLAttDef.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>
2  <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>
3
4  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
5
6  <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>
7  <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>
8  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
9  <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>
10  <A href="http://xml.apache.org/dist/xerces-c/" onMouseOut="rolloverOff('side-ext-18');" onMouseOver="rolloverOn('side-ext-18');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-18" onLoad="rolloverLoad('side-ext-18','../graphics/ext-18-label-2.jpg','../graphics/ext-18-label-3.jpg');" src="../graphics/ext-18-label-3.jpg" vspace="0" width="120"></A><BR>
11  <A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build" 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>
12
13  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
14  <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> 
15  <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>
16  <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> 
17
18  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR> 
19  <A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-68');" onMouseOver="rolloverOn('side-ext-68');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-68" onLoad="rolloverLoad('side-ext-68','../graphics/ext-68-label-2.jpg','../graphics/ext-68-label-3.jpg');" src="../graphics/ext-68-label-3.jpg" vspace="0" width="120"></A><BR>
20
21  <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>
22  <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>
23
24  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
25
26  <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>
27  <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> 
28  <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>
29
30  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
31
32  <A href="http://xml.apache.org/websrc/cvsweb.cgi/xml-xerces/c/" onMouseOut="rolloverOff('side-ext-100');" onMouseOver="rolloverOn('side-ext-100');"><IMG alt="CVS Repository" border="0" height="12" hspace="0" name="side-ext-100" onLoad="rolloverLoad('side-ext-100','../graphics/ext-100-label-2.jpg','../graphics/ext-100-label-3.jpg');" src="../graphics/ext-100-label-3.jpg" vspace="0" width="120"></A><BR>
33
34  <A href="http://marc.theaimsgroup.com/?l=xerces-c-dev" onMouseOut="rolloverOff('side-ext-102');" onMouseOver="rolloverOn('side-ext-102');"><IMG alt="Mail Archive" 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>
35
36
37<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>
38    <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">
39
40            <P>
41<!-- Generated by Doxygen 1.2.14 -->
42<center>
43<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
44<hr><h1>XMLAttDef.hpp</h1><a href="XMLAttDef_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
4500002 <font class="comment"> * Copyright 1999-2004 The Apache Software Foundation.</font>
4600003 <font class="comment"> * </font>
4700004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
4800005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
4900006 <font class="comment"> * You may obtain a copy of the License at</font>
5000007 <font class="comment"> * </font>
5100008 <font class="comment"> *      http://www.apache.org/licenses/LICENSE-2.0</font>
5200009 <font class="comment"> * </font>
5300010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
5400011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
5500012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
5600013 <font class="comment"> * See the License for the specific language governing permissions and</font>
5700014 <font class="comment"> * limitations under the License.</font>
5800015 <font class="comment"> */</font>
5900016
6000017 <font class="comment">/*</font>
6100018 <font class="comment"> * $Log: XMLAttDef.hpp,v $</font>
6200019 <font class="comment"> * Revision 1.14  2004/09/08 13:55:58  peiyongz</font>
6300020 <font class="comment"> * Apache License Version 2.0</font>
6400021 <font class="comment"> *</font>
6500022 <font class="comment"> * Revision 1.13  2004/09/02 19:08:09  cargilld</font>
6600023 <font class="comment"> * Fix API Doc warning message</font>
6700024 <font class="comment"> *</font>
6800025 <font class="comment"> * Revision 1.12  2003/12/17 00:18:33  cargilld</font>
6900026 <font class="comment"> * Update to memory management so that the static memory manager (one used to call Initialize) is only for static data.</font>
7000027 <font class="comment"> *</font>
7100028 <font class="comment"> * Revision 1.11  2003/11/24 05:19:15  neilg</font>
7200029 <font class="comment"> * update method documentation</font>
7300030 <font class="comment"> *</font>
7400031 <font class="comment"> * Revision 1.10  2003/10/10 16:23:29  peiyongz</font>
7500032 <font class="comment"> * Implementation of Serialization/Deserialization</font>
7600033 <font class="comment"> *</font>
7700034 <font class="comment"> * Revision 1.9  2003/05/16 21:36:55  knoaman</font>
7800035 <font class="comment"> * Memory manager implementation: Modify constructors to pass in the memory manager.</font>
7900036 <font class="comment"> *</font>
8000037 <font class="comment"> * Revision 1.8  2003/05/15 18:26:07  knoaman</font>
8100038 <font class="comment"> * Partial implementation of the configurable memory manager.</font>
8200039 <font class="comment"> *</font>
8300040 <font class="comment"> * Revision 1.7  2003/04/21 20:46:01  knoaman</font>
8400041 <font class="comment"> * Use XMLString::release to prepare for configurable memory manager.</font>
8500042 <font class="comment"> *</font>
8600043 <font class="comment"> * Revision 1.6  2003/03/07 18:08:10  tng</font>
8700044 <font class="comment"> * Return a reference instead of void for operator=</font>
8800045 <font class="comment"> *</font>
8900046 <font class="comment"> * Revision 1.5  2003/01/29 19:45:35  gareth</font>
9000047 <font class="comment"> * added api for DOMTypeInfo</font>
9100048 <font class="comment"> *</font>
9200049 <font class="comment"> * Revision 1.4  2002/12/10 02:15:55  knoaman</font>
9300050 <font class="comment"> * Schema Errata: E1-21.</font>
9400051 <font class="comment"> *</font>
9500052 <font class="comment"> * Revision 1.3  2002/11/04 15:00:21  tng</font>
9600053 <font class="comment"> * C++ Namespace Support.</font>
9700054 <font class="comment"> *</font>
9800055 <font class="comment"> * Revision 1.2  2002/02/20 18:17:01  tng</font>
9900056 <font class="comment"> * [Bug 5977] Warnings on generating apiDocs.</font>
10000057 <font class="comment"> *</font>
10100058 <font class="comment"> * Revision 1.1.1.1  2002/02/01 22:21:50  peiyongz</font>
10200059 <font class="comment"> * sane_include</font>
10300060 <font class="comment"> *</font>
10400061 <font class="comment"> * Revision 1.13  2001/11/15 16:36:36  knoaman</font>
10500062 <font class="comment"> * Re-organize constant values.</font>
10600063 <font class="comment"> *</font>
10700064 <font class="comment"> * Revision 1.12  2001/08/09 15:23:37  knoaman</font>
10800065 <font class="comment"> * add support for &lt;anyAttribute&gt; declaration.</font>
10900066 <font class="comment"> *</font>
11000067 <font class="comment"> * Revision 1.11  2001/06/21 14:25:26  knoaman</font>
11100068 <font class="comment"> * Fix for bug 1946</font>
11200069 <font class="comment"> *</font>
11300070 <font class="comment"> * Revision 1.10  2001/05/11 13:25:31  tng</font>
11400071 <font class="comment"> * Copyright update.</font>
11500072 <font class="comment"> *</font>
11600073 <font class="comment"> * Revision 1.9  2001/02/27 18:48:20  tng</font>
11700074 <font class="comment"> * Schema: Add SchemaAttDef, SchemaElementDecl, SchemaAttDefList.</font>
11800075 <font class="comment"> *</font>
11900076 <font class="comment"> * Revision 1.8  2000/12/14 18:49:56  tng</font>
12000077 <font class="comment"> * Fix API document generation warning: "Warning: end of member group without matching begin"</font>
12100078 <font class="comment"> *</font>
12200079 <font class="comment"> * Revision 1.7  2000/11/30 18:22:38  andyh</font>
12300080 <font class="comment"> * reuseValidator - fix bugs (spurious errors) that occured on reuse due to</font>
12400081 <font class="comment"> * pools already containing some items.  Fixed by Tinny Ng.</font>
12500082 <font class="comment"> *</font>
12600083 <font class="comment"> * Revision 1.6  2000/07/07 22:23:38  jpolast</font>
12700084 <font class="comment"> * remove useless getKey() functions.</font>
12800085 <font class="comment"> *</font>
12900086 <font class="comment"> * Revision 1.5  2000/02/24 20:00:22  abagchi</font>
13000087 <font class="comment"> * Swat for removing Log from API docs</font>
13100088 <font class="comment"> *</font>
13200089 <font class="comment"> * Revision 1.4  2000/02/16 23:03:48  roddey</font>
13300090 <font class="comment"> * More documentation updates</font>
13400091 <font class="comment"> *</font>
13500092 <font class="comment"> * Revision 1.3  2000/02/15 01:21:30  roddey</font>
13600093 <font class="comment"> * Some initial documentation improvements. More to come...</font>
13700094 <font class="comment"> *</font>
13800095 <font class="comment"> * Revision 1.2  2000/02/06 07:47:46  rahulj</font>
13900096 <font class="comment"> * Year 2K copyright swat.</font>
14000097 <font class="comment"> *</font>
14100098 <font class="comment"> * Revision 1.1.1.1  1999/11/09 01:08:27  twl</font>
14200099 <font class="comment"> * Initial checkin</font>
14300100 <font class="comment"> *</font>
14400101 <font class="comment"> * Revision 1.2  1999/11/08 20:44:34  rahul</font>
14500102 <font class="comment"> * Swat for adding in Product name and CVS comment log variable.</font>
14600103 <font class="comment"> *</font>
14700104 <font class="comment"> */</font>
14800105
14900106 <font class="preprocessor">#if !defined(ATTDEF_HPP)</font>
150<a name="l00107"></a><a class="code" href="XMLAttDef_8hpp.html#a0">00107</a> <font class="preprocessor"></font><font class="preprocessor">#define ATTDEF_HPP</font>
15100108 <font class="preprocessor"></font>
15200109 <font class="preprocessor">#include &lt;<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>&gt;</font>
15300110 <font class="preprocessor">#include &lt;<a class="code" href="XMLString_8hpp.html">xercesc/util/XMLString.hpp</a>&gt;</font>
15400111 <font class="preprocessor">#include &lt;<a class="code" href="XMemory_8hpp.html">xercesc/util/XMemory.hpp</a>&gt;</font>
15500112 <font class="preprocessor">#include &lt;xercesc/internal/XSerializable.hpp&gt;</font>
15600113
15700114 <a class="code" href="XercesDefs_8hpp.html#a2">XERCES_CPP_NAMESPACE_BEGIN</a>
15800115
159<a name="l00116"></a><a class="code" href="XMLAttDef_8hpp.html#a1">00116</a> <font class="keyword">class </font><a class="code" href="classXMLAttr.html">XMLAttr</a>;
16000117
161<a name="l00136"></a><a class="code" href="classXMLAttDef.html">00136</a> <font class="keyword">class </font><a class="code" href="XercesDefs_8hpp.html#a9"></a> <a class="code" href="classXMLAttDef.html">XMLAttDef</a> : <font class="keyword">public</font> XSerializable, <font class="keyword">public</font> <a class="code" href="classXMemory.html">XMemory</a>
16200137 {
16300138 <font class="keyword">public</font>:
16400139     <font class="comment">// -----------------------------------------------------------------------</font>
16500140     <font class="comment">//  Class specific types</font>
16600141     <font class="comment">//</font>
16700142     <font class="comment">//  AttTypes</font>
16800143     <font class="comment">//      The list of possible types that an attribute can have, according</font>
16900144     <font class="comment">//      to the XML 1.0 spec and schema.</font>
17000145     <font class="comment">//</font>
17100146     <font class="comment">//  DefAttTypes</font>
17200147     <font class="comment">//      The modifiers that an attribute decl can have, which indicates</font>
17300148     <font class="comment">//      whether instances of that attributes are required, implied, etc..</font>
17400149     <font class="comment">//</font>
17500150     <font class="comment">//  CreateReasons</font>
17600151     <font class="comment">//      This type is used to store how an attribute declaration got into</font>
17700152     <font class="comment">//      the elementdecl's attribute pool.</font>
17800153     <font class="comment">//</font>
17900154     <font class="comment">// -----------------------------------------------------------------------</font>
180<a name="l00155"></a><a class="code" href="classXMLAttDef.html#s33">00155</a>     <font class="keyword">enum</font> AttTypes
18100156     {
18200157         CData               = 0
18300158         , ID                = 1
18400159         , IDRef             = 2
18500160         , IDRefs            = 3
18600161         , Entity            = 4
18700162         , Entities          = 5
18800163         , NmToken           = 6
18900164         , NmTokens          = 7
19000165         , Notation          = 8
19100166         , Enumeration       = 9
19200167         , Simple            = 10
19300168         , Any_Any           = 11
19400169         , Any_Other         = 12
19500170         , Any_List          = 13
19600171
19700172         , AttTypes_Count
19800173         , AttTypes_Min      = 0
19900174         , AttTypes_Max      = 13
20000175         , AttTypes_Unknown  = -1
20100176     };
20200177
203<a name="l00178"></a><a class="code" href="classXMLAttDef.html#s34">00178</a>     <font class="keyword">enum</font> DefAttTypes
20400179     {
20500180         Default                  = 0
20600181         , Fixed                  = 1
20700182         , Required               = 2
20800183         , Required_And_Fixed     = 3
20900184         , Implied                = 4
21000185         , ProcessContents_Skip   = 5
21100186         , ProcessContents_Lax    = 6
21200187         , ProcessContents_Strict = 7
21300188         , Prohibited             = 8
21400189
21500190         , DefAttTypes_Count
21600191         , DefAttTypes_Min   = 0
21700192         , DefAttTypes_Max   = 8
21800193         , DefAttTypes_Unknown = -1
21900194     };
22000195
221<a name="l00196"></a><a class="code" href="classXMLAttDef.html#s35">00196</a>     <font class="keyword">enum</font> CreateReasons
22200197     {
22300198         NoReason
22400199         , JustFaultIn
22500200     };
22600201
22700202     <font class="comment">// -----------------------------------------------------------------------</font>
22800203     <font class="comment">//  Public static data members</font>
22900204     <font class="comment">// -----------------------------------------------------------------------</font>
230<a name="l00205"></a><a class="code" href="classXMLAttDef.html#p0">00205</a>     <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> fgInvalidAttrId;
23100206
23200207
23300208     <font class="comment">// -----------------------------------------------------------------------</font>
23400209     <font class="comment">//  Public, static methods</font>
23500210     <font class="comment">// -----------------------------------------------------------------------</font>
23600211
23700214
23800225     <font class="keyword">static</font> <font class="keyword">const</font> XMLCh* getAttTypeString(<font class="keyword">const</font> AttTypes attrType
23900226         , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>);
24000227
24100238     <font class="keyword">static</font> <font class="keyword">const</font> XMLCh* getDefAttTypeString(<font class="keyword">const</font> DefAttTypes attrType
24200239         , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>);
24300240
24400242
24500243
24600244     <font class="comment">// -----------------------------------------------------------------------</font>
24700245     <font class="comment">//  Destructor</font>
24800246     <font class="comment">// -----------------------------------------------------------------------</font>
24900247
25000250
25100254     <font class="keyword">virtual</font> ~<a class="code" href="classXMLAttDef.html">XMLAttDef</a>();
25200256
25300257
25400258     <font class="comment">// -----------------------------------------------------------------------</font>
25500259     <font class="comment">//  The virtual attribute def interface</font>
25600260     <font class="comment">// -----------------------------------------------------------------------</font>
25700261
25800264
25900273     <font class="keyword">virtual</font> <font class="keyword">const</font> XMLCh* getFullName() <font class="keyword">const</font> = 0;
26000274
26100279     <font class="keyword">virtual</font> <font class="keywordtype">void</font> reset() = 0;
26200280
26300282
26400283
26500284     <font class="comment">// -----------------------------------------------------------------------</font>
26600285     <font class="comment">//  Getter methods</font>
26700286     <font class="comment">// -----------------------------------------------------------------------</font>
26800287
26900290
27000299     DefAttTypes getDefaultType() <font class="keyword">const</font>;
27100300
27200310     <font class="keyword">const</font> XMLCh* getEnumeration() <font class="keyword">const</font>;
27300311
27400320     <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> getId() <font class="keyword">const</font>;
27500321
27600336     <font class="keywordtype">bool</font> getProvided() <font class="keyword">const</font>;
27700337
27800347     AttTypes getType() <font class="keyword">const</font>;
27900348
28000358     <font class="keyword">const</font> XMLCh* getValue() <font class="keyword">const</font>;
28100359
28200368     CreateReasons getCreateReason() <font class="keyword">const</font>;
28300369
28400377     <font class="keywordtype">bool</font> isExternal() <font class="keyword">const</font>;
28500378
28600386     <a class="code" href="classMemoryManager.html">MemoryManager</a>* getMemoryManager() <font class="keyword">const</font>;
28700387
28800388
28900393     <font class="keyword">virtual</font> <font class="keyword">const</font> XMLCh* getDOMTypeInfoUri() <font class="keyword">const</font> = 0;
29000394
29100399     <font class="keyword">virtual</font> <font class="keyword">const</font> XMLCh* getDOMTypeInfoName() <font class="keyword">const</font> = 0;
29200400
29300402
29400403
29500404     <font class="comment">// -----------------------------------------------------------------------</font>
29600405     <font class="comment">//  Setter methods</font>
29700406     <font class="comment">// -----------------------------------------------------------------------</font>
29800407
29900410
30000419     <font class="keywordtype">void</font> setDefaultType(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s34">XMLAttDef::DefAttTypes</a> newValue);
30100420
30200429     <font class="keywordtype">void</font> setId(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> newId);
30300430
30400440     <font class="keywordtype">void</font> setProvided(<font class="keyword">const</font> <font class="keywordtype">bool</font> newValue);
30500441
30600449     <font class="keywordtype">void</font> setType(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> newValue);
30700450
30800461     <font class="keywordtype">void</font> setValue(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newValue);
30900462
31000473     <font class="keywordtype">void</font> setEnumeration(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newValue);
31100474
31200482     <font class="keywordtype">void</font> setCreateReason(<font class="keyword">const</font> CreateReasons newReason);
31300483
31400489     <font class="keywordtype">void</font> setExternalAttDeclaration(<font class="keyword">const</font> <font class="keywordtype">bool</font> aValue);
31500490
31600492
31700493     <font class="comment">/***</font>
31800494 <font class="comment">     * Support for Serialization/De-serialization</font>
31900495 <font class="comment">     ***/</font>
32000496     DECL_XSERIALIZABLE(<a class="code" href="classXMLAttDef.html">XMLAttDef</a>)
32100497
32200498 <font class="keyword">protected</font> :
32300499     <font class="comment">// -----------------------------------------------------------------------</font>
32400500     <font class="comment">//  Hidden constructors</font>
32500501     <font class="comment">// -----------------------------------------------------------------------</font>
32600502     <a class="code" href="classXMLAttDef.html">XMLAttDef</a>
32700503     (
32800504         <font class="keyword">const</font>   AttTypes       type = CData
32900505         , <font class="keyword">const</font> DefAttTypes    defType= Implied
33000506         , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>
33100507     );
33200508     <a class="code" href="classXMLAttDef.html">XMLAttDef</a>
33300509     (
33400510         <font class="keyword">const</font>   XMLCh* <font class="keyword">const</font>        attValue
33500511         , <font class="keyword">const</font> AttTypes            type
33600512         , <font class="keyword">const</font> DefAttTypes         defType
33700513         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        enumValues = 0
33800514         , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>
33900515     );
34000516
34100517
34200518 <font class="keyword">private</font> :
34300519     <font class="comment">// -----------------------------------------------------------------------</font>
34400520     <font class="comment">//  Unimplemented constructors and operators</font>
34500521     <font class="comment">// -----------------------------------------------------------------------</font>
34600522     <a class="code" href="XMLAttDefList_8hpp.html#a1">XMLAttDef</a>(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html">XMLAttDef</a>&amp;);
34700523     <a class="code" href="classXMLAttDef.html">XMLAttDef</a>&amp; operator=(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html">XMLAttDef</a>&amp;);
34800524
34900525
35000526     <font class="comment">// -----------------------------------------------------------------------</font>
35100527     <font class="comment">//  Private helper methods</font>
35200528     <font class="comment">// -----------------------------------------------------------------------</font>
35300529     <font class="keywordtype">void</font> cleanUp();
35400530
35500531
35600532     <font class="comment">// -----------------------------------------------------------------------</font>
35700533     <font class="comment">//  Private data members</font>
35800534     <font class="comment">//</font>
35900535     <font class="comment">//  fDefaultType</font>
36000536     <font class="comment">//      Indicates what, if any, default stuff this attribute has.</font>
36100537     <font class="comment">//</font>
36200538     <font class="comment">//  fEnumeration</font>
36300539     <font class="comment">//      If its an enumeration, this is the list of values as space</font>
36400540     <font class="comment">//      separated values.</font>
36500541     <font class="comment">//</font>
36600542     <font class="comment">//  fId</font>
36700543     <font class="comment">//      This is the unique id of this attribute, given to it when its put</font>
36800544     <font class="comment">//      into the validator's attribute decl pool. It defaults to the</font>
36900545     <font class="comment">//      special value XMLAttrDef::fgInvalidAttrId.</font>
37000546     <font class="comment">//</font>
37100547     <font class="comment">//  fProvided</font>
37200548     <font class="comment">//      This field is really for use by the scanner. It is used to track</font>
37300549     <font class="comment">//      which of the attributes of an element were provided. Any marked</font>
37400550     <font class="comment">//      as not provided (after scanning the start tag) and having a</font>
37500551     <font class="comment">//      default type of Required, is in error.</font>
37600552     <font class="comment">//</font>
37700553     <font class="comment">//  fType</font>
37800554     <font class="comment">//      The type of attribute, which is one of the AttTypes values.</font>
37900555     <font class="comment">//</font>
38000556     <font class="comment">//  fValue</font>
38100557     <font class="comment">//      This is the value of the attribute, which is the default value</font>
38200558     <font class="comment">//      given in the attribute declaration.</font>
38300559     <font class="comment">//</font>
38400560     <font class="comment">//  fCreateReason</font>
38500561     <font class="comment">//      This flag tells us how this attribute got created.  Sometimes even</font>
38600562     <font class="comment">//      the attribute was not declared for the element, we want to fault</font>
38700563     <font class="comment">//      fault it into the pool to avoid lots of redundant errors.</font>
38800564     <font class="comment">//</font>
38900565     <font class="comment">//  fExternalAttribute</font>
39000566     <font class="comment">//      This flag indicates whether or not the attribute was declared externally.</font>
39100567     <font class="comment">// -----------------------------------------------------------------------</font>
39200568     DefAttTypes     fDefaultType;
39300569     AttTypes        fType;
39400570     CreateReasons   fCreateReason;
39500571     <font class="keywordtype">bool</font>            fProvided;
39600572     <font class="keywordtype">bool</font>            fExternalAttribute;
39700573     <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>    fId;
39800574     XMLCh*          fValue;
39900575     XMLCh*          fEnumeration;
40000576     <a class="code" href="classMemoryManager.html">MemoryManager</a>*  fMemoryManager;
40100577 };
40200578
40300579
40400580 <font class="comment">// ---------------------------------------------------------------------------</font>
40500581 <font class="comment">//  Getter methods</font>
40600582 <font class="comment">// ---------------------------------------------------------------------------</font>
407<a name="l00583"></a><a class="code" href="classXMLAttDef.html#z246_0">00583</a> <font class="keyword">inline</font> <a class="code" href="classXMLAttDef.html#s34">XMLAttDef::DefAttTypes</a> <a class="code" href="classXMLAttDef.html#z246_0">XMLAttDef::getDefaultType</a>()<font class="keyword"> const</font>
40800584 <font class="keyword"></font>{
40900585     <font class="keywordflow">return</font> fDefaultType;
41000586 }
41100587
412<a name="l00588"></a><a class="code" href="classXMLAttDef.html#z246_1">00588</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLAttDef.html#z246_1">XMLAttDef::getEnumeration</a>()<font class="keyword"> const</font>
41300589 <font class="keyword"></font>{
41400590     <font class="keywordflow">return</font> fEnumeration;
41500591 }
41600592
417<a name="l00593"></a><a class="code" href="classXMLAttDef.html#z246_2">00593</a> <font class="keyword">inline</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="classXMLAttDef.html#z246_2">XMLAttDef::getId</a>()<font class="keyword"> const</font>
41800594 <font class="keyword"></font>{
41900595     <font class="keywordflow">return</font> fId;
42000596 }
42100597
422<a name="l00598"></a><a class="code" href="classXMLAttDef.html#z246_3">00598</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLAttDef.html#z246_3">XMLAttDef::getProvided</a>()<font class="keyword"> const</font>
42300599 <font class="keyword"></font>{
42400600     <font class="keywordflow">return</font> fProvided;
42500601 }
42600602
427<a name="l00603"></a><a class="code" href="classXMLAttDef.html#z246_4">00603</a> <font class="keyword">inline</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> <a class="code" href="classXMLAttDef.html#z246_4">XMLAttDef::getType</a>()<font class="keyword"> const</font>
42800604 <font class="keyword"></font>{
42900605     <font class="keywordflow">return</font> fType;
43000606 }
43100607
432<a name="l00608"></a><a class="code" href="classXMLAttDef.html#z246_5">00608</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLAttDef.html#z246_5">XMLAttDef::getValue</a>()<font class="keyword"> const</font>
43300609 <font class="keyword"></font>{
43400610     <font class="keywordflow">return</font> fValue;
43500611 }
43600612
437<a name="l00613"></a><a class="code" href="classXMLAttDef.html#z246_6">00613</a> <font class="keyword">inline</font> <a class="code" href="classXMLAttDef.html#s35">XMLAttDef::CreateReasons</a> <a class="code" href="classXMLAttDef.html#z246_6">XMLAttDef::getCreateReason</a>()<font class="keyword"> const</font>
43800614 <font class="keyword"></font>{
43900615     <font class="keywordflow">return</font> fCreateReason;
44000616 }
44100617
442<a name="l00618"></a><a class="code" href="classXMLAttDef.html#z246_7">00618</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLAttDef.html#z246_7">XMLAttDef::isExternal</a>()<font class="keyword"> const</font>
44300619 <font class="keyword"></font>{
44400620     <font class="keywordflow">return</font> fExternalAttribute;
44500621 }
44600622
447<a name="l00623"></a><a class="code" href="classXMLAttDef.html#z246_8">00623</a> <font class="keyword">inline</font> <a class="code" href="classMemoryManager.html">MemoryManager</a>* <a class="code" href="classXMLAttDef.html#z246_8">XMLAttDef::getMemoryManager</a>()<font class="keyword"> const</font>
44800624 <font class="keyword"></font>{
44900625     <font class="keywordflow">return</font> fMemoryManager;
45000626 }
45100627
45200628 <font class="comment">// ---------------------------------------------------------------------------</font>
45300629 <font class="comment">//  XMLAttDef: Setter methods</font>
45400630 <font class="comment">// ---------------------------------------------------------------------------</font>
455<a name="l00631"></a><a class="code" href="classXMLAttDef.html#z247_0">00631</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttDef.html#z247_0">XMLAttDef::setDefaultType</a>(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s34">XMLAttDef::DefAttTypes</a> newValue)
45600632 {
45700633     fDefaultType = newValue;
45800634 }
45900635
460<a name="l00636"></a><a class="code" href="classXMLAttDef.html#z247_5">00636</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttDef.html#z247_5">XMLAttDef::setEnumeration</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newValue)
46100637 {
46200638     <font class="keywordflow">if</font> (fEnumeration)
46300639         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z221_1">deallocate</a>(fEnumeration);
46400640
46500641     fEnumeration = <a class="code" href="classXMLString.html#z518_0">XMLString::replicate</a>(newValue, fMemoryManager);
46600642 }
46700643
468<a name="l00644"></a><a class="code" href="classXMLAttDef.html#z247_1">00644</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttDef.html#z247_1">XMLAttDef::setId</a>(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> newId)
46900645 {
47000646     fId = newId;
47100647 }
47200648
473<a name="l00649"></a><a class="code" href="classXMLAttDef.html#z247_2">00649</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttDef.html#z247_2">XMLAttDef::setProvided</a>(<font class="keyword">const</font> <font class="keywordtype">bool</font> newValue)
47400650 {
47500651     fProvided = newValue;
47600652 }
47700653
478<a name="l00654"></a><a class="code" href="classXMLAttDef.html#z247_3">00654</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttDef.html#z247_3">XMLAttDef::setType</a>(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> newValue)
47900655 {
48000656     fType = newValue;
48100657 }
48200658
483<a name="l00659"></a><a class="code" href="classXMLAttDef.html#z247_4">00659</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttDef.html#z247_4">XMLAttDef::setValue</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newValue)
48400660 {
48500661     <font class="keywordflow">if</font> (fValue)
48600662        fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z221_1">deallocate</a>(fValue);
48700663
48800664     fValue = <a class="code" href="classXMLString.html#z518_0">XMLString::replicate</a>(newValue, fMemoryManager);
48900665 }
49000666
49100667 <font class="keyword">inline</font> <font class="keywordtype">void</font>
492<a name="l00668"></a><a class="code" href="classXMLAttDef.html#z247_6">00668</a> <a class="code" href="classXMLAttDef.html#z247_6">XMLAttDef::setCreateReason</a>(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s35">XMLAttDef::CreateReasons</a> newReason)
49300669 {
49400670     fCreateReason = newReason;
49500671 }
49600672
497<a name="l00673"></a><a class="code" href="classXMLAttDef.html#z247_7">00673</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttDef.html#z247_7">XMLAttDef::setExternalAttDeclaration</a>(<font class="keyword">const</font> <font class="keywordtype">bool</font> aValue)
49800674 {
49900675     fExternalAttribute = aValue;
50000676 }
50100677
50200678 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_END</a>
50300679
50400680 <font class="preprocessor">#endif</font>
505</pre></div>    </FONT></TD></TR></TABLE><BR>
506</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>
507              Copyright &copy; 1994-2004 The Apache Software Foundation.
508              All Rights Reserved.
509            </I></FONT></TD></TR></TABLE></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.