KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xerces > internal > impl > xs > SchemaSymbols


1 /*
2  * The Apache Software License, Version 1.1
3  *
4  *
5  * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
6  * reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  *
15  * 2. Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in
17  * the documentation and/or other materials provided with the
18  * distribution.
19  *
20  * 3. The end-user documentation included with the redistribution,
21  * if any, must include the following acknowledgment:
22  * "This product includes software developed by the
23  * Apache Software Foundation (http://www.apache.org/)."
24  * Alternately, this acknowledgment may appear in the software itself,
25  * if and wherever such third-party acknowledgments normally appear.
26  *
27  * 4. The names "Xerces" and "Apache Software Foundation" must
28  * not be used to endorse or promote products derived from this
29  * software without prior written permission. For written
30  * permission, please contact apache@apache.org.
31  *
32  * 5. Products derived from this software may not be called "Apache",
33  * nor may "Apache" appear in their name, without prior written
34  * permission of the Apache Software Foundation.
35  *
36  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
37  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
38  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
40  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
42  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
43  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
46  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
47  * SUCH DAMAGE.
48  * ====================================================================
49  *
50  * This software consists of voluntary contributions made by many
51  * individuals on behalf of the Apache Software Foundation and was
52  * originally based on software copyright (c) 1999, International
53  * Business Machines, Inc., http://www.apache.org. For more
54  * information on the Apache Software Foundation, please see
55  * <http://www.apache.org/>.
56  */

57
58 package com.sun.org.apache.xerces.internal.impl.xs;
59
60
61 /**
62  * Collection of symbols used to parse a Schema Grammar.
63  *
64  * @author jeffrey rodriguez
65  * @version $Id: SchemaSymbols.java,v 1.7 2003/05/08 20:11:56 elena Exp $
66  */

67 public final class SchemaSymbols {
68
69     // strings that's not added to the schema symbol table, because they
70
// are not symbols in the schema document.
71
// the validator can choose to add them by itself.
72

73     // the following strings (xsi:, xsd) will be added into the
74
// symbol table that comes with the parser
75

76     // xsi attributes: in validator
77
public static final String JavaDoc URI_XSI = "http://www.w3.org/2001/XMLSchema-instance".intern();
78     public static final String JavaDoc XSI_SCHEMALOCATION = "schemaLocation".intern();
79     public static final String JavaDoc XSI_NONAMESPACESCHEMALOCATION = "noNamespaceSchemaLocation".intern();
80     public static final String JavaDoc XSI_TYPE = "type".intern();
81     public static final String JavaDoc XSI_NIL = "nil".intern();
82
83     // schema namespace
84
public static final String JavaDoc URI_SCHEMAFORSCHEMA = "http://www.w3.org/2001/XMLSchema".intern();
85
86     // all possible schema element names
87
public static final String JavaDoc ELT_ALL = "all".intern();
88     public static final String JavaDoc ELT_ANNOTATION = "annotation".intern();
89     public static final String JavaDoc ELT_ANY = "any".intern();
90     public static final String JavaDoc ELT_ANYATTRIBUTE = "anyAttribute".intern();
91     public static final String JavaDoc ELT_APPINFO = "appinfo".intern();
92     public static final String JavaDoc ELT_ATTRIBUTE = "attribute".intern();
93     public static final String JavaDoc ELT_ATTRIBUTEGROUP = "attributeGroup".intern();
94     public static final String JavaDoc ELT_CHOICE = "choice".intern();
95     public static final String JavaDoc ELT_COMPLEXCONTENT = "complexContent".intern();
96     public static final String JavaDoc ELT_COMPLEXTYPE = "complexType".intern();
97     public static final String JavaDoc ELT_DOCUMENTATION = "documentation".intern();
98     public static final String JavaDoc ELT_ELEMENT = "element".intern();
99     public static final String JavaDoc ELT_ENUMERATION = "enumeration".intern();
100     public static final String JavaDoc ELT_EXTENSION = "extension".intern();
101     public static final String JavaDoc ELT_FIELD = "field".intern();
102     public static final String JavaDoc ELT_FRACTIONDIGITS = "fractionDigits".intern();
103     public static final String JavaDoc ELT_GROUP = "group".intern();
104     public static final String JavaDoc ELT_IMPORT = "import".intern();
105     public static final String JavaDoc ELT_INCLUDE = "include".intern();
106     public static final String JavaDoc ELT_KEY = "key".intern();
107     public static final String JavaDoc ELT_KEYREF = "keyref".intern();
108     public static final String JavaDoc ELT_LENGTH = "length".intern();
109     public static final String JavaDoc ELT_LIST = "list".intern();
110     public static final String JavaDoc ELT_MAXEXCLUSIVE = "maxExclusive".intern();
111     public static final String JavaDoc ELT_MAXINCLUSIVE = "maxInclusive".intern();
112     public static final String JavaDoc ELT_MAXLENGTH = "maxLength".intern();
113     public static final String JavaDoc ELT_MINEXCLUSIVE = "minExclusive".intern();
114     public static final String JavaDoc ELT_MININCLUSIVE = "minInclusive".intern();
115     public static final String JavaDoc ELT_MINLENGTH = "minLength".intern();
116     public static final String JavaDoc ELT_NOTATION = "notation".intern();
117     public static final String JavaDoc ELT_PATTERN = "pattern".intern();
118     public static final String JavaDoc ELT_REDEFINE = "redefine".intern();
119     public static final String JavaDoc ELT_RESTRICTION = "restriction".intern();
120     public static final String JavaDoc ELT_SCHEMA = "schema".intern();
121     public static final String JavaDoc ELT_SELECTOR = "selector".intern();
122     public static final String JavaDoc ELT_SEQUENCE = "sequence".intern();
123     public static final String JavaDoc ELT_SIMPLECONTENT = "simpleContent".intern();
124     public static final String JavaDoc ELT_SIMPLETYPE = "simpleType".intern();
125     public static final String JavaDoc ELT_TOTALDIGITS = "totalDigits".intern();
126     public static final String JavaDoc ELT_UNION = "union".intern();
127     public static final String JavaDoc ELT_UNIQUE = "unique".intern();
128     public static final String JavaDoc ELT_WHITESPACE = "whiteSpace".intern();
129
130     // all possible schema attribute names
131
public static final String JavaDoc ATT_ABSTRACT = "abstract".intern();
132     public static final String JavaDoc ATT_ATTRIBUTEFORMDEFAULT = "attributeFormDefault".intern();
133     public static final String JavaDoc ATT_BASE = "base".intern();
134     public static final String JavaDoc ATT_BLOCK = "block".intern();
135     public static final String JavaDoc ATT_BLOCKDEFAULT = "blockDefault".intern();
136     public static final String JavaDoc ATT_DEFAULT = "default".intern();
137     public static final String JavaDoc ATT_ELEMENTFORMDEFAULT = "elementFormDefault".intern();
138     public static final String JavaDoc ATT_FINAL = "final".intern();
139     public static final String JavaDoc ATT_FINALDEFAULT = "finalDefault".intern();
140     public static final String JavaDoc ATT_FIXED = "fixed".intern();
141     public static final String JavaDoc ATT_FORM = "form".intern();
142     public static final String JavaDoc ATT_ID = "id".intern();
143     public static final String JavaDoc ATT_ITEMTYPE = "itemType".intern();
144     public static final String JavaDoc ATT_MAXOCCURS = "maxOccurs".intern();
145     public static final String JavaDoc ATT_MEMBERTYPES = "memberTypes".intern();
146     public static final String JavaDoc ATT_MINOCCURS = "minOccurs".intern();
147     public static final String JavaDoc ATT_MIXED = "mixed".intern();
148     public static final String JavaDoc ATT_NAME = "name".intern();
149     public static final String JavaDoc ATT_NAMESPACE = "namespace".intern();
150     public static final String JavaDoc ATT_NILLABLE = "nillable".intern();
151     public static final String JavaDoc ATT_PROCESSCONTENTS = "processContents".intern();
152     public static final String JavaDoc ATT_REF = "ref".intern();
153     public static final String JavaDoc ATT_REFER = "refer".intern();
154     public static final String JavaDoc ATT_SCHEMALOCATION = "schemaLocation".intern();
155     public static final String JavaDoc ATT_SOURCE = "source".intern();
156     public static final String JavaDoc ATT_SUBSTITUTIONGROUP = "substitutionGroup".intern();
157     public static final String JavaDoc ATT_SYSTEM = "system".intern();
158     public static final String JavaDoc ATT_PUBLIC = "public".intern();
159     public static final String JavaDoc ATT_TARGETNAMESPACE = "targetNamespace".intern();
160     public static final String JavaDoc ATT_TYPE = "type".intern();
161     public static final String JavaDoc ATT_USE = "use".intern();
162     public static final String JavaDoc ATT_VALUE = "value".intern();
163     public static final String JavaDoc ATT_VERSION = "version".intern();
164     public static final String JavaDoc ATT_XPATH = "xpath".intern();
165
166     // all possible schema attribute values
167
public static final String JavaDoc ATTVAL_TWOPOUNDANY = "##any";
168     public static final String JavaDoc ATTVAL_TWOPOUNDLOCAL = "##local";
169     public static final String JavaDoc ATTVAL_TWOPOUNDOTHER = "##other";
170     public static final String JavaDoc ATTVAL_TWOPOUNDTARGETNS = "##targetNamespace";
171     public static final String JavaDoc ATTVAL_POUNDALL = "#all";
172     public static final String JavaDoc ATTVAL_FALSE_0 = "0";
173     public static final String JavaDoc ATTVAL_TRUE_1 = "1";
174     public static final String JavaDoc ATTVAL_ANYSIMPLETYPE = "anySimpleType";
175     public static final String JavaDoc ATTVAL_ANYTYPE = "anyType";
176     public static final String JavaDoc ATTVAL_ANYURI = "anyURI";
177     public static final String JavaDoc ATTVAL_BASE64BINARY = "base64Binary";
178     public static final String JavaDoc ATTVAL_BOOLEAN = "boolean";
179     public static final String JavaDoc ATTVAL_BYTE = "byte";
180     public static final String JavaDoc ATTVAL_COLLAPSE = "collapse";
181     public static final String JavaDoc ATTVAL_DATE = "date";
182     public static final String JavaDoc ATTVAL_DATETIME = "dateTime";
183     public static final String JavaDoc ATTVAL_DAY = "gDay";
184     public static final String JavaDoc ATTVAL_DECIMAL = "decimal";
185     public static final String JavaDoc ATTVAL_DOUBLE = "double";
186     public static final String JavaDoc ATTVAL_DURATION = "duration";
187     public static final String JavaDoc ATTVAL_ENTITY = "ENTITY";
188     public static final String JavaDoc ATTVAL_ENTITIES = "ENTITIES";
189     public static final String JavaDoc ATTVAL_EXTENSION = "extension";
190     public static final String JavaDoc ATTVAL_FALSE = "false";
191     public static final String JavaDoc ATTVAL_FLOAT = "float";
192     public static final String JavaDoc ATTVAL_HEXBINARY = "hexBinary";
193     public static final String JavaDoc ATTVAL_ID = "ID";
194     public static final String JavaDoc ATTVAL_IDREF = "IDREF";
195     public static final String JavaDoc ATTVAL_IDREFS = "IDREFS";
196     public static final String JavaDoc ATTVAL_INT = "int";
197     public static final String JavaDoc ATTVAL_INTEGER = "integer";
198     public static final String JavaDoc ATTVAL_LANGUAGE = "language";
199     public static final String JavaDoc ATTVAL_LAX = "lax";
200     public static final String JavaDoc ATTVAL_LIST = "list";
201     public static final String JavaDoc ATTVAL_LONG = "long";
202     public static final String JavaDoc ATTVAL_NAME = "Name";
203     public static final String JavaDoc ATTVAL_NEGATIVEINTEGER = "negativeInteger";
204     public static final String JavaDoc ATTVAL_MONTH = "gMonth";
205     public static final String JavaDoc ATTVAL_MONTHDAY = "gMonthDay";
206     public static final String JavaDoc ATTVAL_NCNAME = "NCName";
207     public static final String JavaDoc ATTVAL_NMTOKEN = "NMTOKEN";
208     public static final String JavaDoc ATTVAL_NMTOKENS = "NMTOKENS";
209     public static final String JavaDoc ATTVAL_NONNEGATIVEINTEGER= "nonNegativeInteger";
210     public static final String JavaDoc ATTVAL_NONPOSITIVEINTEGER= "nonPositiveInteger";
211     public static final String JavaDoc ATTVAL_NORMALIZEDSTRING = "normalizedString";
212     public static final String JavaDoc ATTVAL_NOTATION = "NOTATION";
213     public static final String JavaDoc ATTVAL_OPTIONAL = "optional";
214     public static final String JavaDoc ATTVAL_POSITIVEINTEGER = "positiveInteger";
215     public static final String JavaDoc ATTVAL_PRESERVE = "preserve";
216     public static final String JavaDoc ATTVAL_PROHIBITED = "prohibited";
217     public static final String JavaDoc ATTVAL_QNAME = "QName";
218     public static final String JavaDoc ATTVAL_QUALIFIED = "qualified";
219     public static final String JavaDoc ATTVAL_REPLACE = "replace";
220     public static final String JavaDoc ATTVAL_REQUIRED = "required";
221     public static final String JavaDoc ATTVAL_RESTRICTION = "restriction";
222     public static final String JavaDoc ATTVAL_SHORT = "short";
223     public static final String JavaDoc ATTVAL_SKIP = "skip";
224     public static final String JavaDoc ATTVAL_STRICT = "strict";
225     public static final String JavaDoc ATTVAL_STRING = "string";
226     public static final String JavaDoc ATTVAL_SUBSTITUTION = "substitution";
227     public static final String JavaDoc ATTVAL_TIME = "time";
228     public static final String JavaDoc ATTVAL_TOKEN = "token";
229     public static final String JavaDoc ATTVAL_TRUE = "true";
230     public static final String JavaDoc ATTVAL_UNBOUNDED = "unbounded";
231     public static final String JavaDoc ATTVAL_UNION = "union";
232     public static final String JavaDoc ATTVAL_UNQUALIFIED = "unqualified";
233     public static final String JavaDoc ATTVAL_UNSIGNEDBYTE = "unsignedByte";
234     public static final String JavaDoc ATTVAL_UNSIGNEDINT = "unsignedInt";
235     public static final String JavaDoc ATTVAL_UNSIGNEDLONG = "unsignedLong";
236     public static final String JavaDoc ATTVAL_UNSIGNEDSHORT = "unsignedShort";
237     public static final String JavaDoc ATTVAL_YEAR = "gYear";
238     public static final String JavaDoc ATTVAL_YEARMONTH = "gYearMonth";
239
240     // form qualified/unqualified
241
public static final short FORM_UNQUALIFIED = 0;
242     public static final short FORM_QUALIFIED = 1;
243
244     // attribute use
245
public static final short USE_OPTIONAL = 0;
246     public static final short USE_REQUIRED = 1;
247     public static final short USE_PROHIBITED = 2;
248     
249     // maxOccurs = "unbounded"
250
public static final int OCCURRENCE_UNBOUNDED = -1;
251
252 }
253
Popular Tags