1 | <HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>XMLElementDecl.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>XMLElementDecl.hpp</h1><a href="XMLElementDecl_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-2001,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: XMLElementDecl.hpp,v $</font>
|
---|
62 | 00019 <font class="comment"> * Revision 1.12 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.11 2003/12/12 18:34:43 peiyongz</font>
|
---|
66 | 00023 <font class="comment"> * loadElement/storeElement</font>
|
---|
67 | 00024 <font class="comment"> *</font>
|
---|
68 | 00025 <font class="comment"> * Revision 1.10 2003/11/27 06:08:18 neilg</font>
|
---|
69 | 00026 <font class="comment"> * mark DOMTypeInfo-related methods on XMLElementDecl deprecated since they are not thread-safe</font>
|
---|
70 | 00027 <font class="comment"> *</font>
|
---|
71 | 00028 <font class="comment"> * Revision 1.9 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.8 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.7 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.6 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.5 2003/03/07 18:08:10 tng</font>
|
---|
84 | 00041 <font class="comment"> * Return a reference instead of void for operator=</font>
|
---|
85 | 00042 <font class="comment"> *</font>
|
---|
86 | 00043 <font class="comment"> * Revision 1.4 2003/01/29 19:45:35 gareth</font>
|
---|
87 | 00044 <font class="comment"> * added api for DOMTypeInfo</font>
|
---|
88 | 00045 <font class="comment"> *</font>
|
---|
89 | 00046 <font class="comment"> * Revision 1.3 2002/11/04 15:00:21 tng</font>
|
---|
90 | 00047 <font class="comment"> * C++ Namespace Support.</font>
|
---|
91 | 00048 <font class="comment"> *</font>
|
---|
92 | 00049 <font class="comment"> * Revision 1.2 2002/08/20 16:55:33 tng</font>
|
---|
93 | 00050 <font class="comment"> * [Bug 6251] Info during compilation.</font>
|
---|
94 | 00051 <font class="comment"> *</font>
|
---|
95 | 00052 <font class="comment"> * Revision 1.1.1.1 2002/02/01 22:21:51 peiyongz</font>
|
---|
96 | 00053 <font class="comment"> * sane_include</font>
|
---|
97 | 00054 <font class="comment"> *</font>
|
---|
98 | 00055 <font class="comment"> * Revision 1.18 2001/08/21 16:06:10 tng</font>
|
---|
99 | 00056 <font class="comment"> * Schema: Unique Particle Attribution Constraint Checking.</font>
|
---|
100 | 00057 <font class="comment"> *</font>
|
---|
101 | 00058 <font class="comment"> * Revision 1.17 2001/07/24 18:30:47 knoaman</font>
|
---|
102 | 00059 <font class="comment"> * Added support for <group> + extra constraint checking for complexType</font>
|
---|
103 | 00060 <font class="comment"> *</font>
|
---|
104 | 00061 <font class="comment"> * Revision 1.16 2001/06/21 14:25:28 knoaman</font>
|
---|
105 | 00062 <font class="comment"> * Fix for bug 1946</font>
|
---|
106 | 00063 <font class="comment"> *</font>
|
---|
107 | 00064 <font class="comment"> * Revision 1.15 2001/05/11 13:25:32 tng</font>
|
---|
108 | 00065 <font class="comment"> * Copyright update.</font>
|
---|
109 | 00066 <font class="comment"> *</font>
|
---|
110 | 00067 <font class="comment"> * Revision 1.14 2001/05/03 20:34:22 tng</font>
|
---|
111 | 00068 <font class="comment"> * Schema: SchemaValidator update</font>
|
---|
112 | 00069 <font class="comment"> *</font>
|
---|
113 | 00070 <font class="comment"> * Revision 1.13 2001/04/19 18:16:52 tng</font>
|
---|
114 | 00071 <font class="comment"> * Schema: SchemaValidator update, and use QName in Content Model</font>
|
---|
115 | 00072 <font class="comment"> *</font>
|
---|
116 | 00073 <font class="comment"> * Revision 1.12 2001/03/21 21:56:02 tng</font>
|
---|
117 | 00074 <font class="comment"> * Schema: Add Schema Grammar, Schema Validator, and split the DTDValidator into DTDValidator, DTDScanner, and DTDGrammar.</font>
|
---|
118 | 00075 <font class="comment"> *</font>
|
---|
119 | 00076 <font class="comment"> * Revision 1.11 2001/03/21 19:29:29 tng</font>
|
---|
120 | 00077 <font class="comment"> * Schema: Content Model Updates, by Pei Yong Zhang.</font>
|
---|
121 | 00078 <font class="comment"> *</font>
|
---|
122 | 00079 <font class="comment"> * Revision 1.10 2001/02/26 19:29:13 tng</font>
|
---|
123 | 00080 <font class="comment"> * Schema: add virtual method getURI(), getContentSpec and setContenSpec in XMLElementDecl, and DTDElementDecl.</font>
|
---|
124 | 00081 <font class="comment"> *</font>
|
---|
125 | 00082 <font class="comment"> * Revision 1.9 2001/02/26 19:21:30 tng</font>
|
---|
126 | 00083 <font class="comment"> * Schema: add parameter prefix in findElem and findAttr.</font>
|
---|
127 | 00084 <font class="comment"> *</font>
|
---|
128 | 00085 <font class="comment"> * Revision 1.8 2000/12/14 18:49:57 tng</font>
|
---|
129 | 00086 <font class="comment"> * Fix API document generation warning: "Warning: end of member group without matching begin"</font>
|
---|
130 | 00087 <font class="comment"> *</font>
|
---|
131 | 00088 <font class="comment"> * Revision 1.7 2000/11/30 18:22:38 andyh</font>
|
---|
132 | 00089 <font class="comment"> * reuseValidator - fix bugs (spurious errors) that occured on reuse due to</font>
|
---|
133 | 00090 <font class="comment"> * pools already containing some items. Fixed by Tinny Ng.</font>
|
---|
134 | 00091 <font class="comment"> *</font>
|
---|
135 | 00092 <font class="comment"> * Revision 1.6 2000/05/11 23:11:32 andyh</font>
|
---|
136 | 00093 <font class="comment"> * Add missing validity checks for stand-alone documents, character range</font>
|
---|
137 | 00094 <font class="comment"> * and Well-formed parsed entities. Changes contributed by Sean MacRoibeaird</font>
|
---|
138 | 00095 <font class="comment"> * <sean.Macroibeaird@ireland.sun.com></font>
|
---|
139 | 00096 <font class="comment"> *</font>
|
---|
140 | 00097 <font class="comment"> * Revision 1.5 2000/02/24 20:00:23 abagchi</font>
|
---|
141 | 00098 <font class="comment"> * Swat for removing Log from API docs</font>
|
---|
142 | 00099 <font class="comment"> *</font>
|
---|
143 | 00100 <font class="comment"> * Revision 1.4 2000/02/16 19:48:56 roddey</font>
|
---|
144 | 00101 <font class="comment"> * More documentation updates</font>
|
---|
145 | 00102 <font class="comment"> *</font>
|
---|
146 | 00103 <font class="comment"> * Revision 1.3 2000/02/15 01:21:30 roddey</font>
|
---|
147 | 00104 <font class="comment"> * Some initial documentation improvements. More to come...</font>
|
---|
148 | 00105 <font class="comment"> *</font>
|
---|
149 | 00106 <font class="comment"> * Revision 1.2 2000/02/06 07:47:48 rahulj</font>
|
---|
150 | 00107 <font class="comment"> * Year 2K copyright swat.</font>
|
---|
151 | 00108 <font class="comment"> *</font>
|
---|
152 | 00109 <font class="comment"> * Revision 1.1.1.1 1999/11/09 01:08:32 twl</font>
|
---|
153 | 00110 <font class="comment"> * Initial checkin</font>
|
---|
154 | 00111 <font class="comment"> *</font>
|
---|
155 | 00112 <font class="comment"> * Revision 1.2 1999/11/08 20:44:38 rahul</font>
|
---|
156 | 00113 <font class="comment"> * Swat for adding in Product name and CVS comment log variable.</font>
|
---|
157 | 00114 <font class="comment"> *</font>
|
---|
158 | 00115 <font class="comment"> */</font>
|
---|
159 | 00116
|
---|
160 | 00117 <font class="preprocessor">#if !defined(XMLELEMENTDECL_HPP)</font>
|
---|
161 | <a name="l00118"></a><a class="code" href="XMLElementDecl_8hpp.html#a0">00118</a> <font class="preprocessor"></font><font class="preprocessor">#define XMLELEMENTDECL_HPP</font>
|
---|
162 | 00119 <font class="preprocessor"></font>
|
---|
163 | 00120 <font class="preprocessor">#include <<a class="code" href="XMLAttr_8hpp.html">xercesc/framework/XMLAttr.hpp</a>></font>
|
---|
164 | 00121 <font class="preprocessor">#include <<a class="code" href="XMLAttDefList_8hpp.html">xercesc/framework/XMLAttDefList.hpp</a>></font>
|
---|
165 | 00122 <font class="preprocessor">#include <<a class="code" href="XMLString_8hpp.html">xercesc/util/XMLString.hpp</a>></font>
|
---|
166 | 00123 <font class="preprocessor">#include <<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>></font>
|
---|
167 | 00124 <font class="preprocessor">#include <xercesc/internal/XSerializable.hpp></font>
|
---|
168 | 00125
|
---|
169 | 00126 <a class="code" href="XercesDefs_8hpp.html#a2">XERCES_CPP_NAMESPACE_BEGIN</a>
|
---|
170 | 00127
|
---|
171 | <a name="l00128"></a><a class="code" href="XMLElementDecl_8hpp.html#a1">00128</a> <font class="keyword">class </font><a class="code" href="XMLElementDecl_8hpp.html#a1">ContentSpecNode</a>;
|
---|
172 | 00129 <font class="keyword">class </font><a class="code" href="classXMLContentModel.html">XMLContentModel</a>;
|
---|
173 | 00130
|
---|
174 | <a name="l00146"></a><a class="code" href="classXMLElementDecl.html">00146</a> <font class="keyword">class </font><a class="code" href="XercesDefs_8hpp.html#a9"></a> <a class="code" href="classXMLElementDecl.html">XMLElementDecl</a> : <font class="keyword">public</font> XSerializable, <font class="keyword">public</font> <a class="code" href="classXMemory.html">XMemory</a>
|
---|
175 | 00147 {
|
---|
176 | 00148 <font class="keyword">public</font>:
|
---|
177 | 00149 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
178 | 00150 <font class="comment">// Class specific types</font>
|
---|
179 | 00151 <font class="comment">//</font>
|
---|
180 | 00152 <font class="comment">// CreateReasons</font>
|
---|
181 | 00153 <font class="comment">// This type is used to store how an element declaration got into</font>
|
---|
182 | 00154 <font class="comment">// the grammar's element pool. They are faulted in for various</font>
|
---|
183 | 00155 <font class="comment">// reasons.</font>
|
---|
184 | 00156 <font class="comment">//</font>
|
---|
185 | 00157 <font class="comment">// LookupOpts</font>
|
---|
186 | 00158 <font class="comment">// These are the values used by the attribute lookup methods.</font>
|
---|
187 | 00159 <font class="comment">//</font>
|
---|
188 | 00160 <font class="comment">// CharDataOpts</font>
|
---|
189 | 00161 <font class="comment">// This is used to indicate how this type of element reacts to</font>
|
---|
190 | 00162 <font class="comment">// character data as content.</font>
|
---|
191 | 00163 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
192 | <a name="l00164"></a><a class="code" href="classXMLElementDecl.html#s14">00164</a> <font class="keyword">enum</font> CreateReasons
|
---|
193 | 00165 {
|
---|
194 | 00166 NoReason
|
---|
195 | 00167 , Declared
|
---|
196 | 00168 , AttList
|
---|
197 | 00169 , InContentModel
|
---|
198 | 00170 , AsRootElem
|
---|
199 | 00171 , JustFaultIn
|
---|
200 | 00172 };
|
---|
201 | 00173
|
---|
202 | <a name="l00178"></a><a class="code" href="classXMLElementDecl.html#s15">00178</a> <font class="keyword">enum</font> LookupOpts
|
---|
203 | 00179 {
|
---|
204 | 00180 AddIfNotFound
|
---|
205 | 00181 , FailIfNotFound
|
---|
206 | 00182 };
|
---|
207 | 00183
|
---|
208 | <a name="l00184"></a><a class="code" href="classXMLElementDecl.html#s16">00184</a> <font class="keyword">enum</font> CharDataOpts
|
---|
209 | 00185 {
|
---|
210 | 00186 NoCharData
|
---|
211 | 00187 , SpacesOk
|
---|
212 | 00188 , AllCharData
|
---|
213 | 00189 };
|
---|
214 | 00190
|
---|
215 | 00191
|
---|
216 | 00192 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
217 | 00193 <font class="comment">// Public static data</font>
|
---|
218 | 00194 <font class="comment">//</font>
|
---|
219 | 00195 <font class="comment">// fgInvalidElemId</font>
|
---|
220 | 00196 <font class="comment">// A value to represent an invalid element node id.</font>
|
---|
221 | 00197 <font class="comment">//</font>
|
---|
222 | 00198 <font class="comment">// fgPCDataElemId</font>
|
---|
223 | 00199 <font class="comment">// This is the value to use to represent a PCDATA node when an</font>
|
---|
224 | 00200 <font class="comment">// element id is required.</font>
|
---|
225 | 00201 <font class="comment">//</font>
|
---|
226 | 00202 <font class="comment">// fgPCDataElemName</font>
|
---|
227 | 00203 <font class="comment">// This is the value to use to represent a PCDATA node when an</font>
|
---|
228 | 00204 <font class="comment">// element name is required.</font>
|
---|
229 | 00205 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
230 | <a name="l00206"></a><a class="code" href="classXMLElementDecl.html#p0">00206</a> <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> fgInvalidElemId;
|
---|
231 | <a name="l00207"></a><a class="code" href="classXMLElementDecl.html#p1">00207</a> <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> fgPCDataElemId;
|
---|
232 | <a name="l00208"></a><a class="code" href="classXMLElementDecl.html#p2">00208</a> <font class="keyword">static</font> <font class="keyword">const</font> XMLCh fgPCDataElemName[];
|
---|
233 | 00209
|
---|
234 | 00210
|
---|
235 | 00211
|
---|
236 | 00212 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
237 | 00213 <font class="comment">// Destructor</font>
|
---|
238 | 00214 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
239 | 00217 <font class="comment"></font> <font class="keyword">virtual</font> ~<a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>();
|
---|
240 | 00219
|
---|
241 | 00220
|
---|
242 | 00221 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
243 | 00222 <font class="comment">// The virtual element decl interface</font>
|
---|
244 | 00223 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
245 | 00224
|
---|
246 | 00227
|
---|
247 | 00258 <font class="keyword">virtual</font> <a class="code" href="classXMLAttDef.html">XMLAttDef</a>* findAttr
|
---|
248 | 00259 (
|
---|
249 | 00260 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> qName
|
---|
250 | 00261 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> uriId
|
---|
251 | 00262 , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> baseName
|
---|
252 | 00263 , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> prefix
|
---|
253 | 00264 , <font class="keyword">const</font> LookupOpts options
|
---|
254 | 00265 , <font class="keywordtype">bool</font>& wasAdded
|
---|
255 | 00266 ) <font class="keyword">const</font> = 0;
|
---|
256 | 00267
|
---|
257 | 00279 <font class="keyword">virtual</font> <a class="code" href="classXMLAttDefList.html">XMLAttDefList</a>& getAttDefList() <font class="keyword">const</font> = 0;
|
---|
258 | 00280
|
---|
259 | 00288 <font class="keyword">virtual</font> CharDataOpts getCharDataOpts() <font class="keyword">const</font> = 0;
|
---|
260 | 00289
|
---|
261 | 00296 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> hasAttDefs() <font class="keyword">const</font> = 0;
|
---|
262 | 00297
|
---|
263 | 00305 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> resetDefs() = 0;
|
---|
264 | 00306
|
---|
265 | 00314 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="XMLElementDecl_8hpp.html#a1">ContentSpecNode</a>* getContentSpec() <font class="keyword">const</font> = 0;
|
---|
266 | 00315
|
---|
267 | 00321 <font class="keyword">virtual</font> <a class="code" href="XMLElementDecl_8hpp.html#a1">ContentSpecNode</a>* getContentSpec() = 0;
|
---|
268 | 00322
|
---|
269 | 00332 <font class="keyword">virtual</font> <font class="keywordtype">void</font> setContentSpec(<a class="code" href="XMLElementDecl_8hpp.html#a1">ContentSpecNode</a>* toAdopt) = 0;
|
---|
270 | 00333
|
---|
271 | 00345 <font class="keyword">virtual</font> <a class="code" href="classXMLContentModel.html">XMLContentModel</a>* getContentModel() = 0;
|
---|
272 | 00346
|
---|
273 | 00358 <font class="keyword">virtual</font> <font class="keywordtype">void</font> setContentModel(<a class="code" href="classXMLContentModel.html">XMLContentModel</a>* <font class="keyword">const</font> newModelToAdopt) = 0;
|
---|
274 | 00359
|
---|
275 | 00372 <font class="keyword">virtual</font> <font class="keyword">const</font> XMLCh* getFormattedContentModel () <font class="keyword">const</font> = 0;
|
---|
276 | 00373
|
---|
277 | 00375
|
---|
278 | 00376
|
---|
279 | 00377 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
280 | 00378 <font class="comment">// Getter methods</font>
|
---|
281 | 00379 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
282 | 00380
|
---|
283 | 00383
|
---|
284 | 00391 <font class="keyword">const</font> XMLCh* getBaseName() <font class="keyword">const</font>;
|
---|
285 | 00392 XMLCh* getBaseName();
|
---|
286 | 00393
|
---|
287 | 00400 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> getURI() <font class="keyword">const</font>;
|
---|
288 | 00401
|
---|
289 | 00409 <font class="keyword">const</font> <a class="code" href="classQName.html">QName</a>* getElementName() <font class="keyword">const</font>;
|
---|
290 | 00410 <a class="code" href="classQName.html">QName</a>* getElementName();
|
---|
291 | 00411
|
---|
292 | 00420 <font class="keyword">const</font> XMLCh* getFullName() <font class="keyword">const</font>;
|
---|
293 | 00421
|
---|
294 | 00433 CreateReasons getCreateReason() <font class="keyword">const</font>;
|
---|
295 | 00434
|
---|
296 | 00444 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> getId() <font class="keyword">const</font>;
|
---|
297 | 00445
|
---|
298 | 00446
|
---|
299 | 00451 <font class="keyword">virtual</font> <font class="keyword">const</font> XMLCh* getDOMTypeInfoUri() <font class="keyword">const</font> = 0;
|
---|
300 | 00452
|
---|
301 | 00457 <font class="keyword">virtual</font> <font class="keyword">const</font> XMLCh* getDOMTypeInfoName() <font class="keyword">const</font> = 0;
|
---|
302 | 00458
|
---|
303 | 00459
|
---|
304 | 00469 <font class="keywordtype">bool</font> isDeclared() <font class="keyword">const</font>;
|
---|
305 | 00470
|
---|
306 | 00479 <font class="keywordtype">bool</font> isExternal() <font class="keyword">const</font>;
|
---|
307 | 00480
|
---|
308 | 00488 <a class="code" href="classMemoryManager.html">MemoryManager</a>* getMemoryManager() <font class="keyword">const</font>;
|
---|
309 | 00489
|
---|
310 | 00491
|
---|
311 | 00492
|
---|
312 | 00493 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
313 | 00494 <font class="comment">// Setter methods</font>
|
---|
314 | 00495 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
315 | 00496
|
---|
316 | 00499
|
---|
317 | 00510 <font class="keywordtype">void</font> setElementName(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> prefix
|
---|
318 | 00511 , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> localPart
|
---|
319 | 00512 , <font class="keyword">const</font> <font class="keywordtype">int</font> uriId );
|
---|
320 | 00513
|
---|
321 | 00523 <font class="keywordtype">void</font> setElementName(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> rawName
|
---|
322 | 00524 , <font class="keyword">const</font> <font class="keywordtype">int</font> uriId );
|
---|
323 | 00525
|
---|
324 | 00534 <font class="keywordtype">void</font> setElementName(<font class="keyword">const</font> <a class="code" href="classQName.html">QName</a>* <font class="keyword">const</font> elementName);
|
---|
325 | 00535
|
---|
326 | 00546 <font class="keywordtype">void</font> setCreateReason(<font class="keyword">const</font> CreateReasons newReason);
|
---|
327 | 00547
|
---|
328 | 00554 <font class="keywordtype">void</font> setId(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> newId);
|
---|
329 | 00555
|
---|
330 | 00556
|
---|
331 | 00560 <font class="keywordtype">void</font> setExternalElemDeclaration(<font class="keyword">const</font> <font class="keywordtype">bool</font> aValue);
|
---|
332 | 00561
|
---|
333 | 00563
|
---|
334 | 00564
|
---|
335 | 00565 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
336 | 00566 <font class="comment">// Miscellaneous methods</font>
|
---|
337 | 00567 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
338 | 00568
|
---|
339 | 00571
|
---|
340 | 00573
|
---|
341 | 00574 <font class="comment">/***</font>
|
---|
342 | 00575 <font class="comment"> * Support for Serialization/De-serialization</font>
|
---|
343 | 00576 <font class="comment"> ***/</font>
|
---|
344 | 00577 DECL_XSERIALIZABLE(<a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>)
|
---|
345 | 00578
|
---|
346 | <a name="l00579"></a><a class="code" href="classXMLElementDecl.html#s17">00579</a> <font class="keyword">enum</font> objectType
|
---|
347 | 00580 {
|
---|
348 | 00581 Schema
|
---|
349 | 00582 , DTD
|
---|
350 | 00583 , UnKnown
|
---|
351 | 00584 };
|
---|
352 | 00585
|
---|
353 | 00586 <font class="keyword">virtual</font> <a class="code" href="classXMLElementDecl.html#s17">XMLElementDecl::objectType</a> getObjectType() <font class="keyword">const</font> = 0;
|
---|
354 | 00587
|
---|
355 | 00588 <font class="keyword">static</font> <font class="keywordtype">void</font> storeElementDecl(XSerializeEngine& serEng
|
---|
356 | 00589 , <a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>* <font class="keyword">const</font> element);
|
---|
357 | 00590
|
---|
358 | 00591 <font class="keyword">static</font> <a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>* loadElementDecl(XSerializeEngine& serEng);
|
---|
359 | 00592
|
---|
360 | 00593 <font class="keyword">protected</font> :
|
---|
361 | 00594 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
362 | 00595 <font class="comment">// Hidden constructors</font>
|
---|
363 | 00596 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
364 | 00597 <a class="code" href="XMLDocumentHandler_8hpp.html#a1">XMLElementDecl</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>);
|
---|
365 | 00598
|
---|
366 | 00599 <font class="keyword">private</font> :
|
---|
367 | 00600 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
368 | 00601 <font class="comment">// Unimplemented constructors and operators</font>
|
---|
369 | 00602 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
370 | 00603 <a class="code" href="XMLDocumentHandler_8hpp.html#a1">XMLElementDecl</a>(<font class="keyword">const</font> <a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>&);
|
---|
371 | 00604 <a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>& operator=(<font class="keyword">const</font> <a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>&);
|
---|
372 | 00605
|
---|
373 | 00606
|
---|
374 | 00607 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
375 | 00608 <font class="comment">// Data members</font>
|
---|
376 | 00609 <font class="comment">//</font>
|
---|
377 | 00610 <font class="comment">// fElementName</font>
|
---|
378 | 00611 <font class="comment">// This is the name of the element decl.</font>
|
---|
379 | 00612 <font class="comment">//</font>
|
---|
380 | 00613 <font class="comment">// fCreateReason</font>
|
---|
381 | 00614 <font class="comment">// We sometimes have to put an element decl object into the elem</font>
|
---|
382 | 00615 <font class="comment">// decl pool before the element's declaration is seen, such as when</font>
|
---|
383 | 00616 <font class="comment">// its used in another element's content model or an att list is</font>
|
---|
384 | 00617 <font class="comment">// seen for it. This flag tells us whether its been declared, and</font>
|
---|
385 | 00618 <font class="comment">// if not why it had to be created.</font>
|
---|
386 | 00619 <font class="comment">//</font>
|
---|
387 | 00620 <font class="comment">// fId</font>
|
---|
388 | 00621 <font class="comment">// The unique id of this element. This is created by the derived</font>
|
---|
389 | 00622 <font class="comment">// class, or more accurately the grammar that owns the objects</font>
|
---|
390 | 00623 <font class="comment">// of the derived types. But, since they all have to have them, we</font>
|
---|
391 | 00624 <font class="comment">// let them all store the id here. It is defaulted to have the</font>
|
---|
392 | 00625 <font class="comment">// value fgInvalidElem until explicitly set.</font>
|
---|
393 | 00626 <font class="comment">//</font>
|
---|
394 | 00627 <font class="comment">// fExternalElement</font>
|
---|
395 | 00628 <font class="comment">// This flag indicates whether or the element was declared externally.</font>
|
---|
396 | 00629 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
397 | 00630 <a class="code" href="classMemoryManager.html">MemoryManager</a>* fMemoryManager;
|
---|
398 | 00631 <a class="code" href="classQName.html">QName</a>* fElementName;
|
---|
399 | 00632 CreateReasons fCreateReason;
|
---|
400 | 00633 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> fId;
|
---|
401 | 00634 <font class="keywordtype">bool</font> fExternalElement;
|
---|
402 | 00635 };
|
---|
403 | 00636
|
---|
404 | 00637
|
---|
405 | 00638 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
406 | 00639 <font class="comment">// XMLElementDecl: Getter methods</font>
|
---|
407 | 00640 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
408 | <a name="l00641"></a><a class="code" href="classXMLElementDecl.html#z264_0">00641</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLElementDecl.html#z264_0">XMLElementDecl::getBaseName</a>()<font class="keyword"> const</font>
|
---|
409 | 00642 <font class="keyword"></font>{
|
---|
410 | 00643 <font class="keywordflow">return</font> fElementName-><a class="code" href="classQName.html#a7">getLocalPart</a>();
|
---|
411 | 00644 }
|
---|
412 | 00645
|
---|
413 | <a name="l00646"></a><a class="code" href="classXMLElementDecl.html#z264_1">00646</a> <font class="keyword">inline</font> XMLCh* <a class="code" href="classXMLElementDecl.html#z264_0">XMLElementDecl::getBaseName</a>()
|
---|
414 | 00647 {
|
---|
415 | 00648 <font class="keywordflow">return</font> fElementName-><a class="code" href="classQName.html#a7">getLocalPart</a>();
|
---|
416 | 00649 }
|
---|
417 | 00650
|
---|
418 | <a name="l00651"></a><a class="code" href="classXMLElementDecl.html#z264_2">00651</a> <font class="keyword">inline</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="classXMLElementDecl.html#z264_2">XMLElementDecl::getURI</a>()<font class="keyword"> const</font>
|
---|
419 | 00652 <font class="keyword"></font>{
|
---|
420 | 00653 <font class="keywordflow">return</font> fElementName-><a class="code" href="classQName.html#a9">getURI</a>();
|
---|
421 | 00654 }
|
---|
422 | 00655
|
---|
423 | <a name="l00656"></a><a class="code" href="classXMLElementDecl.html#z264_3">00656</a> <font class="keyword">inline</font> <font class="keyword">const</font> <a class="code" href="classQName.html">QName</a>* <a class="code" href="classXMLElementDecl.html#z264_3">XMLElementDecl::getElementName</a>()<font class="keyword"> const</font>
|
---|
424 | 00657 <font class="keyword"></font>{
|
---|
425 | 00658 <font class="keywordflow">return</font> fElementName;
|
---|
426 | 00659 }
|
---|
427 | 00660
|
---|
428 | <a name="l00661"></a><a class="code" href="classXMLElementDecl.html#z264_4">00661</a> <font class="keyword">inline</font> <a class="code" href="classQName.html">QName</a>* <a class="code" href="classXMLElementDecl.html#z264_3">XMLElementDecl::getElementName</a>()
|
---|
429 | 00662 {
|
---|
430 | 00663 <font class="keywordflow">return</font> fElementName;
|
---|
431 | 00664 }
|
---|
432 | 00665
|
---|
433 | <a name="l00666"></a><a class="code" href="classXMLElementDecl.html#z264_5">00666</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLElementDecl.html#z264_5">XMLElementDecl::getFullName</a>()<font class="keyword"> const</font>
|
---|
434 | 00667 <font class="keyword"></font>{
|
---|
435 | 00668 <font class="keywordflow">return</font> fElementName-><a class="code" href="classQName.html#a10">getRawName</a>();
|
---|
436 | 00669 }
|
---|
437 | 00670
|
---|
438 | <a name="l00671"></a><a class="code" href="classXMLElementDecl.html#z264_6">00671</a> <font class="keyword">inline</font> <a class="code" href="classXMLElementDecl.html#s14">XMLElementDecl::CreateReasons</a> <a class="code" href="classXMLElementDecl.html#z264_6">XMLElementDecl::getCreateReason</a>()<font class="keyword"> const</font>
|
---|
439 | 00672 <font class="keyword"></font>{
|
---|
440 | 00673 <font class="keywordflow">return</font> fCreateReason;
|
---|
441 | 00674 }
|
---|
442 | 00675
|
---|
443 | <a name="l00676"></a><a class="code" href="classXMLElementDecl.html#z264_7">00676</a> <font class="keyword">inline</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="classXMLElementDecl.html#z264_7">XMLElementDecl::getId</a>()<font class="keyword"> const</font>
|
---|
444 | 00677 <font class="keyword"></font>{
|
---|
445 | 00678 <font class="keywordflow">return</font> fId;
|
---|
446 | 00679 }
|
---|
447 | 00680
|
---|
448 | <a name="l00681"></a><a class="code" href="classXMLElementDecl.html#z264_10">00681</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLElementDecl.html#z264_10">XMLElementDecl::isDeclared</a>()<font class="keyword"> const</font>
|
---|
449 | 00682 <font class="keyword"></font>{
|
---|
450 | 00683 <font class="keywordflow">return</font> (fCreateReason == <a class="code" href="classXMLElementDecl.html#s14s1">Declared</a>);
|
---|
451 | 00684 }
|
---|
452 | 00685
|
---|
453 | 00686
|
---|
454 | <a name="l00687"></a><a class="code" href="classXMLElementDecl.html#z264_11">00687</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLElementDecl.html#z264_11">XMLElementDecl::isExternal</a>()<font class="keyword"> const</font>
|
---|
455 | 00688 <font class="keyword"></font>{
|
---|
456 | 00689 <font class="keywordflow">return</font> fExternalElement;
|
---|
457 | 00690 }
|
---|
458 | 00691
|
---|
459 | <a name="l00692"></a><a class="code" href="classXMLElementDecl.html#z264_12">00692</a> <font class="keyword">inline</font> <a class="code" href="classMemoryManager.html">MemoryManager</a>* <a class="code" href="classXMLElementDecl.html#z264_12">XMLElementDecl::getMemoryManager</a>()<font class="keyword"> const</font>
|
---|
460 | 00693 <font class="keyword"></font>{
|
---|
461 | 00694 <font class="keywordflow">return</font> fMemoryManager;
|
---|
462 | 00695 }
|
---|
463 | 00696
|
---|
464 | 00697
|
---|
465 | 00698 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
466 | 00699 <font class="comment">// XMLElementDecl: Setter methods</font>
|
---|
467 | 00700 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
468 | 00701 <font class="keyword">inline</font> <font class="keywordtype">void</font>
|
---|
469 | <a name="l00702"></a><a class="code" href="classXMLElementDecl.html#z265_3">00702</a> <a class="code" href="classXMLElementDecl.html#z265_3">XMLElementDecl::setCreateReason</a>(<font class="keyword">const</font> <a class="code" href="classXMLElementDecl.html#s14">XMLElementDecl::CreateReasons</a> newReason)
|
---|
470 | 00703 {
|
---|
471 | 00704 fCreateReason = newReason;
|
---|
472 | 00705 }
|
---|
473 | 00706
|
---|
474 | <a name="l00707"></a><a class="code" href="classXMLElementDecl.html#z265_4">00707</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLElementDecl.html#z265_4">XMLElementDecl::setId</a>(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> newId)
|
---|
475 | 00708 {
|
---|
476 | 00709 fId = newId;
|
---|
477 | 00710 }
|
---|
478 | 00711
|
---|
479 | 00712
|
---|
480 | <a name="l00713"></a><a class="code" href="classXMLElementDecl.html#z265_5">00713</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLElementDecl.html#z265_5">XMLElementDecl::setExternalElemDeclaration</a>(<font class="keyword">const</font> <font class="keywordtype">bool</font> aValue)
|
---|
481 | 00714 {
|
---|
482 | 00715 fExternalElement = aValue;
|
---|
483 | 00716 }
|
---|
484 | 00717
|
---|
485 | 00718 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_END</a>
|
---|
486 | 00719
|
---|
487 | 00720 <font class="preprocessor">#endif</font>
|
---|
488 | </pre></div> </FONT></TD></TR></TABLE><BR>
|
---|
489 | </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>
|
---|
490 | Copyright © 1994-2004 The Apache Software Foundation.
|
---|
491 | All Rights Reserved.
|
---|
492 | </I></FONT></TD></TR></TABLE></BODY></HTML>
|
---|