1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Xerces-C++: XMLAttr.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>XMLAttr.hpp</h1><a href="XMLAttr_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span>
<a name="l00003"></a>00003 <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span>
<a name="l00004"></a>00004 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
<a name="l00005"></a>00005 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
<a name="l00006"></a>00006 <span class="comment"> * (the "License"); you may not use this file except in compliance with</span>
<a name="l00007"></a>00007 <span class="comment"> * the License. You may obtain a copy of the License at</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00010"></a>00010 <span class="comment"> * </span>
<a name="l00011"></a>00011 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00012"></a>00012 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00013"></a>00013 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00014"></a>00014 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00015"></a>00015 <span class="comment"> * limitations under the License.</span>
<a name="l00016"></a>00016 <span class="comment"> */</span>
<a name="l00017"></a>00017
<a name="l00018"></a>00018 <span class="comment">/*</span>
<a name="l00019"></a>00019 <span class="comment"> * $Id: XMLAttr.hpp 932887 2010-04-11 13:04:59Z borisk $</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="preprocessor">#if !defined(XERCESC_INCLUDE_GUARD_XMLATTR_HPP)</span>
<a name="l00023"></a><a class="code" href="XMLAttr_8hpp.html#489228d9b6d2817114b2a195d8996392">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define XERCESC_INCLUDE_GUARD_XMLATTR_HPP</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include <<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include <<a class="code" href="QName_8hpp.html">xercesc/util/QName.hpp</a>></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include <<a class="code" href="XMLAttDef_8hpp.html">xercesc/framework/XMLAttDef.hpp</a>></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include <xercesc/validators/datatype/DatatypeValidator.hpp></span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <a class="code" href="XercesDefs_8hpp.html#43d74fa53d868d978f3e97cbb78b194d">XERCES_CPP_NAMESPACE_BEGIN</a>
<a name="l00031"></a>00031
<a name="l00053"></a><a class="code" href="classXMLAttr.html">00053</a> <span class="keyword">class </span><a class="code" href="XercesDefs_8hpp.html#13df5a01e63e51f62a1467b588b59054">XMLPARSER_EXPORT</a> <a class="code" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner...">XMLAttr</a> : <span class="keyword">public</span> <a class="code" href="classXMemory.html" title="This class makes it possible to override the C++ memory management by adding new/delete...">XMemory</a>
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055 <span class="keyword">public</span>:
<a name="l00056"></a>00056 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00057"></a>00057 <span class="comment">// Constructors and Destructor</span>
<a name="l00058"></a>00058 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00061"></a>00061 <span class="comment"></span>
<a name="l00069"></a>00069 <a class="code" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner...">XMLAttr</a>(<a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00070"></a>00070
<a name="l00103"></a>00103 <a class="code" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner...">XMLAttr</a>
<a name="l00104"></a>00104 (
<a name="l00105"></a>00105 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uriId
<a name="l00106"></a>00106 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrName
<a name="l00107"></a>00107 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrPrefix
<a name="l00108"></a>00108 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrValue
<a name="l00109"></a>00109 , <span class="keyword">const</span> <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> type = <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255e77a76f18e1eea5d67911599b13ce76d">XMLAttDef::CData</a>
<a name="l00110"></a>00110 , <span class="keyword">const</span> <span class="keywordtype">bool</span> specified = <span class="keyword">true</span>
<a name="l00111"></a>00111 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>
<a name="l00112"></a>00112 , DatatypeValidator * datatypeValidator = 0
<a name="l00113"></a>00113 , <span class="keyword">const</span> <span class="keywordtype">bool</span> isSchema = <span class="keyword">false</span>
<a name="l00114"></a>00114 );
<a name="l00115"></a>00115
<a name="l00144"></a>00144 <a class="code" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner...">XMLAttr</a>
<a name="l00145"></a>00145 (
<a name="l00146"></a>00146 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uriId
<a name="l00147"></a>00147 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> rawName
<a name="l00148"></a>00148 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrValue
<a name="l00149"></a>00149 , <span class="keyword">const</span> <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> type = <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255e77a76f18e1eea5d67911599b13ce76d">XMLAttDef::CData</a>
<a name="l00150"></a>00150 , <span class="keyword">const</span> <span class="keywordtype">bool</span> specified = <span class="keyword">true</span>
<a name="l00151"></a>00151 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>
<a name="l00152"></a>00152 , DatatypeValidator * datatypeValidator = 0
<a name="l00153"></a>00153 , <span class="keyword">const</span> <span class="keywordtype">bool</span> isSchema = <span class="keyword">false</span>
<a name="l00154"></a>00154 );
<a name="l00155"></a>00155
<a name="l00157"></a>00157
<a name="l00160"></a>00160 ~<a class="code" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner...">XMLAttr</a>();
<a name="l00162"></a>00162
<a name="l00163"></a>00163
<a name="l00164"></a>00164 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00165"></a>00165 <span class="comment">// Getter methods</span>
<a name="l00166"></a>00166 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00167"></a>00167
<a name="l00170"></a>00170
<a name="l00174"></a>00174 <a class="code" href="classQName.html">QName</a>* getAttName() <span class="keyword">const</span>;
<a name="l00175"></a>00175
<a name="l00180"></a>00180 <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* getName() <span class="keyword">const</span>;
<a name="l00181"></a>00181
<a name="l00186"></a>00186 <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* getPrefix() <span class="keyword">const</span>;
<a name="l00187"></a>00187
<a name="l00193"></a>00193 <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* getQName() <span class="keyword">const</span>;
<a name="l00194"></a>00194
<a name="l00199"></a>00199 <span class="keywordtype">bool</span> getSpecified() <span class="keyword">const</span>;
<a name="l00200"></a>00200
<a name="l00205"></a>00205 <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> getType() <span class="keyword">const</span>;
<a name="l00206"></a>00206
<a name="l00212"></a>00212 <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* getValue() <span class="keyword">const</span>;
<a name="l00213"></a>00213
<a name="l00218"></a>00218 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getURIId() <span class="keyword">const</span>;
<a name="l00219"></a>00219
<a name="l00221"></a>00221
<a name="l00222"></a>00222
<a name="l00223"></a>00223 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00224"></a>00224 <span class="comment">// Setter methods</span>
<a name="l00225"></a>00225 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00226"></a>00226
<a name="l00229"></a>00229
<a name="l00258"></a>00258 <span class="keywordtype">void</span> <span class="keyword">set</span>
<a name="l00259"></a>00259 (
<a name="l00260"></a>00260 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uriId
<a name="l00261"></a>00261 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrName
<a name="l00262"></a>00262 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrPrefix
<a name="l00263"></a>00263 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrValue
<a name="l00264"></a>00264 , <span class="keyword">const</span> <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> type = <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255e77a76f18e1eea5d67911599b13ce76d">XMLAttDef::CData</a>
<a name="l00265"></a>00265 , DatatypeValidator * datatypeValidator = 0
<a name="l00266"></a>00266 , <span class="keyword">const</span> <span class="keywordtype">bool</span> isSchema = false
<a name="l00267"></a>00267 );
<a name="l00268"></a>00268
<a name="l00292"></a>00292 <span class="keywordtype">void</span> <span class="keyword">set</span>
<a name="l00293"></a>00293 (
<a name="l00294"></a>00294 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uriId
<a name="l00295"></a>00295 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrRawName
<a name="l00296"></a>00296 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrValue
<a name="l00297"></a>00297 , <span class="keyword">const</span> <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> type = <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255e77a76f18e1eea5d67911599b13ce76d">XMLAttDef::CData</a>
<a name="l00298"></a>00298 , DatatypeValidator * datatypeValidator = 0
<a name="l00299"></a>00299 , <span class="keyword">const</span> <span class="keywordtype">bool</span> isSchema = false
<a name="l00300"></a>00300 );
<a name="l00301"></a>00301
<a name="l00316"></a>00316 <span class="keywordtype">void</span> setName
<a name="l00317"></a>00317 (
<a name="l00318"></a>00318 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uriId
<a name="l00319"></a>00319 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrName
<a name="l00320"></a>00320 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrPrefix
<a name="l00321"></a>00321 );
<a name="l00322"></a>00322
<a name="l00330"></a>00330 <span class="keywordtype">void</span> setSpecified(<span class="keyword">const</span> <span class="keywordtype">bool</span> newValue);
<a name="l00331"></a>00331
<a name="l00340"></a>00340 <span class="keywordtype">void</span> setType(<span class="keyword">const</span> <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> newType);
<a name="l00341"></a>00341
<a name="l00349"></a>00349 <span class="keywordtype">void</span> setValue(<span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> newValue);
<a name="l00350"></a>00350
<a name="l00358"></a>00358 <span class="keywordtype">void</span> setURIId(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uriId);
<a name="l00359"></a>00359
<a name="l00361"></a>00361
<a name="l00362"></a>00362
<a name="l00363"></a>00363
<a name="l00364"></a>00364 <span class="keyword">private</span> :
<a name="l00365"></a>00365 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00366"></a>00366 <span class="comment">// Unimplemented constructors and operators</span>
<a name="l00367"></a>00367 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00368"></a>00368 <a class="code" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner...">XMLAttr</a>(<span class="keyword">const</span> <a class="code" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner...">XMLAttr</a>&);
<a name="l00369"></a>00369 <a class="code" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner...">XMLAttr</a>& operator=(<span class="keyword">const</span> <a class="code" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner...">XMLAttr</a>&);
<a name="l00370"></a>00370
<a name="l00371"></a>00371
<a name="l00372"></a>00372 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00373"></a>00373 <span class="comment">// Private, helper methods</span>
<a name="l00374"></a>00374 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00375"></a>00375 <span class="keywordtype">void</span> cleanUp();
<a name="l00376"></a>00376
<a name="l00377"></a>00377
<a name="l00378"></a>00378 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00379"></a>00379 <span class="comment">// Private instance variables</span>
<a name="l00380"></a>00380 <span class="comment">//</span>
<a name="l00381"></a>00381 <span class="comment">// fAttName</span>
<a name="l00382"></a>00382 <span class="comment">// The Attribute Name;</span>
<a name="l00383"></a>00383 <span class="comment">//</span>
<a name="l00384"></a>00384 <span class="comment">// fSpecified</span>
<a name="l00385"></a>00385 <span class="comment">// True if this attribute appeared in the element; else, false if</span>
<a name="l00386"></a>00386 <span class="comment">// it was defaulted from an AttDef.</span>
<a name="l00387"></a>00387 <span class="comment">//</span>
<a name="l00388"></a>00388 <span class="comment">// fType</span>
<a name="l00389"></a>00389 <span class="comment">// The attribute type enum value for this attribute. Indicates what</span>
<a name="l00390"></a>00390 <span class="comment">// type of attribute it was.</span>
<a name="l00391"></a>00391 <span class="comment">//</span>
<a name="l00392"></a>00392 <span class="comment">// fValue</span>
<a name="l00393"></a>00393 <span class="comment">// fValueBufSz</span>
<a name="l00394"></a>00394 <span class="comment">// The attribute value that was given in the attribute instance, and</span>
<a name="l00395"></a>00395 <span class="comment">// its current buffer size (minus one, where the null is.)</span>
<a name="l00396"></a>00396 <span class="comment">//</span>
<a name="l00397"></a>00397 <span class="comment">// fMemoryManager</span>
<a name="l00398"></a>00398 <span class="comment">// The memory manager used for dynamic memory allocation/deallocation</span>
<a name="l00399"></a>00399 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00400"></a>00400 <span class="keywordtype">bool</span> fSpecified;
<a name="l00401"></a>00401 <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> fType;
<a name="l00402"></a>00402 <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> fValueBufSz;
<a name="l00403"></a>00403 <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* fValue;
<a name="l00404"></a>00404 <a class="code" href="classQName.html">QName</a>* fAttName;
<a name="l00405"></a>00405 <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* fMemoryManager;
<a name="l00406"></a>00406 };
<a name="l00407"></a>00407
<a name="l00408"></a>00408 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00409"></a>00409 <span class="comment">// XMLAttr: Constructors and Destructor</span>
<a name="l00410"></a>00410 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00411"></a><a class="code" href="classXMLAttr.html#90f5c37effbb18503302ed88048eedcd">00411</a> <span class="keyword">inline</span> <a class="code" href="classXMLAttr.html#90f5c37effbb18503302ed88048eedcd">XMLAttr::~XMLAttr</a>()
<a name="l00412"></a>00412 {
<a name="l00413"></a>00413 cleanUp();
<a name="l00414"></a>00414 }
<a name="l00415"></a>00415
<a name="l00416"></a>00416
<a name="l00417"></a>00417 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00418"></a>00418 <span class="comment">// XMLAttr: Getter methods</span>
<a name="l00419"></a>00419 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00420"></a><a class="code" href="classXMLAttr.html#d1f6f75fb9ba0f7ea90145a839cae1c8">00420</a> <span class="keyword">inline</span> <a class="code" href="classQName.html">QName</a>* <a class="code" href="classXMLAttr.html#d1f6f75fb9ba0f7ea90145a839cae1c8" title="This method returns the attribute name in a QName format.">XMLAttr::getAttName</a>()<span class="keyword"> const</span>
<a name="l00421"></a>00421 <span class="keyword"></span>{
<a name="l00422"></a>00422 <span class="keywordflow">return</span> fAttName;
<a name="l00423"></a>00423 }
<a name="l00424"></a>00424
<a name="l00425"></a><a class="code" href="classXMLAttr.html#18927ce8e8ea49d622fd20016cec01ec">00425</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <a class="code" href="classXMLAttr.html#18927ce8e8ea49d622fd20016cec01ec" title="This method gets a const pointer to the name of the attribute.">XMLAttr::getName</a>()<span class="keyword"> const</span>
<a name="l00426"></a>00426 <span class="keyword"></span>{
<a name="l00427"></a>00427 <span class="keywordflow">return</span> fAttName-><a class="code" href="classQName.html#a22c091478cc3ec4fa64c9d448fdeb0d">getLocalPart</a>();
<a name="l00428"></a>00428 }
<a name="l00429"></a>00429
<a name="l00430"></a><a class="code" href="classXMLAttr.html#aacdcbc48f8db0149eed17d3f3607107">00430</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <a class="code" href="classXMLAttr.html#aacdcbc48f8db0149eed17d3f3607107" title="This method will get a const pointer to the prefix string of this attribute.">XMLAttr::getPrefix</a>()<span class="keyword"> const</span>
<a name="l00431"></a>00431 <span class="keyword"></span>{
<a name="l00432"></a>00432 <span class="keywordflow">return</span> fAttName-><a class="code" href="classQName.html#5f5c1b806bb0eb966d47324b30a3199d">getPrefix</a>();
<a name="l00433"></a>00433 }
<a name="l00434"></a>00434
<a name="l00435"></a><a class="code" href="classXMLAttr.html#e7cffa5ffbef189b265e072a95e4d9e2">00435</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classXMLAttr.html#e7cffa5ffbef189b265e072a95e4d9e2" title="This method will get the specified flag, which indicates whether the attribute was...">XMLAttr::getSpecified</a>()<span class="keyword"> const</span>
<a name="l00436"></a>00436 <span class="keyword"></span>{
<a name="l00437"></a>00437 <span class="keywordflow">return</span> fSpecified;
<a name="l00438"></a>00438 }
<a name="l00439"></a>00439
<a name="l00440"></a><a class="code" href="classXMLAttr.html#694b2c0c63c6c7b121721552d9ac34b5">00440</a> <span class="keyword">inline</span> <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> <a class="code" href="classXMLAttr.html#694b2c0c63c6c7b121721552d9ac34b5" title="This method will get the type of the attribute.">XMLAttr::getType</a>()<span class="keyword"> const</span>
<a name="l00441"></a>00441 <span class="keyword"></span>{
<a name="l00442"></a>00442 <span class="keywordflow">return</span> fType;
<a name="l00443"></a>00443 }
<a name="l00444"></a>00444
<a name="l00445"></a><a class="code" href="classXMLAttr.html#5ea30a1754f474cf1bf779043c2b4006">00445</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <a class="code" href="classXMLAttr.html#5ea30a1754f474cf1bf779043c2b4006" title="This method will get the value of the attribute.">XMLAttr::getValue</a>()<span class="keyword"> const</span>
<a name="l00446"></a>00446 <span class="keyword"></span>{
<a name="l00447"></a>00447 <span class="keywordflow">return</span> fValue;
<a name="l00448"></a>00448 }
<a name="l00449"></a>00449
<a name="l00450"></a><a class="code" href="classXMLAttr.html#c84cf41c14530df46e67dbd50bfee73f">00450</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classXMLAttr.html#c84cf41c14530df46e67dbd50bfee73f" title="This method will get the id of the URI that this attribute&#39;s prefix mapped to...">XMLAttr::getURIId</a>()<span class="keyword"> const</span>
<a name="l00451"></a>00451 <span class="keyword"></span>{
<a name="l00452"></a>00452 <span class="keywordflow">return</span> fAttName-><a class="code" href="classQName.html#e8a5c241b363084db7ca67c1982df060">getURI</a>();
<a name="l00453"></a>00453 }
<a name="l00454"></a>00454
<a name="l00455"></a>00455 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00456"></a>00456 <span class="comment">// XMLAttr: Setter methods</span>
<a name="l00457"></a>00457 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00458"></a><a class="code" href="classXMLAttr.html#6a98e671429336dc8977c5f9d006015f">00458</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLAttr.html#6a98e671429336dc8977c5f9d006015f" title="This method is called to set up a default constructed object after the fact, or to...">XMLAttr::set</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uriId
<a name="l00459"></a>00459 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrName
<a name="l00460"></a>00460 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrPrefix
<a name="l00461"></a>00461 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrValue
<a name="l00462"></a>00462 , <span class="keyword">const</span> <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> type
<a name="l00463"></a>00463 , DatatypeValidator * <span class="comment">/*datatypeValidator */</span>
<a name="l00464"></a>00464 , <span class="keyword">const</span> <span class="keywordtype">bool</span> <span class="comment">/*isSchema*/</span> )
<a name="l00465"></a>00465 {
<a name="l00466"></a>00466 <span class="comment">// Set the name info and the value via their respective calls</span>
<a name="l00467"></a>00467 fAttName-><a class="code" href="classQName.html#519ac787985e0bcd3b01a26ce02dbeed">setName</a>(attrPrefix, attrName, uriId);
<a name="l00468"></a>00468 <a class="code" href="classXMLAttr.html#c4623468c53c1776545371558c7c7667" title="This method will update the value field of the attribute.">setValue</a>(attrValue);
<a name="l00469"></a>00469
<a name="l00470"></a>00470 <span class="comment">// And store the type</span>
<a name="l00471"></a>00471 fType = type;
<a name="l00472"></a>00472 }
<a name="l00473"></a>00473
<a name="l00474"></a><a class="code" href="classXMLAttr.html#ba7a02bce97156df3d98a18e3918ea3c">00474</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLAttr.html#6a98e671429336dc8977c5f9d006015f" title="This method is called to set up a default constructed object after the fact, or to...">XMLAttr::set</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uriId
<a name="l00475"></a>00475 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrRawName
<a name="l00476"></a>00476 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> attrValue
<a name="l00477"></a>00477 , <span class="keyword">const</span> <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> type
<a name="l00478"></a>00478 , DatatypeValidator * <span class="comment">/*datatypeValidator */</span>
<a name="l00479"></a>00479 , <span class="keyword">const</span> <span class="keywordtype">bool</span> <span class="comment">/*isSchema*/</span> )
<a name="l00480"></a>00480 {
<a name="l00481"></a>00481 <span class="comment">// Set the name info and the value via their respective calls</span>
<a name="l00482"></a>00482 fAttName-><a class="code" href="classQName.html#519ac787985e0bcd3b01a26ce02dbeed">setName</a>(attrRawName, uriId);
<a name="l00483"></a>00483 <a class="code" href="classXMLAttr.html#c4623468c53c1776545371558c7c7667" title="This method will update the value field of the attribute.">setValue</a>(attrValue);
<a name="l00484"></a>00484
<a name="l00485"></a>00485 <span class="comment">// And store the type</span>
<a name="l00486"></a>00486 fType = type;
<a name="l00487"></a>00487 }
<a name="l00488"></a>00488
<a name="l00489"></a><a class="code" href="classXMLAttr.html#2e2723f34fb7cf393ccdf9f1d73b93d4">00489</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLAttr.html#2e2723f34fb7cf393ccdf9f1d73b93d4" title="This method will update the attribute type of the object.">XMLAttr::setType</a>(<span class="keyword">const</span> <a class="code" href="classXMLAttDef.html#d029f037065bfaeb991ab7855de79255">XMLAttDef::AttTypes</a> newValue)
<a name="l00490"></a>00490 {
<a name="l00491"></a>00491 fType = newValue;
<a name="l00492"></a>00492 }
<a name="l00493"></a>00493
<a name="l00494"></a><a class="code" href="classXMLAttr.html#8a992e66559d9373b32cb57d3b79226a">00494</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classXMLAttr.html#8a992e66559d9373b32cb57d3b79226a" title="This method will update the specified state of the object.">XMLAttr::setSpecified</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> newValue)
<a name="l00495"></a>00495 {
<a name="l00496"></a>00496 fSpecified = newValue;
<a name="l00497"></a>00497 }
<a name="l00498"></a>00498
<a name="l00499"></a>00499 <a class="code" href="XercesDefs_8hpp.html#f03d5cb905763ef7a7bd22ab82718285">XERCES_CPP_NAMESPACE_END</a>
<a name="l00500"></a>00500
<a name="l00501"></a>00501 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Apr 21 17:55:48 2010 for Xerces-C++ by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
|