KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > xs > SchemaSymbols


1 /*
2  * Copyright 2000-2002,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 package org.apache.xerces.impl.xs;
18
19
20 /**
21  * Collection of symbols used to parse a Schema Grammar.
22  *
23  * @xerces.internal
24  *
25  * @author jeffrey rodriguez
26  * @version $Id: SchemaSymbols.java,v 1.10 2004/10/29 05:05:13 mrglavas Exp $
27  */

28 public final class SchemaSymbols {
29
30     // strings that's not added to the schema symbol table, because they
31
// are not symbols in the schema document.
32
// the validator can choose to add them by itself.
33

34     // the following strings (xsi:, xsd) will be added into the
35
// symbol table that comes with the parser
36

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