source: NonGTP/Xerces/xerces/include/xercesc/validators/schema/SchemaSymbols.hpp @ 358

Revision 358, 9.0 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 2001,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Id: SchemaSymbols.hpp,v 1.7 2004/09/08 13:56:57 peiyongz Exp $
19 */
20
21#if !defined(SCHEMASYMBOLS_HPP)
22#define SCHEMASYMBOLS_HPP
23
24#include <xercesc/util/XercesDefs.hpp>
25
26XERCES_CPP_NAMESPACE_BEGIN
27
28/*
29 * Collection of symbols used to parse a Schema Grammar
30 */
31
32class VALIDATORS_EXPORT SchemaSymbols
33{
34public :
35    // -----------------------------------------------------------------------
36    // Constant data
37    // -----------------------------------------------------------------------
38    static const XMLCh fgURI_XSI[];
39    static const XMLCh fgURI_SCHEMAFORSCHEMA[];
40    static const XMLCh fgXSI_SCHEMALOCACTION[];
41    static const XMLCh fgXSI_NONAMESPACESCHEMALOCACTION[];
42    static const XMLCh fgXSI_TYPE[];
43    static const XMLCh fgELT_ALL[];
44    static const XMLCh fgELT_ANNOTATION[];
45    static const XMLCh fgELT_ANY[];
46    static const XMLCh fgELT_WILDCARD[];
47    static const XMLCh fgELT_ANYATTRIBUTE[];
48    static const XMLCh fgELT_APPINFO[];
49    static const XMLCh fgELT_ATTRIBUTE[];
50    static const XMLCh fgELT_ATTRIBUTEGROUP[];
51    static const XMLCh fgELT_CHOICE[];
52    static const XMLCh fgELT_COMPLEXTYPE[];
53    static const XMLCh fgELT_CONTENT[];
54    static const XMLCh fgELT_DOCUMENTATION[];
55    static const XMLCh fgELT_DURATION[];
56    static const XMLCh fgELT_ELEMENT[];
57    static const XMLCh fgELT_ENCODING[];
58    static const XMLCh fgELT_ENUMERATION[];
59    static const XMLCh fgELT_FIELD[];
60    static const XMLCh fgELT_WHITESPACE[];
61    static const XMLCh fgELT_GROUP[];
62    static const XMLCh fgELT_IMPORT[];
63    static const XMLCh fgELT_INCLUDE[];
64    static const XMLCh fgELT_REDEFINE[];
65    static const XMLCh fgELT_KEY[];
66    static const XMLCh fgELT_KEYREF[];
67    static const XMLCh fgELT_LENGTH[];
68    static const XMLCh fgELT_MAXEXCLUSIVE[];
69    static const XMLCh fgELT_MAXINCLUSIVE[];
70    static const XMLCh fgELT_MAXLENGTH[];
71    static const XMLCh fgELT_MINEXCLUSIVE[];
72    static const XMLCh fgELT_MININCLUSIVE[];
73    static const XMLCh fgELT_MINLENGTH[];
74    static const XMLCh fgELT_NOTATION[];
75    static const XMLCh fgELT_PATTERN[];
76    static const XMLCh fgELT_PERIOD[];
77    static const XMLCh fgELT_TOTALDIGITS[];
78    static const XMLCh fgELT_FRACTIONDIGITS[];
79    static const XMLCh fgELT_SCHEMA[];
80    static const XMLCh fgELT_SELECTOR[];
81    static const XMLCh fgELT_SEQUENCE[];
82    static const XMLCh fgELT_SIMPLETYPE[];
83    static const XMLCh fgELT_UNION[];
84    static const XMLCh fgELT_LIST[];
85    static const XMLCh fgELT_UNIQUE[];
86    static const XMLCh fgELT_COMPLEXCONTENT[];
87    static const XMLCh fgELT_SIMPLECONTENT[];
88    static const XMLCh fgELT_RESTRICTION[];
89    static const XMLCh fgELT_EXTENSION[];
90    static const XMLCh fgATT_ABSTRACT[];
91    static const XMLCh fgATT_ATTRIBUTEFORMDEFAULT[];
92    static const XMLCh fgATT_BASE[];
93    static const XMLCh fgATT_ITEMTYPE[];
94    static const XMLCh fgATT_MEMBERTYPES[];
95    static const XMLCh fgATT_BLOCK[];
96    static const XMLCh fgATT_BLOCKDEFAULT[];
97    static const XMLCh fgATT_DEFAULT[];
98    static const XMLCh fgATT_ELEMENTFORMDEFAULT[];
99    static const XMLCh fgATT_SUBSTITUTIONGROUP[];
100    static const XMLCh fgATT_FINAL[];
101    static const XMLCh fgATT_FINALDEFAULT[];
102    static const XMLCh fgATT_FIXED[];
103    static const XMLCh fgATT_FORM[];
104    static const XMLCh fgATT_ID[];
105    static const XMLCh fgATT_MAXOCCURS[];
106    static const XMLCh fgATT_MINOCCURS[];
107    static const XMLCh fgATT_NAME[];
108    static const XMLCh fgATT_NAMESPACE[];
109    static const XMLCh fgATT_NILL[];
110    static const XMLCh fgATT_NILLABLE[];
111    static const XMLCh fgATT_PROCESSCONTENTS[];
112    static const XMLCh fgATT_REF[];
113    static const XMLCh fgATT_REFER[];
114    static const XMLCh fgATT_SCHEMALOCATION[];
115    static const XMLCh fgATT_SOURCE[];
116    static const XMLCh fgATT_SYSTEM[];
117    static const XMLCh fgATT_PUBLIC[];
118    static const XMLCh fgATT_TARGETNAMESPACE[];
119    static const XMLCh fgATT_TYPE[];
120    static const XMLCh fgATT_USE[];
121    static const XMLCh fgATT_VALUE[];
122    static const XMLCh fgATT_MIXED[];
123    static const XMLCh fgATT_VERSION[];
124    static const XMLCh fgATT_XPATH[];
125    static const XMLCh fgATTVAL_TWOPOUNDANY[];
126    static const XMLCh fgATTVAL_TWOPOUNDLOCAL[];
127    static const XMLCh fgATTVAL_TWOPOUNDOTHER[];
128    static const XMLCh fgATTVAL_TWOPOUNDTRAGETNAMESPACE[];
129    static const XMLCh fgATTVAL_POUNDALL[];
130    static const XMLCh fgATTVAL_BASE64[];
131    static const XMLCh fgATTVAL_BOOLEAN[];
132    static const XMLCh fgATTVAL_DEFAULT[];
133    static const XMLCh fgATTVAL_ELEMENTONLY[];
134    static const XMLCh fgATTVAL_EMPTY[];
135    static const XMLCh fgATTVAL_EXTENSION[];
136    static const XMLCh fgATTVAL_FALSE[];
137    static const XMLCh fgATTVAL_FIXED[];
138    static const XMLCh fgATTVAL_HEX[];
139    static const XMLCh fgATTVAL_ID[];
140    static const XMLCh fgATTVAL_LAX[];
141    static const XMLCh fgATTVAL_MAXLENGTH[];
142    static const XMLCh fgATTVAL_MINLENGTH[];
143    static const XMLCh fgATTVAL_MIXED[];
144    static const XMLCh fgATTVAL_NCNAME[];
145    static const XMLCh fgATTVAL_OPTIONAL[];
146    static const XMLCh fgATTVAL_PROHIBITED[];
147    static const XMLCh fgATTVAL_QNAME[];
148    static const XMLCh fgATTVAL_QUALIFIED[];
149    static const XMLCh fgATTVAL_REQUIRED[];
150    static const XMLCh fgATTVAL_RESTRICTION[];
151    static const XMLCh fgATTVAL_SKIP[];
152    static const XMLCh fgATTVAL_STRICT[];
153    static const XMLCh fgATTVAL_STRING[];
154    static const XMLCh fgATTVAL_TEXTONLY[];
155    static const XMLCh fgATTVAL_TIMEDURATION[];
156    static const XMLCh fgATTVAL_TRUE[];
157    static const XMLCh fgATTVAL_UNQUALIFIED[];
158    static const XMLCh fgATTVAL_URI[];
159    static const XMLCh fgATTVAL_URIREFERENCE[];
160    static const XMLCh fgATTVAL_SUBSTITUTIONGROUP[];
161    static const XMLCh fgATTVAL_SUBSTITUTION[];
162    static const XMLCh fgATTVAL_ANYTYPE[];
163    static const XMLCh fgWS_PRESERVE[];
164    static const XMLCh fgWS_COLLAPSE[];
165    static const XMLCh fgWS_REPLACE[];
166    static const XMLCh fgDT_STRING[];
167    static const XMLCh fgDT_TOKEN[];
168    static const XMLCh fgDT_LANGUAGE[];
169    static const XMLCh fgDT_NAME[];
170    static const XMLCh fgDT_NCNAME[];
171    static const XMLCh fgDT_INTEGER[];
172    static const XMLCh fgDT_DECIMAL[];
173    static const XMLCh fgDT_BOOLEAN[];
174    static const XMLCh fgDT_NONPOSITIVEINTEGER[];
175    static const XMLCh fgDT_NEGATIVEINTEGER[];
176    static const XMLCh fgDT_LONG[];
177    static const XMLCh fgDT_INT[];
178    static const XMLCh fgDT_SHORT[];
179    static const XMLCh fgDT_BYTE[];
180        static const XMLCh fgDT_NONNEGATIVEINTEGER[];
181    static const XMLCh fgDT_ULONG[];
182    static const XMLCh fgDT_UINT[];
183        static const XMLCh fgDT_USHORT[];
184        static const XMLCh fgDT_UBYTE[];
185    static const XMLCh fgDT_POSITIVEINTEGER[];
186//datetime
187    static const XMLCh fgDT_DATETIME[];
188    static const XMLCh fgDT_DATE[];
189        static const XMLCh fgDT_TIME[];
190    static const XMLCh fgDT_DURATION[];
191    static const XMLCh fgDT_DAY[];
192    static const XMLCh fgDT_MONTH[];
193    static const XMLCh fgDT_MONTHDAY[];
194    static const XMLCh fgDT_YEAR[];
195    static const XMLCh fgDT_YEARMONTH[];
196
197    static const XMLCh fgDT_BASE64BINARY[];
198    static const XMLCh fgDT_HEXBINARY[];
199    static const XMLCh fgDT_FLOAT[];
200    static const XMLCh fgDT_DOUBLE[];
201    static const XMLCh fgDT_URIREFERENCE[];
202    static const XMLCh fgDT_ANYURI[];
203    static const XMLCh fgDT_QNAME[];
204    static const XMLCh fgDT_NORMALIZEDSTRING[];
205    static const XMLCh fgDT_ANYSIMPLETYPE[];
206    static const XMLCh fgRegEx_XOption[];
207    static const XMLCh fgRedefIdentifier[];
208    static const int   fgINT_MIN_VALUE;
209    static const int   fgINT_MAX_VALUE;
210
211    enum {
212        XSD_EMPTYSET = 0,
213        XSD_SUBSTITUTION = 1,
214        XSD_EXTENSION = 2,
215        XSD_RESTRICTION = 4,
216        XSD_LIST = 8,
217        XSD_UNION = 16,
218        XSD_ENUMERATION = 32
219    };
220
221    // group orders
222    enum {
223        XSD_CHOICE = 0,
224        XSD_SEQUENCE= 1,
225        XSD_ALL = 2
226    };
227
228    enum {
229        XSD_UNBOUNDED = -1,
230        XSD_NILLABLE = 1,
231        XSD_ABSTRACT = 2,
232        XSD_FIXED = 4
233    };
234
235private:
236    // -----------------------------------------------------------------------
237    //  Unimplemented constructors and operators
238    // -----------------------------------------------------------------------
239    SchemaSymbols();
240};
241
242XERCES_CPP_NAMESPACE_END
243
244#endif
245
246/**
247  * End of file SchemaSymbols.hpp
248  */
249
Note: See TracBrowser for help on using the repository browser.