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"> </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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </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>
|
---|
45 | 00002 <font class="comment"> * Copyright 1999-2004 The Apache Software Foundation.</font>
|
---|
46 | 00003 <font class="comment"> * </font>
|
---|
47 | 00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
|
---|
48 | 00005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
|
---|
49 | 00006 <font class="comment"> * You may obtain a copy of the License at</font>
|
---|
50 | 00007 <font class="comment"> * </font>
|
---|
51 | 00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font>
|
---|
52 | 00009 <font class="comment"> * </font>
|
---|
53 | 00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
|
---|
54 | 00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
|
---|
55 | 00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
|
---|
56 | 00013 <font class="comment"> * See the License for the specific language governing permissions and</font>
|
---|
57 | 00014 <font class="comment"> * limitations under the License.</font>
|
---|
58 | 00015 <font class="comment"> */</font>
|
---|
59 | 00016
|
---|
60 | 00017 <font class="comment">/*</font>
|
---|
61 | 00018 <font class="comment"> * $Log: XMLAttDef.hpp,v $</font>
|
---|
62 | 00019 <font class="comment"> * Revision 1.14 2004/09/08 13:55:58 peiyongz</font>
|
---|
63 | 00020 <font class="comment"> * Apache License Version 2.0</font>
|
---|
64 | 00021 <font class="comment"> *</font>
|
---|
65 | 00022 <font class="comment"> * Revision 1.13 2004/09/02 19:08:09 cargilld</font>
|
---|
66 | 00023 <font class="comment"> * Fix API Doc warning message</font>
|
---|
67 | 00024 <font class="comment"> *</font>
|
---|
68 | 00025 <font class="comment"> * Revision 1.12 2003/12/17 00:18:33 cargilld</font>
|
---|
69 | 00026 <font class="comment"> * Update to memory management so that the static memory manager (one used to call Initialize) is only for static data.</font>
|
---|
70 | 00027 <font class="comment"> *</font>
|
---|
71 | 00028 <font class="comment"> * Revision 1.11 2003/11/24 05:19:15 neilg</font>
|
---|
72 | 00029 <font class="comment"> * update method documentation</font>
|
---|
73 | 00030 <font class="comment"> *</font>
|
---|
74 | 00031 <font class="comment"> * Revision 1.10 2003/10/10 16:23:29 peiyongz</font>
|
---|
75 | 00032 <font class="comment"> * Implementation of Serialization/Deserialization</font>
|
---|
76 | 00033 <font class="comment"> *</font>
|
---|
77 | 00034 <font class="comment"> * Revision 1.9 2003/05/16 21:36:55 knoaman</font>
|
---|
78 | 00035 <font class="comment"> * Memory manager implementation: Modify constructors to pass in the memory manager.</font>
|
---|
79 | 00036 <font class="comment"> *</font>
|
---|
80 | 00037 <font class="comment"> * Revision 1.8 2003/05/15 18:26:07 knoaman</font>
|
---|
81 | 00038 <font class="comment"> * Partial implementation of the configurable memory manager.</font>
|
---|
82 | 00039 <font class="comment"> *</font>
|
---|
83 | 00040 <font class="comment"> * Revision 1.7 2003/04/21 20:46:01 knoaman</font>
|
---|
84 | 00041 <font class="comment"> * Use XMLString::release to prepare for configurable memory manager.</font>
|
---|
85 | 00042 <font class="comment"> *</font>
|
---|
86 | 00043 <font class="comment"> * Revision 1.6 2003/03/07 18:08:10 tng</font>
|
---|
87 | 00044 <font class="comment"> * Return a reference instead of void for operator=</font>
|
---|
88 | 00045 <font class="comment"> *</font>
|
---|
89 | 00046 <font class="comment"> * Revision 1.5 2003/01/29 19:45:35 gareth</font>
|
---|
90 | 00047 <font class="comment"> * added api for DOMTypeInfo</font>
|
---|
91 | 00048 <font class="comment"> *</font>
|
---|
92 | 00049 <font class="comment"> * Revision 1.4 2002/12/10 02:15:55 knoaman</font>
|
---|
93 | 00050 <font class="comment"> * Schema Errata: E1-21.</font>
|
---|
94 | 00051 <font class="comment"> *</font>
|
---|
95 | 00052 <font class="comment"> * Revision 1.3 2002/11/04 15:00:21 tng</font>
|
---|
96 | 00053 <font class="comment"> * C++ Namespace Support.</font>
|
---|
97 | 00054 <font class="comment"> *</font>
|
---|
98 | 00055 <font class="comment"> * Revision 1.2 2002/02/20 18:17:01 tng</font>
|
---|
99 | 00056 <font class="comment"> * [Bug 5977] Warnings on generating apiDocs.</font>
|
---|
100 | 00057 <font class="comment"> *</font>
|
---|
101 | 00058 <font class="comment"> * Revision 1.1.1.1 2002/02/01 22:21:50 peiyongz</font>
|
---|
102 | 00059 <font class="comment"> * sane_include</font>
|
---|
103 | 00060 <font class="comment"> *</font>
|
---|
104 | 00061 <font class="comment"> * Revision 1.13 2001/11/15 16:36:36 knoaman</font>
|
---|
105 | 00062 <font class="comment"> * Re-organize constant values.</font>
|
---|
106 | 00063 <font class="comment"> *</font>
|
---|
107 | 00064 <font class="comment"> * Revision 1.12 2001/08/09 15:23:37 knoaman</font>
|
---|
108 | 00065 <font class="comment"> * add support for <anyAttribute> declaration.</font>
|
---|
109 | 00066 <font class="comment"> *</font>
|
---|
110 | 00067 <font class="comment"> * Revision 1.11 2001/06/21 14:25:26 knoaman</font>
|
---|
111 | 00068 <font class="comment"> * Fix for bug 1946</font>
|
---|
112 | 00069 <font class="comment"> *</font>
|
---|
113 | 00070 <font class="comment"> * Revision 1.10 2001/05/11 13:25:31 tng</font>
|
---|
114 | 00071 <font class="comment"> * Copyright update.</font>
|
---|
115 | 00072 <font class="comment"> *</font>
|
---|
116 | 00073 <font class="comment"> * Revision 1.9 2001/02/27 18:48:20 tng</font>
|
---|
117 | 00074 <font class="comment"> * Schema: Add SchemaAttDef, SchemaElementDecl, SchemaAttDefList.</font>
|
---|
118 | 00075 <font class="comment"> *</font>
|
---|
119 | 00076 <font class="comment"> * Revision 1.8 2000/12/14 18:49:56 tng</font>
|
---|
120 | 00077 <font class="comment"> * Fix API document generation warning: "Warning: end of member group without matching begin"</font>
|
---|
121 | 00078 <font class="comment"> *</font>
|
---|
122 | 00079 <font class="comment"> * Revision 1.7 2000/11/30 18:22:38 andyh</font>
|
---|
123 | 00080 <font class="comment"> * reuseValidator - fix bugs (spurious errors) that occured on reuse due to</font>
|
---|
124 | 00081 <font class="comment"> * pools already containing some items. Fixed by Tinny Ng.</font>
|
---|
125 | 00082 <font class="comment"> *</font>
|
---|
126 | 00083 <font class="comment"> * Revision 1.6 2000/07/07 22:23:38 jpolast</font>
|
---|
127 | 00084 <font class="comment"> * remove useless getKey() functions.</font>
|
---|
128 | 00085 <font class="comment"> *</font>
|
---|
129 | 00086 <font class="comment"> * Revision 1.5 2000/02/24 20:00:22 abagchi</font>
|
---|
130 | 00087 <font class="comment"> * Swat for removing Log from API docs</font>
|
---|
131 | 00088 <font class="comment"> *</font>
|
---|
132 | 00089 <font class="comment"> * Revision 1.4 2000/02/16 23:03:48 roddey</font>
|
---|
133 | 00090 <font class="comment"> * More documentation updates</font>
|
---|
134 | 00091 <font class="comment"> *</font>
|
---|
135 | 00092 <font class="comment"> * Revision 1.3 2000/02/15 01:21:30 roddey</font>
|
---|
136 | 00093 <font class="comment"> * Some initial documentation improvements. More to come...</font>
|
---|
137 | 00094 <font class="comment"> *</font>
|
---|
138 | 00095 <font class="comment"> * Revision 1.2 2000/02/06 07:47:46 rahulj</font>
|
---|
139 | 00096 <font class="comment"> * Year 2K copyright swat.</font>
|
---|
140 | 00097 <font class="comment"> *</font>
|
---|
141 | 00098 <font class="comment"> * Revision 1.1.1.1 1999/11/09 01:08:27 twl</font>
|
---|
142 | 00099 <font class="comment"> * Initial checkin</font>
|
---|
143 | 00100 <font class="comment"> *</font>
|
---|
144 | 00101 <font class="comment"> * Revision 1.2 1999/11/08 20:44:34 rahul</font>
|
---|
145 | 00102 <font class="comment"> * Swat for adding in Product name and CVS comment log variable.</font>
|
---|
146 | 00103 <font class="comment"> *</font>
|
---|
147 | 00104 <font class="comment"> */</font>
|
---|
148 | 00105
|
---|
149 | 00106 <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>
|
---|
151 | 00108 <font class="preprocessor"></font>
|
---|
152 | 00109 <font class="preprocessor">#include <<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>></font>
|
---|
153 | 00110 <font class="preprocessor">#include <<a class="code" href="XMLString_8hpp.html">xercesc/util/XMLString.hpp</a>></font>
|
---|
154 | 00111 <font class="preprocessor">#include <<a class="code" href="XMemory_8hpp.html">xercesc/util/XMemory.hpp</a>></font>
|
---|
155 | 00112 <font class="preprocessor">#include <xercesc/internal/XSerializable.hpp></font>
|
---|
156 | 00113
|
---|
157 | 00114 <a class="code" href="XercesDefs_8hpp.html#a2">XERCES_CPP_NAMESPACE_BEGIN</a>
|
---|
158 | 00115
|
---|
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>;
|
---|
160 | 00117
|
---|
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>
|
---|
162 | 00137 {
|
---|
163 | 00138 <font class="keyword">public</font>:
|
---|
164 | 00139 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
165 | 00140 <font class="comment">// Class specific types</font>
|
---|
166 | 00141 <font class="comment">//</font>
|
---|
167 | 00142 <font class="comment">// AttTypes</font>
|
---|
168 | 00143 <font class="comment">// The list of possible types that an attribute can have, according</font>
|
---|
169 | 00144 <font class="comment">// to the XML 1.0 spec and schema.</font>
|
---|
170 | 00145 <font class="comment">//</font>
|
---|
171 | 00146 <font class="comment">// DefAttTypes</font>
|
---|
172 | 00147 <font class="comment">// The modifiers that an attribute decl can have, which indicates</font>
|
---|
173 | 00148 <font class="comment">// whether instances of that attributes are required, implied, etc..</font>
|
---|
174 | 00149 <font class="comment">//</font>
|
---|
175 | 00150 <font class="comment">// CreateReasons</font>
|
---|
176 | 00151 <font class="comment">// This type is used to store how an attribute declaration got into</font>
|
---|
177 | 00152 <font class="comment">// the elementdecl's attribute pool.</font>
|
---|
178 | 00153 <font class="comment">//</font>
|
---|
179 | 00154 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
180 | <a name="l00155"></a><a class="code" href="classXMLAttDef.html#s33">00155</a> <font class="keyword">enum</font> AttTypes
|
---|
181 | 00156 {
|
---|
182 | 00157 CData = 0
|
---|
183 | 00158 , ID = 1
|
---|
184 | 00159 , IDRef = 2
|
---|
185 | 00160 , IDRefs = 3
|
---|
186 | 00161 , Entity = 4
|
---|
187 | 00162 , Entities = 5
|
---|
188 | 00163 , NmToken = 6
|
---|
189 | 00164 , NmTokens = 7
|
---|
190 | 00165 , Notation = 8
|
---|
191 | 00166 , Enumeration = 9
|
---|
192 | 00167 , Simple = 10
|
---|
193 | 00168 , Any_Any = 11
|
---|
194 | 00169 , Any_Other = 12
|
---|
195 | 00170 , Any_List = 13
|
---|
196 | 00171
|
---|
197 | 00172 , AttTypes_Count
|
---|
198 | 00173 , AttTypes_Min = 0
|
---|
199 | 00174 , AttTypes_Max = 13
|
---|
200 | 00175 , AttTypes_Unknown = -1
|
---|
201 | 00176 };
|
---|
202 | 00177
|
---|
203 | <a name="l00178"></a><a class="code" href="classXMLAttDef.html#s34">00178</a> <font class="keyword">enum</font> DefAttTypes
|
---|
204 | 00179 {
|
---|
205 | 00180 Default = 0
|
---|
206 | 00181 , Fixed = 1
|
---|
207 | 00182 , Required = 2
|
---|
208 | 00183 , Required_And_Fixed = 3
|
---|
209 | 00184 , Implied = 4
|
---|
210 | 00185 , ProcessContents_Skip = 5
|
---|
211 | 00186 , ProcessContents_Lax = 6
|
---|
212 | 00187 , ProcessContents_Strict = 7
|
---|
213 | 00188 , Prohibited = 8
|
---|
214 | 00189
|
---|
215 | 00190 , DefAttTypes_Count
|
---|
216 | 00191 , DefAttTypes_Min = 0
|
---|
217 | 00192 , DefAttTypes_Max = 8
|
---|
218 | 00193 , DefAttTypes_Unknown = -1
|
---|
219 | 00194 };
|
---|
220 | 00195
|
---|
221 | <a name="l00196"></a><a class="code" href="classXMLAttDef.html#s35">00196</a> <font class="keyword">enum</font> CreateReasons
|
---|
222 | 00197 {
|
---|
223 | 00198 NoReason
|
---|
224 | 00199 , JustFaultIn
|
---|
225 | 00200 };
|
---|
226 | 00201
|
---|
227 | 00202 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
228 | 00203 <font class="comment">// Public static data members</font>
|
---|
229 | 00204 <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;
|
---|
231 | 00206
|
---|
232 | 00207
|
---|
233 | 00208 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
234 | 00209 <font class="comment">// Public, static methods</font>
|
---|
235 | 00210 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
236 | 00211
|
---|
237 | 00214
|
---|
238 | 00225 <font class="keyword">static</font> <font class="keyword">const</font> XMLCh* getAttTypeString(<font class="keyword">const</font> AttTypes attrType
|
---|
239 | 00226 , <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>);
|
---|
240 | 00227
|
---|
241 | 00238 <font class="keyword">static</font> <font class="keyword">const</font> XMLCh* getDefAttTypeString(<font class="keyword">const</font> DefAttTypes attrType
|
---|
242 | 00239 , <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>);
|
---|
243 | 00240
|
---|
244 | 00242
|
---|
245 | 00243
|
---|
246 | 00244 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
247 | 00245 <font class="comment">// Destructor</font>
|
---|
248 | 00246 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
249 | 00247
|
---|
250 | 00250
|
---|
251 | 00254 <font class="keyword">virtual</font> ~<a class="code" href="classXMLAttDef.html">XMLAttDef</a>();
|
---|
252 | 00256
|
---|
253 | 00257
|
---|
254 | 00258 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
255 | 00259 <font class="comment">// The virtual attribute def interface</font>
|
---|
256 | 00260 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
257 | 00261
|
---|
258 | 00264
|
---|
259 | 00273 <font class="keyword">virtual</font> <font class="keyword">const</font> XMLCh* getFullName() <font class="keyword">const</font> = 0;
|
---|
260 | 00274
|
---|
261 | 00279 <font class="keyword">virtual</font> <font class="keywordtype">void</font> reset() = 0;
|
---|
262 | 00280
|
---|
263 | 00282
|
---|
264 | 00283
|
---|
265 | 00284 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
266 | 00285 <font class="comment">// Getter methods</font>
|
---|
267 | 00286 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
268 | 00287
|
---|
269 | 00290
|
---|
270 | 00299 DefAttTypes getDefaultType() <font class="keyword">const</font>;
|
---|
271 | 00300
|
---|
272 | 00310 <font class="keyword">const</font> XMLCh* getEnumeration() <font class="keyword">const</font>;
|
---|
273 | 00311
|
---|
274 | 00320 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> getId() <font class="keyword">const</font>;
|
---|
275 | 00321
|
---|
276 | 00336 <font class="keywordtype">bool</font> getProvided() <font class="keyword">const</font>;
|
---|
277 | 00337
|
---|
278 | 00347 AttTypes getType() <font class="keyword">const</font>;
|
---|
279 | 00348
|
---|
280 | 00358 <font class="keyword">const</font> XMLCh* getValue() <font class="keyword">const</font>;
|
---|
281 | 00359
|
---|
282 | 00368 CreateReasons getCreateReason() <font class="keyword">const</font>;
|
---|
283 | 00369
|
---|
284 | 00377 <font class="keywordtype">bool</font> isExternal() <font class="keyword">const</font>;
|
---|
285 | 00378
|
---|
286 | 00386 <a class="code" href="classMemoryManager.html">MemoryManager</a>* getMemoryManager() <font class="keyword">const</font>;
|
---|
287 | 00387
|
---|
288 | 00388
|
---|
289 | 00393 <font class="keyword">virtual</font> <font class="keyword">const</font> XMLCh* getDOMTypeInfoUri() <font class="keyword">const</font> = 0;
|
---|
290 | 00394
|
---|
291 | 00399 <font class="keyword">virtual</font> <font class="keyword">const</font> XMLCh* getDOMTypeInfoName() <font class="keyword">const</font> = 0;
|
---|
292 | 00400
|
---|
293 | 00402
|
---|
294 | 00403
|
---|
295 | 00404 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
296 | 00405 <font class="comment">// Setter methods</font>
|
---|
297 | 00406 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
298 | 00407
|
---|
299 | 00410
|
---|
300 | 00419 <font class="keywordtype">void</font> setDefaultType(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s34">XMLAttDef::DefAttTypes</a> newValue);
|
---|
301 | 00420
|
---|
302 | 00429 <font class="keywordtype">void</font> setId(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> newId);
|
---|
303 | 00430
|
---|
304 | 00440 <font class="keywordtype">void</font> setProvided(<font class="keyword">const</font> <font class="keywordtype">bool</font> newValue);
|
---|
305 | 00441
|
---|
306 | 00449 <font class="keywordtype">void</font> setType(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> newValue);
|
---|
307 | 00450
|
---|
308 | 00461 <font class="keywordtype">void</font> setValue(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newValue);
|
---|
309 | 00462
|
---|
310 | 00473 <font class="keywordtype">void</font> setEnumeration(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newValue);
|
---|
311 | 00474
|
---|
312 | 00482 <font class="keywordtype">void</font> setCreateReason(<font class="keyword">const</font> CreateReasons newReason);
|
---|
313 | 00483
|
---|
314 | 00489 <font class="keywordtype">void</font> setExternalAttDeclaration(<font class="keyword">const</font> <font class="keywordtype">bool</font> aValue);
|
---|
315 | 00490
|
---|
316 | 00492
|
---|
317 | 00493 <font class="comment">/***</font>
|
---|
318 | 00494 <font class="comment"> * Support for Serialization/De-serialization</font>
|
---|
319 | 00495 <font class="comment"> ***/</font>
|
---|
320 | 00496 DECL_XSERIALIZABLE(<a class="code" href="classXMLAttDef.html">XMLAttDef</a>)
|
---|
321 | 00497
|
---|
322 | 00498 <font class="keyword">protected</font> :
|
---|
323 | 00499 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
324 | 00500 <font class="comment">// Hidden constructors</font>
|
---|
325 | 00501 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
326 | 00502 <a class="code" href="classXMLAttDef.html">XMLAttDef</a>
|
---|
327 | 00503 (
|
---|
328 | 00504 <font class="keyword">const</font> AttTypes type = CData
|
---|
329 | 00505 , <font class="keyword">const</font> DefAttTypes defType= Implied
|
---|
330 | 00506 , <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>
|
---|
331 | 00507 );
|
---|
332 | 00508 <a class="code" href="classXMLAttDef.html">XMLAttDef</a>
|
---|
333 | 00509 (
|
---|
334 | 00510 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> attValue
|
---|
335 | 00511 , <font class="keyword">const</font> AttTypes type
|
---|
336 | 00512 , <font class="keyword">const</font> DefAttTypes defType
|
---|
337 | 00513 , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> enumValues = 0
|
---|
338 | 00514 , <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>
|
---|
339 | 00515 );
|
---|
340 | 00516
|
---|
341 | 00517
|
---|
342 | 00518 <font class="keyword">private</font> :
|
---|
343 | 00519 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
344 | 00520 <font class="comment">// Unimplemented constructors and operators</font>
|
---|
345 | 00521 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
346 | 00522 <a class="code" href="XMLAttDefList_8hpp.html#a1">XMLAttDef</a>(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html">XMLAttDef</a>&);
|
---|
347 | 00523 <a class="code" href="classXMLAttDef.html">XMLAttDef</a>& operator=(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html">XMLAttDef</a>&);
|
---|
348 | 00524
|
---|
349 | 00525
|
---|
350 | 00526 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
351 | 00527 <font class="comment">// Private helper methods</font>
|
---|
352 | 00528 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
353 | 00529 <font class="keywordtype">void</font> cleanUp();
|
---|
354 | 00530
|
---|
355 | 00531
|
---|
356 | 00532 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
357 | 00533 <font class="comment">// Private data members</font>
|
---|
358 | 00534 <font class="comment">//</font>
|
---|
359 | 00535 <font class="comment">// fDefaultType</font>
|
---|
360 | 00536 <font class="comment">// Indicates what, if any, default stuff this attribute has.</font>
|
---|
361 | 00537 <font class="comment">//</font>
|
---|
362 | 00538 <font class="comment">// fEnumeration</font>
|
---|
363 | 00539 <font class="comment">// If its an enumeration, this is the list of values as space</font>
|
---|
364 | 00540 <font class="comment">// separated values.</font>
|
---|
365 | 00541 <font class="comment">//</font>
|
---|
366 | 00542 <font class="comment">// fId</font>
|
---|
367 | 00543 <font class="comment">// This is the unique id of this attribute, given to it when its put</font>
|
---|
368 | 00544 <font class="comment">// into the validator's attribute decl pool. It defaults to the</font>
|
---|
369 | 00545 <font class="comment">// special value XMLAttrDef::fgInvalidAttrId.</font>
|
---|
370 | 00546 <font class="comment">//</font>
|
---|
371 | 00547 <font class="comment">// fProvided</font>
|
---|
372 | 00548 <font class="comment">// This field is really for use by the scanner. It is used to track</font>
|
---|
373 | 00549 <font class="comment">// which of the attributes of an element were provided. Any marked</font>
|
---|
374 | 00550 <font class="comment">// as not provided (after scanning the start tag) and having a</font>
|
---|
375 | 00551 <font class="comment">// default type of Required, is in error.</font>
|
---|
376 | 00552 <font class="comment">//</font>
|
---|
377 | 00553 <font class="comment">// fType</font>
|
---|
378 | 00554 <font class="comment">// The type of attribute, which is one of the AttTypes values.</font>
|
---|
379 | 00555 <font class="comment">//</font>
|
---|
380 | 00556 <font class="comment">// fValue</font>
|
---|
381 | 00557 <font class="comment">// This is the value of the attribute, which is the default value</font>
|
---|
382 | 00558 <font class="comment">// given in the attribute declaration.</font>
|
---|
383 | 00559 <font class="comment">//</font>
|
---|
384 | 00560 <font class="comment">// fCreateReason</font>
|
---|
385 | 00561 <font class="comment">// This flag tells us how this attribute got created. Sometimes even</font>
|
---|
386 | 00562 <font class="comment">// the attribute was not declared for the element, we want to fault</font>
|
---|
387 | 00563 <font class="comment">// fault it into the pool to avoid lots of redundant errors.</font>
|
---|
388 | 00564 <font class="comment">//</font>
|
---|
389 | 00565 <font class="comment">// fExternalAttribute</font>
|
---|
390 | 00566 <font class="comment">// This flag indicates whether or not the attribute was declared externally.</font>
|
---|
391 | 00567 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
392 | 00568 DefAttTypes fDefaultType;
|
---|
393 | 00569 AttTypes fType;
|
---|
394 | 00570 CreateReasons fCreateReason;
|
---|
395 | 00571 <font class="keywordtype">bool</font> fProvided;
|
---|
396 | 00572 <font class="keywordtype">bool</font> fExternalAttribute;
|
---|
397 | 00573 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> fId;
|
---|
398 | 00574 XMLCh* fValue;
|
---|
399 | 00575 XMLCh* fEnumeration;
|
---|
400 | 00576 <a class="code" href="classMemoryManager.html">MemoryManager</a>* fMemoryManager;
|
---|
401 | 00577 };
|
---|
402 | 00578
|
---|
403 | 00579
|
---|
404 | 00580 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
405 | 00581 <font class="comment">// Getter methods</font>
|
---|
406 | 00582 <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>
|
---|
408 | 00584 <font class="keyword"></font>{
|
---|
409 | 00585 <font class="keywordflow">return</font> fDefaultType;
|
---|
410 | 00586 }
|
---|
411 | 00587
|
---|
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>
|
---|
413 | 00589 <font class="keyword"></font>{
|
---|
414 | 00590 <font class="keywordflow">return</font> fEnumeration;
|
---|
415 | 00591 }
|
---|
416 | 00592
|
---|
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>
|
---|
418 | 00594 <font class="keyword"></font>{
|
---|
419 | 00595 <font class="keywordflow">return</font> fId;
|
---|
420 | 00596 }
|
---|
421 | 00597
|
---|
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>
|
---|
423 | 00599 <font class="keyword"></font>{
|
---|
424 | 00600 <font class="keywordflow">return</font> fProvided;
|
---|
425 | 00601 }
|
---|
426 | 00602
|
---|
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>
|
---|
428 | 00604 <font class="keyword"></font>{
|
---|
429 | 00605 <font class="keywordflow">return</font> fType;
|
---|
430 | 00606 }
|
---|
431 | 00607
|
---|
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>
|
---|
433 | 00609 <font class="keyword"></font>{
|
---|
434 | 00610 <font class="keywordflow">return</font> fValue;
|
---|
435 | 00611 }
|
---|
436 | 00612
|
---|
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>
|
---|
438 | 00614 <font class="keyword"></font>{
|
---|
439 | 00615 <font class="keywordflow">return</font> fCreateReason;
|
---|
440 | 00616 }
|
---|
441 | 00617
|
---|
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>
|
---|
443 | 00619 <font class="keyword"></font>{
|
---|
444 | 00620 <font class="keywordflow">return</font> fExternalAttribute;
|
---|
445 | 00621 }
|
---|
446 | 00622
|
---|
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>
|
---|
448 | 00624 <font class="keyword"></font>{
|
---|
449 | 00625 <font class="keywordflow">return</font> fMemoryManager;
|
---|
450 | 00626 }
|
---|
451 | 00627
|
---|
452 | 00628 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
453 | 00629 <font class="comment">// XMLAttDef: Setter methods</font>
|
---|
454 | 00630 <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)
|
---|
456 | 00632 {
|
---|
457 | 00633 fDefaultType = newValue;
|
---|
458 | 00634 }
|
---|
459 | 00635
|
---|
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)
|
---|
461 | 00637 {
|
---|
462 | 00638 <font class="keywordflow">if</font> (fEnumeration)
|
---|
463 | 00639 fMemoryManager-><a class="code" href="classMemoryManager.html#z221_1">deallocate</a>(fEnumeration);
|
---|
464 | 00640
|
---|
465 | 00641 fEnumeration = <a class="code" href="classXMLString.html#z518_0">XMLString::replicate</a>(newValue, fMemoryManager);
|
---|
466 | 00642 }
|
---|
467 | 00643
|
---|
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)
|
---|
469 | 00645 {
|
---|
470 | 00646 fId = newId;
|
---|
471 | 00647 }
|
---|
472 | 00648
|
---|
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)
|
---|
474 | 00650 {
|
---|
475 | 00651 fProvided = newValue;
|
---|
476 | 00652 }
|
---|
477 | 00653
|
---|
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)
|
---|
479 | 00655 {
|
---|
480 | 00656 fType = newValue;
|
---|
481 | 00657 }
|
---|
482 | 00658
|
---|
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)
|
---|
484 | 00660 {
|
---|
485 | 00661 <font class="keywordflow">if</font> (fValue)
|
---|
486 | 00662 fMemoryManager-><a class="code" href="classMemoryManager.html#z221_1">deallocate</a>(fValue);
|
---|
487 | 00663
|
---|
488 | 00664 fValue = <a class="code" href="classXMLString.html#z518_0">XMLString::replicate</a>(newValue, fMemoryManager);
|
---|
489 | 00665 }
|
---|
490 | 00666
|
---|
491 | 00667 <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)
|
---|
493 | 00669 {
|
---|
494 | 00670 fCreateReason = newReason;
|
---|
495 | 00671 }
|
---|
496 | 00672
|
---|
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)
|
---|
498 | 00674 {
|
---|
499 | 00675 fExternalAttribute = aValue;
|
---|
500 | 00676 }
|
---|
501 | 00677
|
---|
502 | 00678 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_END</a>
|
---|
503 | 00679
|
---|
504 | 00680 <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 © 1994-2004 The Apache Software Foundation.
|
---|
508 | All Rights Reserved.
|
---|
509 | </I></FONT></TD></TR></TABLE></BODY></HTML>
|
---|