1 | /*
|
---|
2 | * The Apache Software License, Version 1.1
|
---|
3 | *
|
---|
4 | * Copyright (c) 2001 The Apache Software Foundation. All rights
|
---|
5 | * reserved.
|
---|
6 | *
|
---|
7 | * Redistribution and use in source and binary forms, with or without
|
---|
8 | * modification, are permitted provided that the following conditions
|
---|
9 | * are met:
|
---|
10 | *
|
---|
11 | * 1. Redistributions of source code must retain the above copyright
|
---|
12 | * notice, this list of conditions and the following disclaimer.
|
---|
13 | *
|
---|
14 | * 2. Redistributions in binary form must reproduce the above copyright
|
---|
15 | * notice, this list of conditions and the following disclaimer in
|
---|
16 | * the documentation and/or other materials provided with the
|
---|
17 | * distribution.
|
---|
18 | *
|
---|
19 | * 3. The end-user documentation included with the redistribution,
|
---|
20 | * if any, must include the following acknowledgment:
|
---|
21 | * "This product includes software developed by the
|
---|
22 | * Apache Software Foundation (http://www.apache.org/)."
|
---|
23 | * Alternately, this acknowledgment may appear in the software itself,
|
---|
24 | * if and wherever such third-party acknowledgments normally appear.
|
---|
25 | *
|
---|
26 | * 4. The names "Xerces" and "Apache Software Foundation" must
|
---|
27 | * not be used to endorse or promote products derived from this
|
---|
28 | * software without prior written permission. For written
|
---|
29 | * permission, please contact apache\@apache.org.
|
---|
30 | *
|
---|
31 | * 5. Products derived from this software may not be called "Apache",
|
---|
32 | * nor may "Apache" appear in their name, without prior written
|
---|
33 | * permission of the Apache Software Foundation.
|
---|
34 | *
|
---|
35 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
---|
36 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
37 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
---|
38 | * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
|
---|
39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
---|
40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
---|
41 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
---|
42 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
---|
43 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
---|
44 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
---|
45 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
---|
46 | * SUCH DAMAGE.
|
---|
47 | * ====================================================================
|
---|
48 | *
|
---|
49 | * This software consists of voluntary contributions made by many
|
---|
50 | * individuals on behalf of the Apache Software Foundation, and was
|
---|
51 | * originally based on software copyright (c) 2001, International
|
---|
52 | * Business Machines, Inc., http://www.ibm.com . For more information
|
---|
53 | * on the Apache Software Foundation, please see
|
---|
54 | * <http://www.apache.org/>.
|
---|
55 | */
|
---|
56 |
|
---|
57 | /*
|
---|
58 | * $Id: SchemaSymbols.hpp,v 1.6 2004/01/29 11:52:31 cargilld Exp $
|
---|
59 | */
|
---|
60 |
|
---|
61 | #if !defined(SCHEMASYMBOLS_HPP)
|
---|
62 | #define SCHEMASYMBOLS_HPP
|
---|
63 |
|
---|
64 | #include <xercesc/util/XercesDefs.hpp>
|
---|
65 |
|
---|
66 | XERCES_CPP_NAMESPACE_BEGIN
|
---|
67 |
|
---|
68 | /*
|
---|
69 | * Collection of symbols used to parse a Schema Grammar
|
---|
70 | */
|
---|
71 |
|
---|
72 | class VALIDATORS_EXPORT SchemaSymbols
|
---|
73 | {
|
---|
74 | public :
|
---|
75 | // -----------------------------------------------------------------------
|
---|
76 | // Constant data
|
---|
77 | // -----------------------------------------------------------------------
|
---|
78 | static const XMLCh fgURI_XSI[];
|
---|
79 | static const XMLCh fgURI_SCHEMAFORSCHEMA[];
|
---|
80 | static const XMLCh fgXSI_SCHEMALOCACTION[];
|
---|
81 | static const XMLCh fgXSI_NONAMESPACESCHEMALOCACTION[];
|
---|
82 | static const XMLCh fgXSI_TYPE[];
|
---|
83 | static const XMLCh fgELT_ALL[];
|
---|
84 | static const XMLCh fgELT_ANNOTATION[];
|
---|
85 | static const XMLCh fgELT_ANY[];
|
---|
86 | static const XMLCh fgELT_WILDCARD[];
|
---|
87 | static const XMLCh fgELT_ANYATTRIBUTE[];
|
---|
88 | static const XMLCh fgELT_APPINFO[];
|
---|
89 | static const XMLCh fgELT_ATTRIBUTE[];
|
---|
90 | static const XMLCh fgELT_ATTRIBUTEGROUP[];
|
---|
91 | static const XMLCh fgELT_CHOICE[];
|
---|
92 | static const XMLCh fgELT_COMPLEXTYPE[];
|
---|
93 | static const XMLCh fgELT_CONTENT[];
|
---|
94 | static const XMLCh fgELT_DOCUMENTATION[];
|
---|
95 | static const XMLCh fgELT_DURATION[];
|
---|
96 | static const XMLCh fgELT_ELEMENT[];
|
---|
97 | static const XMLCh fgELT_ENCODING[];
|
---|
98 | static const XMLCh fgELT_ENUMERATION[];
|
---|
99 | static const XMLCh fgELT_FIELD[];
|
---|
100 | static const XMLCh fgELT_WHITESPACE[];
|
---|
101 | static const XMLCh fgELT_GROUP[];
|
---|
102 | static const XMLCh fgELT_IMPORT[];
|
---|
103 | static const XMLCh fgELT_INCLUDE[];
|
---|
104 | static const XMLCh fgELT_REDEFINE[];
|
---|
105 | static const XMLCh fgELT_KEY[];
|
---|
106 | static const XMLCh fgELT_KEYREF[];
|
---|
107 | static const XMLCh fgELT_LENGTH[];
|
---|
108 | static const XMLCh fgELT_MAXEXCLUSIVE[];
|
---|
109 | static const XMLCh fgELT_MAXINCLUSIVE[];
|
---|
110 | static const XMLCh fgELT_MAXLENGTH[];
|
---|
111 | static const XMLCh fgELT_MINEXCLUSIVE[];
|
---|
112 | static const XMLCh fgELT_MININCLUSIVE[];
|
---|
113 | static const XMLCh fgELT_MINLENGTH[];
|
---|
114 | static const XMLCh fgELT_NOTATION[];
|
---|
115 | static const XMLCh fgELT_PATTERN[];
|
---|
116 | static const XMLCh fgELT_PERIOD[];
|
---|
117 | static const XMLCh fgELT_TOTALDIGITS[];
|
---|
118 | static const XMLCh fgELT_FRACTIONDIGITS[];
|
---|
119 | static const XMLCh fgELT_SCHEMA[];
|
---|
120 | static const XMLCh fgELT_SELECTOR[];
|
---|
121 | static const XMLCh fgELT_SEQUENCE[];
|
---|
122 | static const XMLCh fgELT_SIMPLETYPE[];
|
---|
123 | static const XMLCh fgELT_UNION[];
|
---|
124 | static const XMLCh fgELT_LIST[];
|
---|
125 | static const XMLCh fgELT_UNIQUE[];
|
---|
126 | static const XMLCh fgELT_COMPLEXCONTENT[];
|
---|
127 | static const XMLCh fgELT_SIMPLECONTENT[];
|
---|
128 | static const XMLCh fgELT_RESTRICTION[];
|
---|
129 | static const XMLCh fgELT_EXTENSION[];
|
---|
130 | static const XMLCh fgATT_ABSTRACT[];
|
---|
131 | static const XMLCh fgATT_ATTRIBUTEFORMDEFAULT[];
|
---|
132 | static const XMLCh fgATT_BASE[];
|
---|
133 | static const XMLCh fgATT_ITEMTYPE[];
|
---|
134 | static const XMLCh fgATT_MEMBERTYPES[];
|
---|
135 | static const XMLCh fgATT_BLOCK[];
|
---|
136 | static const XMLCh fgATT_BLOCKDEFAULT[];
|
---|
137 | static const XMLCh fgATT_DEFAULT[];
|
---|
138 | static const XMLCh fgATT_ELEMENTFORMDEFAULT[];
|
---|
139 | static const XMLCh fgATT_SUBSTITUTIONGROUP[];
|
---|
140 | static const XMLCh fgATT_FINAL[];
|
---|
141 | static const XMLCh fgATT_FINALDEFAULT[];
|
---|
142 | static const XMLCh fgATT_FIXED[];
|
---|
143 | static const XMLCh fgATT_FORM[];
|
---|
144 | static const XMLCh fgATT_ID[];
|
---|
145 | static const XMLCh fgATT_MAXOCCURS[];
|
---|
146 | static const XMLCh fgATT_MINOCCURS[];
|
---|
147 | static const XMLCh fgATT_NAME[];
|
---|
148 | static const XMLCh fgATT_NAMESPACE[];
|
---|
149 | static const XMLCh fgATT_NILL[];
|
---|
150 | static const XMLCh fgATT_NILLABLE[];
|
---|
151 | static const XMLCh fgATT_PROCESSCONTENTS[];
|
---|
152 | static const XMLCh fgATT_REF[];
|
---|
153 | static const XMLCh fgATT_REFER[];
|
---|
154 | static const XMLCh fgATT_SCHEMALOCATION[];
|
---|
155 | static const XMLCh fgATT_SOURCE[];
|
---|
156 | static const XMLCh fgATT_SYSTEM[];
|
---|
157 | static const XMLCh fgATT_PUBLIC[];
|
---|
158 | static const XMLCh fgATT_TARGETNAMESPACE[];
|
---|
159 | static const XMLCh fgATT_TYPE[];
|
---|
160 | static const XMLCh fgATT_USE[];
|
---|
161 | static const XMLCh fgATT_VALUE[];
|
---|
162 | static const XMLCh fgATT_MIXED[];
|
---|
163 | static const XMLCh fgATT_VERSION[];
|
---|
164 | static const XMLCh fgATT_XPATH[];
|
---|
165 | static const XMLCh fgATTVAL_TWOPOUNDANY[];
|
---|
166 | static const XMLCh fgATTVAL_TWOPOUNDLOCAL[];
|
---|
167 | static const XMLCh fgATTVAL_TWOPOUNDOTHER[];
|
---|
168 | static const XMLCh fgATTVAL_TWOPOUNDTRAGETNAMESPACE[];
|
---|
169 | static const XMLCh fgATTVAL_POUNDALL[];
|
---|
170 | static const XMLCh fgATTVAL_BASE64[];
|
---|
171 | static const XMLCh fgATTVAL_BOOLEAN[];
|
---|
172 | static const XMLCh fgATTVAL_DEFAULT[];
|
---|
173 | static const XMLCh fgATTVAL_ELEMENTONLY[];
|
---|
174 | static const XMLCh fgATTVAL_EMPTY[];
|
---|
175 | static const XMLCh fgATTVAL_EXTENSION[];
|
---|
176 | static const XMLCh fgATTVAL_FALSE[];
|
---|
177 | static const XMLCh fgATTVAL_FIXED[];
|
---|
178 | static const XMLCh fgATTVAL_HEX[];
|
---|
179 | static const XMLCh fgATTVAL_ID[];
|
---|
180 | static const XMLCh fgATTVAL_LAX[];
|
---|
181 | static const XMLCh fgATTVAL_MAXLENGTH[];
|
---|
182 | static const XMLCh fgATTVAL_MINLENGTH[];
|
---|
183 | static const XMLCh fgATTVAL_MIXED[];
|
---|
184 | static const XMLCh fgATTVAL_NCNAME[];
|
---|
185 | static const XMLCh fgATTVAL_OPTIONAL[];
|
---|
186 | static const XMLCh fgATTVAL_PROHIBITED[];
|
---|
187 | static const XMLCh fgATTVAL_QNAME[];
|
---|
188 | static const XMLCh fgATTVAL_QUALIFIED[];
|
---|
189 | static const XMLCh fgATTVAL_REQUIRED[];
|
---|
190 | static const XMLCh fgATTVAL_RESTRICTION[];
|
---|
191 | static const XMLCh fgATTVAL_SKIP[];
|
---|
192 | static const XMLCh fgATTVAL_STRICT[];
|
---|
193 | static const XMLCh fgATTVAL_STRING[];
|
---|
194 | static const XMLCh fgATTVAL_TEXTONLY[];
|
---|
195 | static const XMLCh fgATTVAL_TIMEDURATION[];
|
---|
196 | static const XMLCh fgATTVAL_TRUE[];
|
---|
197 | static const XMLCh fgATTVAL_UNQUALIFIED[];
|
---|
198 | static const XMLCh fgATTVAL_URI[];
|
---|
199 | static const XMLCh fgATTVAL_URIREFERENCE[];
|
---|
200 | static const XMLCh fgATTVAL_SUBSTITUTIONGROUP[];
|
---|
201 | static const XMLCh fgATTVAL_SUBSTITUTION[];
|
---|
202 | static const XMLCh fgATTVAL_ANYTYPE[];
|
---|
203 | static const XMLCh fgWS_PRESERVE[];
|
---|
204 | static const XMLCh fgWS_COLLAPSE[];
|
---|
205 | static const XMLCh fgWS_REPLACE[];
|
---|
206 | static const XMLCh fgDT_STRING[];
|
---|
207 | static const XMLCh fgDT_TOKEN[];
|
---|
208 | static const XMLCh fgDT_LANGUAGE[];
|
---|
209 | static const XMLCh fgDT_NAME[];
|
---|
210 | static const XMLCh fgDT_NCNAME[];
|
---|
211 | static const XMLCh fgDT_INTEGER[];
|
---|
212 | static const XMLCh fgDT_DECIMAL[];
|
---|
213 | static const XMLCh fgDT_BOOLEAN[];
|
---|
214 | static const XMLCh fgDT_NONPOSITIVEINTEGER[];
|
---|
215 | static const XMLCh fgDT_NEGATIVEINTEGER[];
|
---|
216 | static const XMLCh fgDT_LONG[];
|
---|
217 | static const XMLCh fgDT_INT[];
|
---|
218 | static const XMLCh fgDT_SHORT[];
|
---|
219 | static const XMLCh fgDT_BYTE[];
|
---|
220 | static const XMLCh fgDT_NONNEGATIVEINTEGER[];
|
---|
221 | static const XMLCh fgDT_ULONG[];
|
---|
222 | static const XMLCh fgDT_UINT[];
|
---|
223 | static const XMLCh fgDT_USHORT[];
|
---|
224 | static const XMLCh fgDT_UBYTE[];
|
---|
225 | static const XMLCh fgDT_POSITIVEINTEGER[];
|
---|
226 | //datetime
|
---|
227 | static const XMLCh fgDT_DATETIME[];
|
---|
228 | static const XMLCh fgDT_DATE[];
|
---|
229 | static const XMLCh fgDT_TIME[];
|
---|
230 | static const XMLCh fgDT_DURATION[];
|
---|
231 | static const XMLCh fgDT_DAY[];
|
---|
232 | static const XMLCh fgDT_MONTH[];
|
---|
233 | static const XMLCh fgDT_MONTHDAY[];
|
---|
234 | static const XMLCh fgDT_YEAR[];
|
---|
235 | static const XMLCh fgDT_YEARMONTH[];
|
---|
236 |
|
---|
237 | static const XMLCh fgDT_BASE64BINARY[];
|
---|
238 | static const XMLCh fgDT_HEXBINARY[];
|
---|
239 | static const XMLCh fgDT_FLOAT[];
|
---|
240 | static const XMLCh fgDT_DOUBLE[];
|
---|
241 | static const XMLCh fgDT_URIREFERENCE[];
|
---|
242 | static const XMLCh fgDT_ANYURI[];
|
---|
243 | static const XMLCh fgDT_QNAME[];
|
---|
244 | static const XMLCh fgDT_NORMALIZEDSTRING[];
|
---|
245 | static const XMLCh fgDT_ANYSIMPLETYPE[];
|
---|
246 | static const XMLCh fgRegEx_XOption[];
|
---|
247 | static const XMLCh fgRedefIdentifier[];
|
---|
248 | static const int fgINT_MIN_VALUE;
|
---|
249 | static const int fgINT_MAX_VALUE;
|
---|
250 |
|
---|
251 | enum {
|
---|
252 | XSD_EMPTYSET = 0,
|
---|
253 | XSD_SUBSTITUTION = 1,
|
---|
254 | XSD_EXTENSION = 2,
|
---|
255 | XSD_RESTRICTION = 4,
|
---|
256 | XSD_LIST = 8,
|
---|
257 | XSD_UNION = 16,
|
---|
258 | XSD_ENUMERATION = 32
|
---|
259 | };
|
---|
260 |
|
---|
261 | // group orders
|
---|
262 | enum {
|
---|
263 | XSD_CHOICE = 0,
|
---|
264 | XSD_SEQUENCE= 1,
|
---|
265 | XSD_ALL = 2
|
---|
266 | };
|
---|
267 |
|
---|
268 | enum {
|
---|
269 | XSD_UNBOUNDED = -1,
|
---|
270 | XSD_NILLABLE = 1,
|
---|
271 | XSD_ABSTRACT = 2,
|
---|
272 | XSD_FIXED = 4
|
---|
273 | };
|
---|
274 |
|
---|
275 | private:
|
---|
276 | // -----------------------------------------------------------------------
|
---|
277 | // Unimplemented constructors and operators
|
---|
278 | // -----------------------------------------------------------------------
|
---|
279 | SchemaSymbols();
|
---|
280 | };
|
---|
281 |
|
---|
282 | XERCES_CPP_NAMESPACE_END
|
---|
283 |
|
---|
284 | #endif
|
---|
285 |
|
---|
286 | /**
|
---|
287 | * End of file SchemaSymbols.hpp
|
---|
288 | */
|
---|
289 |
|
---|