1 | <HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>XMLValidator.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>XMLValidator.hpp</h1><a href="XMLValidator_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
|
---|
45 | 00002 <font class="comment"> * Copyright 1999-2004 The Apache Software Foundation.</font>
|
---|
46 | 00003 <font class="comment"> * </font>
|
---|
47 | 00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
|
---|
48 | 00005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
|
---|
49 | 00006 <font class="comment"> * You may obtain a copy of the License at</font>
|
---|
50 | 00007 <font class="comment"> * </font>
|
---|
51 | 00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font>
|
---|
52 | 00009 <font class="comment"> * </font>
|
---|
53 | 00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
|
---|
54 | 00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
|
---|
55 | 00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
|
---|
56 | 00013 <font class="comment"> * See the License for the specific language governing permissions and</font>
|
---|
57 | 00014 <font class="comment"> * limitations under the License.</font>
|
---|
58 | 00015 <font class="comment"> */</font>
|
---|
59 | 00016
|
---|
60 | 00017 <font class="comment">/*</font>
|
---|
61 | 00018 <font class="comment"> * $Log: XMLValidator.hpp,v $</font>
|
---|
62 | 00019 <font class="comment"> * Revision 1.10 2004/09/08 13:55:59 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.9 2003/05/15 18:26:07 knoaman</font>
|
---|
66 | 00023 <font class="comment"> * Partial implementation of the configurable memory manager.</font>
|
---|
67 | 00024 <font class="comment"> *</font>
|
---|
68 | 00025 <font class="comment"> * Revision 1.8 2003/03/07 18:08:10 tng</font>
|
---|
69 | 00026 <font class="comment"> * Return a reference instead of void for operator=</font>
|
---|
70 | 00027 <font class="comment"> *</font>
|
---|
71 | 00028 <font class="comment"> * Revision 1.7 2002/11/07 21:59:22 tng</font>
|
---|
72 | 00029 <font class="comment"> * Pass elemDecl to XMLValidator::validateAttrValue so that we can include element name in error message.</font>
|
---|
73 | 00030 <font class="comment"> *</font>
|
---|
74 | 00031 <font class="comment"> * Revision 1.6 2002/11/04 15:00:21 tng</font>
|
---|
75 | 00032 <font class="comment"> * C++ Namespace Support.</font>
|
---|
76 | 00033 <font class="comment"> *</font>
|
---|
77 | 00034 <font class="comment"> * Revision 1.5 2002/09/04 18:17:55 tng</font>
|
---|
78 | 00035 <font class="comment"> * Do not set IDREF to used during prevalidation.</font>
|
---|
79 | 00036 <font class="comment"> *</font>
|
---|
80 | 00037 <font class="comment"> * Revision 1.4 2002/08/20 16:54:11 tng</font>
|
---|
81 | 00038 <font class="comment"> * [Bug 6251] Info during compilation.</font>
|
---|
82 | 00039 <font class="comment"> *</font>
|
---|
83 | 00040 <font class="comment"> * Revision 1.3 2002/07/11 18:55:44 knoaman</font>
|
---|
84 | 00041 <font class="comment"> * Add a flag to the preContentValidation method to indicate whether to validate</font>
|
---|
85 | 00042 <font class="comment"> * default/fixed attributes or not.</font>
|
---|
86 | 00043 <font class="comment"> *</font>
|
---|
87 | 00044 <font class="comment"> * Revision 1.2 2002/02/20 18:17:01 tng</font>
|
---|
88 | 00045 <font class="comment"> * [Bug 5977] Warnings on generating apiDocs.</font>
|
---|
89 | 00046 <font class="comment"> *</font>
|
---|
90 | 00047 <font class="comment"> * Revision 1.1.1.1 2002/02/01 22:21:52 peiyongz</font>
|
---|
91 | 00048 <font class="comment"> * sane_include</font>
|
---|
92 | 00049 <font class="comment"> *</font>
|
---|
93 | 00050 <font class="comment"> * Revision 1.17 2001/11/30 22:18:18 peiyongz</font>
|
---|
94 | 00051 <font class="comment"> * cleanUp function made member function</font>
|
---|
95 | 00052 <font class="comment"> * cleanUp object moved to file scope</font>
|
---|
96 | 00053 <font class="comment"> * double mutex lock removed</font>
|
---|
97 | 00054 <font class="comment"> *</font>
|
---|
98 | 00055 <font class="comment"> * Revision 1.16 2001/11/13 13:24:46 tng</font>
|
---|
99 | 00056 <font class="comment"> * Deprecate function XMLValidator::checkRootElement.</font>
|
---|
100 | 00057 <font class="comment"> *</font>
|
---|
101 | 00058 <font class="comment"> * Revision 1.15 2001/10/24 23:46:52 peiyongz</font>
|
---|
102 | 00059 <font class="comment"> * [Bug 4342] fix the leak.</font>
|
---|
103 | 00060 <font class="comment"> *</font>
|
---|
104 | 00061 <font class="comment"> * Revision 1.14 2001/06/05 16:51:17 knoaman</font>
|
---|
105 | 00062 <font class="comment"> * Add 'const' to getGrammar - submitted by Peter A. Volchek.</font>
|
---|
106 | 00063 <font class="comment"> *</font>
|
---|
107 | 00064 <font class="comment"> * Revision 1.13 2001/05/11 13:25:33 tng</font>
|
---|
108 | 00065 <font class="comment"> * Copyright update.</font>
|
---|
109 | 00066 <font class="comment"> *</font>
|
---|
110 | 00067 <font class="comment"> * Revision 1.12 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.11 2001/04/19 18:16:53 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.10 2001/03/21 21:56:03 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.9 2001/02/26 19:21:33 tng</font>
|
---|
120 | 00077 <font class="comment"> * Schema: add parameter prefix in findElem and findAttr.</font>
|
---|
121 | 00078 <font class="comment"> *</font>
|
---|
122 | 00079 <font class="comment"> * Revision 1.8 2000/12/14 18:49:58 tng</font>
|
---|
123 | 00080 <font class="comment"> * Fix API document generation warning: "Warning: end of member group without matching begin"</font>
|
---|
124 | 00081 <font class="comment"> *</font>
|
---|
125 | 00082 <font class="comment"> * Revision 1.7 2000/08/09 22:09:09 jpolast</font>
|
---|
126 | 00083 <font class="comment"> * added const XMLCh* getURIText()</font>
|
---|
127 | 00084 <font class="comment"> * allows parsers to use const URIs instead of appending</font>
|
---|
128 | 00085 <font class="comment"> * to a XMLBuffer.</font>
|
---|
129 | 00086 <font class="comment"> *</font>
|
---|
130 | 00087 <font class="comment"> * Revision 1.6 2000/03/02 19:54:25 roddey</font>
|
---|
131 | 00088 <font class="comment"> * This checkin includes many changes done while waiting for the</font>
|
---|
132 | 00089 <font class="comment"> * 1.1.0 code to be finished. I can't list them all here, but a list is</font>
|
---|
133 | 00090 <font class="comment"> * available elsewhere.</font>
|
---|
134 | 00091 <font class="comment"> *</font>
|
---|
135 | 00092 <font class="comment"> * Revision 1.5 2000/02/24 20:00:24 abagchi</font>
|
---|
136 | 00093 <font class="comment"> * Swat for removing Log from API docs</font>
|
---|
137 | 00094 <font class="comment"> *</font>
|
---|
138 | 00095 <font class="comment"> * Revision 1.4 2000/02/15 23:59:07 roddey</font>
|
---|
139 | 00096 <font class="comment"> * More updated documentation of Framework classes.</font>
|
---|
140 | 00097 <font class="comment"> *</font>
|
---|
141 | 00098 <font class="comment"> * Revision 1.3 2000/02/15 01:21:31 roddey</font>
|
---|
142 | 00099 <font class="comment"> * Some initial documentation improvements. More to come...</font>
|
---|
143 | 00100 <font class="comment"> *</font>
|
---|
144 | 00101 <font class="comment"> * Revision 1.2 2000/02/06 07:47:49 rahulj</font>
|
---|
145 | 00102 <font class="comment"> * Year 2K copyright swat.</font>
|
---|
146 | 00103 <font class="comment"> *</font>
|
---|
147 | 00104 <font class="comment"> * Revision 1.1.1.1 1999/11/09 01:08:38 twl</font>
|
---|
148 | 00105 <font class="comment"> * Initial checkin</font>
|
---|
149 | 00106 <font class="comment"> *</font>
|
---|
150 | 00107 <font class="comment"> * Revision 1.4 1999/11/08 20:44:41 rahul</font>
|
---|
151 | 00108 <font class="comment"> * Swat for adding in Product name and CVS comment log variable.</font>
|
---|
152 | 00109 <font class="comment"> *</font>
|
---|
153 | 00110 <font class="comment"> */</font>
|
---|
154 | 00111
|
---|
155 | 00112
|
---|
156 | 00113 <font class="preprocessor">#if !defined(XMLVALIDATOR_HPP)</font>
|
---|
157 | <a name="l00114"></a><a class="code" href="XMLValidator_8hpp.html#a0">00114</a> <font class="preprocessor"></font><font class="preprocessor">#define XMLVALIDATOR_HPP</font>
|
---|
158 | 00115 <font class="preprocessor"></font>
|
---|
159 | 00116 <font class="preprocessor">#include <<a class="code" href="XMLAttr_8hpp.html">xercesc/framework/XMLAttr.hpp</a>></font>
|
---|
160 | 00117 <font class="preprocessor">#include <<a class="code" href="XMLValidityCodes_8hpp.html">xercesc/framework/XMLValidityCodes.hpp</a>></font>
|
---|
161 | 00118
|
---|
162 | 00119 <a class="code" href="XercesDefs_8hpp.html#a2">XERCES_CPP_NAMESPACE_BEGIN</a>
|
---|
163 | 00120
|
---|
164 | <a name="l00121"></a><a class="code" href="XMLValidator_8hpp.html#a1">00121</a> <font class="keyword">class </font><a class="code" href="XMLValidator_8hpp.html#a1">ReaderMgr</a>;
|
---|
165 | 00122 <font class="keyword">class </font>XMLBufferMgr;
|
---|
166 | 00123 <font class="keyword">class </font><a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>;
|
---|
167 | 00124 <font class="keyword">class </font>XMLScanner;
|
---|
168 | 00125 <font class="keyword">class </font>Grammar;
|
---|
169 | 00126
|
---|
170 | 00127
|
---|
171 | <a name="l00143"></a><a class="code" href="classXMLValidator.html">00143</a> <font class="keyword">class </font><a class="code" href="XercesDefs_8hpp.html#a9"></a> <a class="code" href="classXMLValidator.html">XMLValidator</a> : <font class="keyword">public</font> <a class="code" href="classXMemory.html">XMemory</a>
|
---|
172 | 00144 {
|
---|
173 | 00145 <font class="keyword">public</font>:
|
---|
174 | 00146 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
175 | 00147 <font class="comment">// Constructors are hidden, just the virtual destructor is exposed</font>
|
---|
176 | 00148 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
177 | 00149
|
---|
178 | 00152
|
---|
179 | <a name="l00157"></a><a class="code" href="classXMLValidator.html#z302_0">00157</a> <font class="keyword">virtual</font> ~<a class="code" href="classXMLValidator.html">XMLValidator</a>()
|
---|
180 | 00158 {
|
---|
181 | 00159 }
|
---|
182 | 00161
|
---|
183 | 00162
|
---|
184 | 00163 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
185 | 00164 <font class="comment">// The virtual validator interface</font>
|
---|
186 | 00165 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
187 | 00166
|
---|
188 | 00169
|
---|
189 | 00189 <font class="keyword">virtual</font> <font class="keywordtype">int</font> checkContent
|
---|
190 | 00190 (
|
---|
191 | 00191 <a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>* <font class="keyword">const</font> elemDecl
|
---|
192 | 00192 , <a class="code" href="classQName.html">QName</a>** <font class="keyword">const</font> children
|
---|
193 | 00193 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> childCount
|
---|
194 | 00194 ) = 0;
|
---|
195 | 00195
|
---|
196 | 00204 <font class="keyword">virtual</font> <font class="keywordtype">void</font> faultInAttr
|
---|
197 | 00205 (
|
---|
198 | 00206 <a class="code" href="classXMLAttr.html">XMLAttr</a>& toFill
|
---|
199 | 00207 , <font class="keyword">const</font> <a class="code" href="classXMLAttDef.html">XMLAttDef</a>& attDef
|
---|
200 | 00208 ) <font class="keyword">const</font> = 0;
|
---|
201 | 00209
|
---|
202 | 00213 <font class="keyword">virtual</font> <font class="keywordtype">void</font> preContentValidation(<font class="keywordtype">bool</font> reuseGrammar,
|
---|
203 | 00214 <font class="keywordtype">bool</font> validateDefAttr = <font class="keyword">false</font>) = 0;
|
---|
204 | 00215
|
---|
205 | 00223 <font class="keyword">virtual</font> <font class="keywordtype">void</font> postParseValidation() = 0;
|
---|
206 | 00224
|
---|
207 | 00230 <font class="keyword">virtual</font> <font class="keywordtype">void</font> reset() = 0;
|
---|
208 | 00231
|
---|
209 | 00238 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> requiresNamespaces() <font class="keyword">const</font> = 0;
|
---|
210 | 00239
|
---|
211 | 00250 <font class="keyword">virtual</font> <font class="keywordtype">void</font> validateAttrValue
|
---|
212 | 00251 (
|
---|
213 | 00252 <font class="keyword">const</font> <a class="code" href="classXMLAttDef.html">XMLAttDef</a>* attDef
|
---|
214 | 00253 , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> attrValue
|
---|
215 | 00254 , <font class="keywordtype">bool</font> preValidation = <font class="keyword">false</font>
|
---|
216 | 00255 , <font class="keyword">const</font> <a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>* elemDecl = 0
|
---|
217 | 00256 ) = 0;
|
---|
218 | 00257
|
---|
219 | 00265 <font class="keyword">virtual</font> <font class="keywordtype">void</font> validateElement
|
---|
220 | 00266 (
|
---|
221 | 00267 <font class="keyword">const</font> <a class="code" href="classXMLElementDecl.html">XMLElementDecl</a>* elemDef
|
---|
222 | 00268 ) = 0;
|
---|
223 | 00269
|
---|
224 | 00273 <font class="keyword">virtual</font> Grammar* getGrammar() <font class="keyword">const</font> =0;
|
---|
225 | 00274
|
---|
226 | 00278 <font class="keyword">virtual</font> <font class="keywordtype">void</font> setGrammar(Grammar* aGrammar) =0;
|
---|
227 | 00279
|
---|
228 | 00280
|
---|
229 | 00282
|
---|
230 | 00283 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
231 | 00284 <font class="comment">// Virtual DTD handler interface.</font>
|
---|
232 | 00285 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
233 | 00286
|
---|
234 | 00289
|
---|
235 | 00294 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> handlesDTD() <font class="keyword">const</font> = 0;
|
---|
236 | 00295
|
---|
237 | 00296 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
238 | 00297 <font class="comment">// Virtual Schema handler interface.</font>
|
---|
239 | 00298 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
240 | 00299
|
---|
241 | 00306 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> handlesSchema() <font class="keyword">const</font> = 0;
|
---|
242 | 00307
|
---|
243 | 00309
|
---|
244 | 00310 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
245 | 00311 <font class="comment">// Setter methods</font>
|
---|
246 | 00312 <font class="comment">//</font>
|
---|
247 | 00313 <font class="comment">// setScannerInfo() is called by the scanner to tell the validator</font>
|
---|
248 | 00314 <font class="comment">// about the stuff it needs to have access to.</font>
|
---|
249 | 00315 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
250 | 00316
|
---|
251 | 00319
|
---|
252 | 00333 <font class="keywordtype">void</font> setScannerInfo
|
---|
253 | 00334 (
|
---|
254 | 00335 XMLScanner* <font class="keyword">const</font> owningScanner
|
---|
255 | 00336 , <a class="code" href="XMLValidator_8hpp.html#a1">ReaderMgr</a>* <font class="keyword">const</font> readerMgr
|
---|
256 | 00337 , XMLBufferMgr* <font class="keyword">const</font> bufMgr
|
---|
257 | 00338 );
|
---|
258 | 00339
|
---|
259 | 00349 <font class="keywordtype">void</font> setErrorReporter
|
---|
260 | 00350 (
|
---|
261 | 00351 <a class="code" href="classXMLErrorReporter.html">XMLErrorReporter</a>* <font class="keyword">const</font> errorReporter
|
---|
262 | 00352 );
|
---|
263 | 00353
|
---|
264 | 00355
|
---|
265 | 00356
|
---|
266 | 00357 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
267 | 00358 <font class="comment">// Error emitter methods</font>
|
---|
268 | 00359 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
269 | 00360
|
---|
270 | 00363
|
---|
271 | 00382 <font class="keywordtype">void</font> emitError(<font class="keyword">const</font> <a class="code" href="classXMLValid.html#s119">XMLValid::Codes</a> toEmit);
|
---|
272 | 00383 <font class="keywordtype">void</font> emitError
|
---|
273 | 00384 (
|
---|
274 | 00385 <font class="keyword">const</font> <a class="code" href="classXMLValid.html#s119">XMLValid::Codes</a> toEmit
|
---|
275 | 00386 , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> text1
|
---|
276 | 00387 , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> text2 = 0
|
---|
277 | 00388 , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> text3 = 0
|
---|
278 | 00389 , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> text4 = 0
|
---|
279 | 00390 );
|
---|
280 | 00391 <font class="keywordtype">void</font> emitError
|
---|
281 | 00392 (
|
---|
282 | 00393 <font class="keyword">const</font> <a class="code" href="classXMLValid.html#s119">XMLValid::Codes</a> toEmit
|
---|
283 | 00394 , <font class="keyword">const</font> <font class="keywordtype">char</font>* <font class="keyword">const</font> text1
|
---|
284 | 00395 , <font class="keyword">const</font> <font class="keywordtype">char</font>* <font class="keyword">const</font> text2 = 0
|
---|
285 | 00396 , <font class="keyword">const</font> <font class="keywordtype">char</font>* <font class="keyword">const</font> text3 = 0
|
---|
286 | 00397 , <font class="keyword">const</font> <font class="keywordtype">char</font>* <font class="keyword">const</font> text4 = 0
|
---|
287 | 00398 );
|
---|
288 | 00399
|
---|
289 | 00401
|
---|
290 | 00402 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
291 | 00403 <font class="comment">// Deprecated XMLValidator interface</font>
|
---|
292 | 00404 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
293 | 00412 <font class="comment"></font> <font class="keywordtype">bool</font> checkRootElement
|
---|
294 | <a name="l00413"></a><a class="code" href="classXMLValidator.html#a0">00413</a> (
|
---|
295 | 00414 <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>
|
---|
296 | 00415 ) { <font class="keywordflow">return</font> <font class="keyword">true</font>;};
|
---|
297 | 00416
|
---|
298 | 00417 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
299 | 00418 <font class="comment">// Notification that lazy data has been deleted</font>
|
---|
300 | 00419 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
301 | 00420 <font class="keyword">static</font> <font class="keywordtype">void</font> reinitMsgMutex();
|
---|
302 | 00421
|
---|
303 | 00422 <font class="keyword">static</font> <font class="keywordtype">void</font> reinitMsgLoader();
|
---|
304 | 00423
|
---|
305 | 00424 <font class="keyword">protected</font> :
|
---|
306 | 00425 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
307 | 00426 <font class="comment">// Hidden constructors</font>
|
---|
308 | 00427 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
309 | 00428 <a class="code" href="classXMLValidator.html">XMLValidator</a>
|
---|
310 | 00429 (
|
---|
311 | 00430 <a class="code" href="classXMLErrorReporter.html">XMLErrorReporter</a>* <font class="keyword">const</font> errReporter = 0
|
---|
312 | 00431 );
|
---|
313 | 00432
|
---|
314 | 00433
|
---|
315 | 00434 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
316 | 00435 <font class="comment">// Protected getters</font>
|
---|
317 | 00436 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
318 | 00437 <font class="keyword">const</font> XMLBufferMgr* getBufMgr() <font class="keyword">const</font>;
|
---|
319 | 00438 XMLBufferMgr* getBufMgr();
|
---|
320 | 00439 <font class="keyword">const</font> <a class="code" href="XMLValidator_8hpp.html#a1">ReaderMgr</a>* getReaderMgr() <font class="keyword">const</font>;
|
---|
321 | 00440 <a class="code" href="XMLValidator_8hpp.html#a1">ReaderMgr</a>* getReaderMgr();
|
---|
322 | 00441 <font class="keyword">const</font> XMLScanner* getScanner() <font class="keyword">const</font>;
|
---|
323 | 00442 XMLScanner* getScanner();
|
---|
324 | 00443
|
---|
325 | 00444
|
---|
326 | 00445 <font class="keyword">private</font> :
|
---|
327 | 00446 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
328 | 00447 <font class="comment">// Unimplemented Constructors and Operators</font>
|
---|
329 | 00448 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
330 | 00449 <a class="code" href="classXMLValidator.html">XMLValidator</a>(<font class="keyword">const</font> <a class="code" href="classXMLValidator.html">XMLValidator</a>&);
|
---|
331 | 00450 <a class="code" href="classXMLValidator.html">XMLValidator</a>& operator=(<font class="keyword">const</font> <a class="code" href="classXMLValidator.html">XMLValidator</a>&);
|
---|
332 | 00451
|
---|
333 | 00452
|
---|
334 | 00453 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
335 | 00454 <font class="comment">// Private data members</font>
|
---|
336 | 00455 <font class="comment">//</font>
|
---|
337 | 00456 <font class="comment">// fErrorReporter</font>
|
---|
338 | 00457 <font class="comment">// The error reporter we are to use, if any.</font>
|
---|
339 | 00458 <font class="comment">//</font>
|
---|
340 | 00459 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
341 | 00460 XMLBufferMgr* fBufMgr;
|
---|
342 | 00461 <a class="code" href="classXMLErrorReporter.html">XMLErrorReporter</a>* fErrorReporter;
|
---|
343 | 00462 <a class="code" href="XMLValidator_8hpp.html#a1">ReaderMgr</a>* fReaderMgr;
|
---|
344 | 00463 XMLScanner* fScanner;
|
---|
345 | 00464 };
|
---|
346 | 00465
|
---|
347 | 00466
|
---|
348 | 00467 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
349 | 00468 <font class="comment">// Setter methods</font>
|
---|
350 | 00469 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
351 | 00470 <font class="keyword">inline</font> <font class="keywordtype">void</font>
|
---|
352 | <a name="l00471"></a><a class="code" href="classXMLValidator.html#z305_0">00471</a> <a class="code" href="classXMLValidator.html#z305_0">XMLValidator::setScannerInfo</a>(XMLScanner* <font class="keyword">const</font> owningScanner
|
---|
353 | 00472 , <a class="code" href="XMLValidator_8hpp.html#a1">ReaderMgr</a>* <font class="keyword">const</font> readerMgr
|
---|
354 | 00473 , XMLBufferMgr* <font class="keyword">const</font> bufMgr)
|
---|
355 | 00474 {
|
---|
356 | 00475 <font class="comment">// We don't own any of these, we just reference them</font>
|
---|
357 | 00476 fScanner = owningScanner;
|
---|
358 | 00477 fReaderMgr = readerMgr;
|
---|
359 | 00478 fBufMgr = bufMgr;
|
---|
360 | 00479 }
|
---|
361 | 00480
|
---|
362 | 00481 <font class="keyword">inline</font> <font class="keywordtype">void</font>
|
---|
363 | <a name="l00482"></a><a class="code" href="classXMLValidator.html#z305_1">00482</a> <a class="code" href="classXMLValidator.html#z305_1">XMLValidator::setErrorReporter</a>(<a class="code" href="classXMLErrorReporter.html">XMLErrorReporter</a>* <font class="keyword">const</font> errorReporter)
|
---|
364 | 00483 {
|
---|
365 | 00484 fErrorReporter = errorReporter;
|
---|
366 | 00485 }
|
---|
367 | 00486
|
---|
368 | 00487
|
---|
369 | 00488 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
370 | 00489 <font class="comment">// XMLValidator: Protected getter</font>
|
---|
371 | 00490 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
372 | <a name="l00491"></a><a class="code" href="classXMLValidator.html#b1">00491</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLBufferMgr* <a class="code" href="classXMLValidator.html#b1">XMLValidator::getBufMgr</a>()<font class="keyword"> const</font>
|
---|
373 | 00492 <font class="keyword"></font>{
|
---|
374 | 00493 <font class="keywordflow">return</font> fBufMgr;
|
---|
375 | 00494 }
|
---|
376 | 00495
|
---|
377 | <a name="l00496"></a><a class="code" href="classXMLValidator.html#b2">00496</a> <font class="keyword">inline</font> XMLBufferMgr* <a class="code" href="classXMLValidator.html#b1">XMLValidator::getBufMgr</a>()
|
---|
378 | 00497 {
|
---|
379 | 00498 <font class="keywordflow">return</font> fBufMgr;
|
---|
380 | 00499 }
|
---|
381 | 00500
|
---|
382 | <a name="l00501"></a><a class="code" href="classXMLValidator.html#b3">00501</a> <font class="keyword">inline</font> <font class="keyword">const</font> <a class="code" href="XMLValidator_8hpp.html#a1">ReaderMgr</a>* <a class="code" href="classXMLValidator.html#b3">XMLValidator::getReaderMgr</a>()<font class="keyword"> const</font>
|
---|
383 | 00502 <font class="keyword"></font>{
|
---|
384 | 00503 <font class="keywordflow">return</font> fReaderMgr;
|
---|
385 | 00504 }
|
---|
386 | 00505
|
---|
387 | <a name="l00506"></a><a class="code" href="classXMLValidator.html#b4">00506</a> <font class="keyword">inline</font> <a class="code" href="XMLValidator_8hpp.html#a1">ReaderMgr</a>* <a class="code" href="classXMLValidator.html#b3">XMLValidator::getReaderMgr</a>()
|
---|
388 | 00507 {
|
---|
389 | 00508 <font class="keywordflow">return</font> fReaderMgr;
|
---|
390 | 00509 }
|
---|
391 | 00510
|
---|
392 | <a name="l00511"></a><a class="code" href="classXMLValidator.html#b5">00511</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLScanner* <a class="code" href="classXMLValidator.html#b5">XMLValidator::getScanner</a>()<font class="keyword"> const</font>
|
---|
393 | 00512 <font class="keyword"></font>{
|
---|
394 | 00513 <font class="keywordflow">return</font> fScanner;
|
---|
395 | 00514 }
|
---|
396 | 00515
|
---|
397 | <a name="l00516"></a><a class="code" href="classXMLValidator.html#b6">00516</a> <font class="keyword">inline</font> XMLScanner* <a class="code" href="classXMLValidator.html#b5">XMLValidator::getScanner</a>()
|
---|
398 | 00517 {
|
---|
399 | 00518 <font class="keywordflow">return</font> fScanner;
|
---|
400 | 00519 }
|
---|
401 | 00520
|
---|
402 | 00521 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_END</a>
|
---|
403 | 00522
|
---|
404 | 00523 <font class="preprocessor">#endif</font>
|
---|
405 | </pre></div> </FONT></TD></TR></TABLE><BR>
|
---|
406 | </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>
|
---|
407 | Copyright © 1994-2004 The Apache Software Foundation.
|
---|
408 | All Rights Reserved.
|
---|
409 | </I></FONT></TD></TR></TABLE></BODY></HTML>
|
---|