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

Revision 358, 41.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>XMLAttr.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>XMLAttr.hpp</h1><a href="XMLAttr_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: XMLAttr.hpp,v $</font>
6200019 <font class="comment"> * Revision 1.11  2004/09/20 14:47:13  amassari</font>
6300020 <font class="comment"> * Mark some methods as deprecated</font>
6400021 <font class="comment"> *</font>
6500022 <font class="comment"> * Revision 1.10  2004/09/08 13:55:58  peiyongz</font>
6600023 <font class="comment"> * Apache License Version 2.0</font>
6700024 <font class="comment"> *</font>
6800025 <font class="comment"> * Revision 1.9  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.8  2003/11/24 05:19:37  neilg</font>
7200029 <font class="comment"> * update XMLAttr class to carry information needed by DOMTypeInfo</font>
7300030 <font class="comment"> *</font>
7400031 <font class="comment"> * Revision 1.7  2003/05/22 02:10:51  knoaman</font>
7500032 <font class="comment"> * Default the memory manager.</font>
7600033 <font class="comment"> *</font>
7700034 <font class="comment"> * Revision 1.6  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.5  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.4  2002/11/28 20:12:45  knoaman</font>
8400041 <font class="comment"> * Allow creating/setting of XMLAttr using a rawname (i.e. 'prefix:localpart').</font>
8500042 <font class="comment"> *</font>
8600043 <font class="comment"> * Revision 1.3  2002/11/04 15:00:21  tng</font>
8700044 <font class="comment"> * C++ Namespace Support.</font>
8800045 <font class="comment"> *</font>
8900046 <font class="comment"> * Revision 1.2  2002/02/20 18:17:01  tng</font>
9000047 <font class="comment"> * [Bug 5977] Warnings on generating apiDocs.</font>
9100048 <font class="comment"> *</font>
9200049 <font class="comment"> * Revision 1.1.1.1  2002/02/01 22:21:50  peiyongz</font>
9300050 <font class="comment"> * sane_include</font>
9400051 <font class="comment"> *</font>
9500052 <font class="comment"> * Revision 1.9  2001/11/02 14:21:18  knoaman</font>
9600053 <font class="comment"> * Add support for identity constraints.</font>
9700054 <font class="comment"> *</font>
9800055 <font class="comment"> * Revision 1.8  2001/05/11 13:25:31  tng</font>
9900056 <font class="comment"> * Copyright update.</font>
10000057 <font class="comment"> *</font>
10100058 <font class="comment"> * Revision 1.7  2001/02/27 18:33:55  tng</font>
10200059 <font class="comment"> * Schema: Use QName in XMLAttr.</font>
10300060 <font class="comment"> *</font>
10400061 <font class="comment"> * Revision 1.6  2000/04/10 22:42:53  roddey</font>
10500062 <font class="comment"> * Extended the buffer reuse to the QName field, to further increase</font>
10600063 <font class="comment"> * performance of attribute heavy applications.</font>
10700064 <font class="comment"> *</font>
10800065 <font class="comment"> * Revision 1.5  2000/03/02 19:54:24  roddey</font>
10900066 <font class="comment"> * This checkin includes many changes done while waiting for the</font>
11000067 <font class="comment"> * 1.1.0 code to be finished. I can't list them all here, but a list is</font>
11100068 <font class="comment"> * available elsewhere.</font>
11200069 <font class="comment"> *</font>
11300070 <font class="comment"> * Revision 1.4  2000/02/24 20:00:22  abagchi</font>
11400071 <font class="comment"> * Swat for removing Log from API docs</font>
11500072 <font class="comment"> *</font>
11600073 <font class="comment"> * Revision 1.3  2000/02/15 01:21:30  roddey</font>
11700074 <font class="comment"> * Some initial documentation improvements. More to come...</font>
11800075 <font class="comment"> *</font>
11900076 <font class="comment"> * Revision 1.2  2000/02/06 07:47:47  rahulj</font>
12000077 <font class="comment"> * Year 2K copyright swat.</font>
12100078 <font class="comment"> *</font>
12200079 <font class="comment"> * Revision 1.1.1.1  1999/11/09 01:08:28  twl</font>
12300080 <font class="comment"> * Initial checkin</font>
12400081 <font class="comment"> *</font>
12500082 <font class="comment"> * Revision 1.2  1999/11/08 20:44:35  rahul</font>
12600083 <font class="comment"> * Swat for adding in Product name and CVS comment log variable.</font>
12700084 <font class="comment"> *</font>
12800085 <font class="comment"> */</font>
12900086
13000087 <font class="preprocessor">#if !defined(XMLATTR_HPP)</font>
131<a name="l00088"></a><a class="code" href="XMLAttr_8hpp.html#a0">00088</a> <font class="preprocessor"></font><font class="preprocessor">#define XMLATTR_HPP</font>
13200089 <font class="preprocessor"></font>
13300090 <font class="preprocessor">#include &lt;<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>&gt;</font>
13400091 <font class="preprocessor">#include &lt;<a class="code" href="QName_8hpp.html">xercesc/util/QName.hpp</a>&gt;</font>
13500092 <font class="preprocessor">#include &lt;<a class="code" href="XMLAttDef_8hpp.html">xercesc/framework/XMLAttDef.hpp</a>&gt;</font>
13600093 <font class="preprocessor">#include &lt;xercesc/validators/datatype/DatatypeValidator.hpp&gt;</font>
13700094
13800095 <a class="code" href="XercesDefs_8hpp.html#a2">XERCES_CPP_NAMESPACE_BEGIN</a>
13900096
140<a name="l00118"></a><a class="code" href="classXMLAttr.html">00118</a> <font class="keyword">class </font><a class="code" href="XercesDefs_8hpp.html#a9"></a> <a class="code" href="classXMLAttr.html">XMLAttr</a> : <font class="keyword">public</font> <a class="code" href="classXMemory.html">XMemory</a>
14100119 {
14200120 <font class="keyword">public</font>:
14300121     <font class="comment">// -----------------------------------------------------------------------</font>
14400122     <font class="comment">//  Constructors and Destructor</font>
14500123     <font class="comment">// -----------------------------------------------------------------------</font>
14600126 <font class="comment"></font>
14700134     <a class="code" href="XMLAttDef_8hpp.html#a1">XMLAttr</a>(<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>);
14800135
14900168     <a class="code" href="classXMLAttr.html">XMLAttr</a>
15000169     (
15100170           <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>        uriId
15200171         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrName
15300172         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrPrefix
15400173         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrValue
15500174         , <font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> type = <a class="code" href="classXMLAttDef.html#s33s0">XMLAttDef::CData</a>
15600175         , <font class="keyword">const</font> <font class="keywordtype">bool</font>                specified = <font class="keyword">true</font>
15700176         , <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>
15800177         , DatatypeValidator * datatypeValidator = 0
15900178         , <font class="keyword">const</font> <font class="keywordtype">bool</font> isSchema = <font class="keyword">false</font>
16000179     );
16100180
16200209     <a class="code" href="classXMLAttr.html">XMLAttr</a>
16300210     (
16400211         <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> uriId
16500212         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> rawName
16600213         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> attrValue
16700214         , <font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> type = <a class="code" href="classXMLAttDef.html#s33s0">XMLAttDef::CData</a>
16800215         , <font class="keyword">const</font> <font class="keywordtype">bool</font> specified = <font class="keyword">true</font>
16900216         , <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>
17000217         , DatatypeValidator * datatypeValidator = 0
17100218         , <font class="keyword">const</font> <font class="keywordtype">bool</font> isSchema = <font class="keyword">false</font>
17200219     );
17300220
17400222
17500225     ~<a class="code" href="classXMLAttr.html">XMLAttr</a>();
17600227
17700228
17800229     <font class="comment">// -----------------------------------------------------------------------</font>
17900230     <font class="comment">//  Getter methods</font>
18000231     <font class="comment">// -----------------------------------------------------------------------</font>
18100232
18200235
18300239     <a class="code" href="classQName.html">QName</a>* getAttName() <font class="keyword">const</font>;
18400240
18500245     <font class="keyword">const</font> XMLCh* getName() <font class="keyword">const</font>;
18600246
18700251     <font class="keyword">const</font> XMLCh* getPrefix() <font class="keyword">const</font>;
18800252
18900258     <font class="keyword">const</font> XMLCh* getQName() <font class="keyword">const</font>;
19000259
19100264     <font class="keywordtype">bool</font> getSpecified() <font class="keyword">const</font>;
19200265
19300270     <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> getType() <font class="keyword">const</font>;
19400271
19500277     <font class="keyword">const</font> XMLCh* getValue() <font class="keyword">const</font>;
19600278
19700283     <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> getURIId() <font class="keyword">const</font>;
19800284
19900289     <font class="keyword">const</font> XMLCh* getValidatingTypeURI() <font class="keyword">const</font>;
20000290
20100295     <font class="keyword">const</font> XMLCh* getValidatingTypeName() <font class="keyword">const</font>;
20200296
20300298
20400299
20500300     <font class="comment">// -----------------------------------------------------------------------</font>
20600301     <font class="comment">//  Setter methods</font>
20700302     <font class="comment">// -----------------------------------------------------------------------</font>
20800303
20900306
21000335     <font class="keywordtype">void</font> set
21100336     (
21200337         <font class="keyword">const</font>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>        uriId
21300338         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrName
21400339         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrPrefix
21500340         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrValue
21600341         , <font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> type = <a class="code" href="classXMLAttDef.html#s33s0">XMLAttDef::CData</a>
21700342         , DatatypeValidator * datatypeValidator = 0
21800343         , <font class="keyword">const</font> <font class="keywordtype">bool</font> isSchema = <font class="keyword">false</font>
21900344     );
22000345
22100369     <font class="keywordtype">void</font> set
22200370     (
22300371         <font class="keyword">const</font>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>        uriId
22400372         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrRawName
22500373         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrValue
22600374         , <font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> type = <a class="code" href="classXMLAttDef.html#s33s0">XMLAttDef::CData</a>
22700375         , DatatypeValidator * datatypeValidator = 0
22800376         , <font class="keyword">const</font> <font class="keywordtype">bool</font> isSchema = <font class="keyword">false</font>
22900377     );
23000378
23100393     <font class="keywordtype">void</font> setName
23200394     (
23300395         <font class="keyword">const</font>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>        uriId
23400396         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrName
23500397         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrPrefix
23600398     );
23700399
23800407     <font class="keywordtype">void</font> setSpecified(<font class="keyword">const</font> <font class="keywordtype">bool</font> newValue);
23900408
24000417     <font class="keywordtype">void</font> setType(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> newType);
24100418
24200426     <font class="keywordtype">void</font> setValue(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newValue);
24300427
24400435     <font class="keywordtype">void</font> setURIId(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> uriId);
24500436
24600444     <font class="keywordtype">void</font> setDatatypeValidator(DatatypeValidator * datatypeValidator);
24700445
24800453     <font class="keywordtype">void</font> setSchemaValidated(<font class="keyword">const</font> <font class="keywordtype">bool</font> isSchema);
24900454
25000456
25100457
25200458
25300459 <font class="keyword">private</font> :
25400460     <font class="comment">// -----------------------------------------------------------------------</font>
25500461     <font class="comment">//  Unimplemented constructors and operators</font>
25600462     <font class="comment">// -----------------------------------------------------------------------</font>
25700463     <a class="code" href="XMLAttDef_8hpp.html#a1">XMLAttr</a>(<font class="keyword">const</font> <a class="code" href="classXMLAttr.html">XMLAttr</a>&amp;);
25800464     <a class="code" href="classXMLAttr.html">XMLAttr</a>&amp; operator=(<font class="keyword">const</font> <a class="code" href="classXMLAttr.html">XMLAttr</a>&amp;);
25900465
26000466
26100467     <font class="comment">// -----------------------------------------------------------------------</font>
26200468     <font class="comment">//  Private, helper methods</font>
26300469     <font class="comment">// -----------------------------------------------------------------------</font>
26400470     <font class="keywordtype">void</font> cleanUp();
26500471
26600472
26700473     <font class="comment">// -----------------------------------------------------------------------</font>
26800474     <font class="comment">//  Private instance variables</font>
26900475     <font class="comment">//</font>
27000476     <font class="comment">//  fAttName</font>
27100477     <font class="comment">//      The Attribute Name;</font>
27200478     <font class="comment">//</font>
27300479     <font class="comment">//  fSpecified</font>
27400480     <font class="comment">//      True if this attribute appeared in the element; else, false if</font>
27500481     <font class="comment">//      it was defaulted from an AttDef.</font>
27600482     <font class="comment">//</font>
27700483     <font class="comment">//  fType</font>
27800484     <font class="comment">//      The attribute type enum value for this attribute. Indicates what</font>
27900485     <font class="comment">//      type of attribute it was.</font>
28000486     <font class="comment">//</font>
28100487     <font class="comment">//  fValue</font>
28200488     <font class="comment">//  fValueBufSz</font>
28300489     <font class="comment">//      The attribute value that was given in the attribute instance, and</font>
28400490     <font class="comment">//      its current buffer size (minus one, where the null is.)</font>
28500491     <font class="comment">//</font>
28600492     <font class="comment">//  fMemoryManager</font>
28700493     <font class="comment">//      The memory manager used for dynamic memory allocation/deallocation</font>
28800494     <font class="comment">//  fDatatypeValidator</font>
28900495     <font class="comment">//      The validator used to validate the value of this attribute.</font>
29000496     <font class="comment">//      The attribute does not own this object, and it is only</font>
29100497     <font class="comment">//      used in the calculation of DOMTypeInfo information.</font>
29200498     <font class="comment">//  fIsSchemaValidated</font>
29300499     <font class="comment">//      whether this attribute was validated by an XML Schema</font>
29400500     <font class="comment">//</font>
29500501     <font class="comment">// -----------------------------------------------------------------------</font>
29600502     <font class="keywordtype">bool</font>                fSpecified;
29700503     <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> fType;
29800504     <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>        fValueBufSz;
29900505     XMLCh*              fValue;
30000506     <a class="code" href="classQName.html">QName</a>*              fAttName;
30100507     <a class="code" href="classMemoryManager.html">MemoryManager</a>*      fMemoryManager;
30200508     DatatypeValidator * fDatatypeValidator;
30300509     <font class="keywordtype">bool</font>                fIsSchemaValidated;
30400510 };
30500511
30600512 <font class="comment">// ---------------------------------------------------------------------------</font>
30700513 <font class="comment">//  XMLAttr: Constructors and Destructor</font>
30800514 <font class="comment">// ---------------------------------------------------------------------------</font>
309<a name="l00515"></a><a class="code" href="classXMLAttr.html#z251_0">00515</a> <font class="keyword">inline</font> <a class="code" href="classXMLAttr.html#z251_0">XMLAttr::~XMLAttr</a>()
31000516 {
31100517     cleanUp();
31200518 }
31300519
31400520
31500521 <font class="comment">// ---------------------------------------------------------------------------</font>
31600522 <font class="comment">//  XMLAttr: Getter methods</font>
31700523 <font class="comment">// ---------------------------------------------------------------------------</font>
318<a name="l00524"></a><a class="code" href="classXMLAttr.html#z252_0">00524</a> <font class="keyword">inline</font> <a class="code" href="classQName.html">QName</a>* <a class="code" href="classXMLAttr.html#z252_0">XMLAttr::getAttName</a>()<font class="keyword"> const</font>
31900525 <font class="keyword"></font>{
32000526     <font class="keywordflow">return</font> fAttName;
32100527 }
32200528
323<a name="l00529"></a><a class="code" href="classXMLAttr.html#z252_1">00529</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLAttr.html#z252_1">XMLAttr::getName</a>()<font class="keyword"> const</font>
32400530 <font class="keyword"></font>{
32500531     <font class="keywordflow">return</font> fAttName-&gt;<a class="code" href="classQName.html#a7">getLocalPart</a>();
32600532 }
32700533
328<a name="l00534"></a><a class="code" href="classXMLAttr.html#z252_2">00534</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLAttr.html#z252_2">XMLAttr::getPrefix</a>()<font class="keyword"> const</font>
32900535 <font class="keyword"></font>{
33000536     <font class="keywordflow">return</font> fAttName-&gt;<a class="code" href="classQName.html#a5">getPrefix</a>();
33100537 }
33200538
333<a name="l00539"></a><a class="code" href="classXMLAttr.html#z252_4">00539</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLAttr.html#z252_4">XMLAttr::getSpecified</a>()<font class="keyword"> const</font>
33400540 <font class="keyword"></font>{
33500541     <font class="keywordflow">return</font> fSpecified;
33600542 }
33700543
338<a name="l00544"></a><a class="code" href="classXMLAttr.html#z252_5">00544</a> <font class="keyword">inline</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> <a class="code" href="classXMLAttr.html#z252_5">XMLAttr::getType</a>()<font class="keyword"> const</font>
33900545 <font class="keyword"></font>{
34000546     <font class="keywordflow">return</font> fType;
34100547 }
34200548
343<a name="l00549"></a><a class="code" href="classXMLAttr.html#z252_6">00549</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLAttr.html#z252_6">XMLAttr::getValue</a>()<font class="keyword"> const</font>
34400550 <font class="keyword"></font>{
34500551     <font class="keywordflow">return</font> fValue;
34600552 }
34700553
348<a name="l00554"></a><a class="code" href="classXMLAttr.html#z252_7">00554</a> <font class="keyword">inline</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="classXMLAttr.html#z252_7">XMLAttr::getURIId</a>()<font class="keyword"> const</font>
34900555 <font class="keyword"></font>{
35000556     <font class="keywordflow">return</font> fAttName-&gt;<a class="code" href="classQName.html#a9">getURI</a>();
35100557 }
35200558
353<a name="l00559"></a><a class="code" href="classXMLAttr.html#z252_9">00559</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLAttr.html#z252_9">XMLAttr::getValidatingTypeName</a>()<font class="keyword"> const</font>
35400560 <font class="keyword"></font>{
35500561     <font class="keywordflow">if</font>(fIsSchemaValidated)
35600562     {
35700563         <font class="keywordflow">if</font>(!fDatatypeValidator || fDatatypeValidator-&gt;getAnonymous())
35800564             <font class="keywordflow">return</font> 0;
35900565         <font class="keywordflow">return</font> fDatatypeValidator-&gt;getTypeLocalName();
36000566     }
36100567     <font class="keywordflow">else</font>
36200568     {
36300569         <font class="keywordflow">return</font> <a class="code" href="classXMLAttDef.html#z243_0">XMLAttDef::getAttTypeString</a>(fType, fMemoryManager);
36400570     }
36500571 }
36600572
367<a name="l00573"></a><a class="code" href="classXMLAttr.html#z252_8">00573</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLAttr.html#z252_8">XMLAttr::getValidatingTypeURI</a>()<font class="keyword"> const</font>
36800574 <font class="keyword"></font>{
36900575     <font class="keywordflow">if</font>(fIsSchemaValidated)
37000576     {
37100577         <font class="keywordflow">if</font>(!fDatatypeValidator || fDatatypeValidator-&gt;getAnonymous())
37200578             <font class="keywordflow">return</font> 0;
37300579         <font class="keywordflow">return</font> fDatatypeValidator-&gt;getTypeUri();
37400580     }
37500581     <font class="keywordflow">else</font>
37600582     {
37700583         <font class="keywordflow">return</font> 0;
37800584     }
37900585 }
38000586
38100587 <font class="comment">// ---------------------------------------------------------------------------</font>
38200588 <font class="comment">//  XMLAttr: Setter methods</font>
38300589 <font class="comment">// ---------------------------------------------------------------------------</font>
384<a name="l00590"></a><a class="code" href="classXMLAttr.html#z253_0">00590</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttr.html#z253_0">XMLAttr::set</a>(<font class="keyword">const</font>  <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>        uriId
38500591                         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrName
38600592                         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrPrefix
38700593                         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrValue
38800594                         , <font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> type
38900595                         , DatatypeValidator * datatypeValidator
39000596                         , <font class="keyword">const</font> <font class="keywordtype">bool</font> isSchema )
39100597 {
39200598     <font class="comment">// Set the name info and the value via their respective calls</font>
39300599     fAttName-&gt;<a class="code" href="classQName.html#a13">setName</a>(attrPrefix, attrName, uriId);
39400600     <a class="code" href="classXMLAttr.html#z253_5">setValue</a>(attrValue);
39500601
39600602     <font class="comment">// And store the type</font>
39700603     fType = type;
39800604
39900605     <font class="comment">// and set up info for DOM type info </font>
40000606     fIsSchemaValidated = isSchema;
40100607     fDatatypeValidator = datatypeValidator;
40200608 }
40300609
404<a name="l00610"></a><a class="code" href="classXMLAttr.html#z253_1">00610</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttr.html#z253_0">XMLAttr::set</a>(<font class="keyword">const</font>  <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>        uriId
40500611                         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrRawName
40600612                         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>        attrValue
40700613                         , <font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> type
40800614                         , DatatypeValidator * datatypeValidator
40900615                         , <font class="keyword">const</font> <font class="keywordtype">bool</font> isSchema )
41000616 {
41100617     <font class="comment">// Set the name info and the value via their respective calls</font>
41200618     fAttName-&gt;<a class="code" href="classQName.html#a13">setName</a>(attrRawName, uriId);
41300619     <a class="code" href="classXMLAttr.html#z253_5">setValue</a>(attrValue);
41400620
41500621     <font class="comment">// And store the type</font>
41600622     fType = type;
41700623
41800624     <font class="comment">// and set up info for DOM type info </font>
41900625     fIsSchemaValidated = isSchema;
42000626     fDatatypeValidator = datatypeValidator;
42100627 }
42200628
423<a name="l00629"></a><a class="code" href="classXMLAttr.html#z253_4">00629</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttr.html#z253_4">XMLAttr::setType</a>(<font class="keyword">const</font> <a class="code" href="classXMLAttDef.html#s33">XMLAttDef::AttTypes</a> newValue)
42400630 {
42500631     fType = newValue;
42600632 }
42700633
428<a name="l00634"></a><a class="code" href="classXMLAttr.html#z253_3">00634</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttr.html#z253_3">XMLAttr::setSpecified</a>(<font class="keyword">const</font> <font class="keywordtype">bool</font> newValue)
42900635 {
43000636     fSpecified = newValue;
43100637 }
43200638
433<a name="l00639"></a><a class="code" href="classXMLAttr.html#z253_7">00639</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttr.html#z253_7">XMLAttr::setDatatypeValidator</a>(DatatypeValidator *datatypeValidator)
43400640 {
43500641     fDatatypeValidator = datatypeValidator;
43600642 }
43700643
438<a name="l00644"></a><a class="code" href="classXMLAttr.html#z253_8">00644</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLAttr.html#z253_8">XMLAttr::setSchemaValidated</a>(<font class="keyword">const</font> <font class="keywordtype">bool</font> isSchema)
43900645 {
44000646     fIsSchemaValidated = isSchema;
44100647 }
44200648
44300649 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_END</a>
44400650
44500651 <font class="preprocessor">#endif</font>
446</pre></div>    </FONT></TD></TR></TABLE><BR>
447</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>
448              Copyright &copy; 1994-2004 The Apache Software Foundation.
449              All Rights Reserved.
450            </I></FONT></TD></TR></TABLE></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.