KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > apache > xerces > validators > schema > SchemaSymbols


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

58
59 package org.enhydra.apache.xerces.validators.schema;
60
61
62 /**
63  * Collection of symbols used to parse a Schema Grammar
64  * We have temporary references to this class from
65  * SchemaImporter but we will be moving all the
66  * SchemaImporter functionality to the Grammar classes
67  *
68  * @author jeffrey rodriguez
69  */

70 public final class SchemaSymbols {
71     public static final String JavaDoc URI_XSI = "http://www.w3.org/2001/XMLSchema-instance";
72     public static final String JavaDoc URI_SCHEMAFORSCHEMA = "http://www.w3.org/2001/XMLSchema";
73     public static final String JavaDoc XSI_SCHEMALOCACTION = "schemaLocation";
74     public static final String JavaDoc XSI_NONAMESPACESCHEMALOCACTION = "noNamespaceSchemaLocation";
75     public static final String JavaDoc XSI_TYPE = "type";
76
77     public static final String JavaDoc ELT_ALL = "all";
78     public static final String JavaDoc ELT_ANNOTATION = "annotation";
79     public static final String JavaDoc ELT_APPINFO = "appinfo";
80     public static final String JavaDoc ELT_DOCUMENTATION = "documentation";
81     public static final String JavaDoc ELT_ANY = "any";
82     public static final String JavaDoc ELT_WILDCARD = "any";
83     public static final String JavaDoc ELT_ANYATTRIBUTE = "anyAttribute";
84     public static final String JavaDoc ELT_ATTRIBUTE = "attribute";
85     public static final String JavaDoc ELT_ATTRIBUTEGROUP = "attributeGroup";
86     public static final String JavaDoc ELT_CHOICE = "choice";
87     public static final String JavaDoc ELT_COMPLEXTYPE = "complexType";
88     public static final String JavaDoc ELT_CONTENT = "content";
89     public static final String JavaDoc ELT_DURATION = "duration";
90     public static final String JavaDoc ELT_ELEMENT = "element";
91     public static final String JavaDoc ELT_ENUMERATION = "enumeration";
92     public static final String JavaDoc ELT_FIELD = "field";
93     public static final String JavaDoc ELT_WHITESPACE = "whiteSpace";
94     public static final String JavaDoc ELT_GROUP = "group";
95     public static final String JavaDoc ELT_IMPORT = "import";
96     public static final String JavaDoc ELT_INCLUDE = "include";
97     public static final String JavaDoc ELT_REDEFINE = "redefine";
98     public static final String JavaDoc ELT_KEY = "key";
99     public static final String JavaDoc ELT_KEYREF = "keyref";
100     public static final String JavaDoc ELT_LENGTH = "length";
101     public static final String JavaDoc ELT_MAXEXCLUSIVE = "maxExclusive";
102     public static final String JavaDoc ELT_MAXINCLUSIVE = "maxInclusive";
103     public static final String JavaDoc ELT_MAXLENGTH = "maxLength";
104     public static final String JavaDoc ELT_MINEXCLUSIVE = "minExclusive";
105     public static final String JavaDoc ELT_MININCLUSIVE = "minInclusive";
106     public static final String JavaDoc ELT_MINLENGTH = "minLength";
107     public static final String JavaDoc ELT_NOTATION = "notation";
108     public static final String JavaDoc ELT_PATTERN = "pattern";
109     public static final String JavaDoc ELT_PERIOD = "period";
110     public static final String JavaDoc ELT_TOTALDIGITS = "totalDigits";
111     public static final String JavaDoc ELT_FRACTIONDIGITS = "fractionDigits";
112     public static final String JavaDoc ELT_SCHEMA = "schema";
113     public static final String JavaDoc ELT_SELECTOR = "selector";
114     public static final String JavaDoc ELT_SEQUENCE = "sequence";
115     public static final String JavaDoc ELT_SIMPLETYPE = "simpleType";
116     public static final String JavaDoc ELT_UNION = "union";
117     public static final String JavaDoc ELT_LIST = "list";
118     public static final String JavaDoc ELT_UNIQUE = "unique";
119     public static final String JavaDoc ELT_COMPLEXCONTENT = "complexContent";
120     public static final String JavaDoc ELT_SIMPLECONTENT = "simpleContent";
121     public static final String JavaDoc ELT_RESTRICTION = "restriction";
122     public static final String JavaDoc ELT_EXTENSION = "extension";
123     public static final String JavaDoc ATT_ABSTRACT = "abstract";
124     public static final String JavaDoc ATT_ATTRIBUTEFORMDEFAULT = "attributeFormDefault";
125     public static final String JavaDoc ATT_BASE = "base";
126     public static final String JavaDoc ATT_ITEMTYPE = "itemType";
127     public static final String JavaDoc ATT_MEMBERTYPES = "memberTypes";
128     public static final String JavaDoc ATT_BLOCK = "block";
129     public static final String JavaDoc ATT_BLOCKDEFAULT = "blockDefault";
130     public static final String JavaDoc ATT_CONTENT = "content";
131     public static final String JavaDoc ATT_DEFAULT = "default";
132     public static final String JavaDoc ATT_DERIVEDBY = "derivedBy";
133     public static final String JavaDoc ATT_ELEMENTFORMDEFAULT = "elementFormDefault";
134     public static final String JavaDoc ATT_SUBSTITUTIONGROUP = "substitutionGroup";
135     public static final String JavaDoc ATT_FINAL = "final";
136     public static final String JavaDoc ATT_FINALDEFAULT = "finalDefault";
137     public static final String JavaDoc ATT_FIXED = "fixed";
138     public static final String JavaDoc ATT_FORM = "form";
139     public static final String JavaDoc ATT_ID = "id";
140     public static final String JavaDoc ATT_MAXOCCURS = "maxOccurs";
141     public static final String JavaDoc ATT_MINOCCURS = "minOccurs";
142     public static final String JavaDoc ATT_NAME = "name";
143     public static final String JavaDoc ATT_NAMESPACE = "namespace";
144     public static final String JavaDoc ATT_NILLABLE = "nillable";
145     public static final String JavaDoc ATT_NIL = "nil";
146     public static final String JavaDoc ATT_PROCESSCONTENTS = "processContents";
147     public static final String JavaDoc ATT_REF = "ref";
148     public static final String JavaDoc ATT_REFER = "refer";
149     public static final String JavaDoc ATT_SCHEMALOCATION = "schemaLocation";
150     public static final String JavaDoc ATT_SOURCE = "source";
151     public static final String JavaDoc ATT_SYSTEM = "system";
152     public static final String JavaDoc ATT_PUBLIC = "public";
153     public static final String JavaDoc ATT_TARGETNAMESPACE = "targetNamespace";
154     public static final String JavaDoc ATT_TYPE = "type";
155     public static final String JavaDoc ATT_USE = "use";
156     public static final String JavaDoc ATT_VALUE = "value";
157     public static final String JavaDoc ATT_MIXED = "mixed";
158     public static final String JavaDoc ATT_VERSION = "version";
159     public static final String JavaDoc ATT_XPATH = "xpath";
160     public static final String JavaDoc ATT_PRESERVE = "preserve";
161     public static final String JavaDoc ATT_REPLACE = "replace";
162     public static final String JavaDoc ATT_COLLAPSE = "collapse";
163     public static final String JavaDoc ATTVAL_TWOPOUNDANY = "##any";
164     public static final String JavaDoc ATTVAL_TWOPOUNDLOCAL = "##local";
165     public static final String JavaDoc ATTVAL_TWOPOUNDOTHER = "##other";
166     public static final String JavaDoc ATTVAL_TWOPOUNDTARGETNS = "##targetNamespace";
167     public static final String JavaDoc ATTVAL_POUNDALL = "#all";
168     public static final String JavaDoc ATTVAL_BOOLEAN = "boolean";
169     public static final String JavaDoc ATTVAL_DEFAULT = "default";
170     public static final String JavaDoc ATTVAL_ELEMENTONLY = "elementOnly";
171     public static final String JavaDoc ATTVAL_EMPTY = "empty";
172     public static final String JavaDoc ATTVAL_EXTENSION = "extension";
173     public static final String JavaDoc ATTVAL_FALSE = "false";
174     public static final String JavaDoc ATTVAL_FALSE_0 = "0";
175     public static final String JavaDoc ATTVAL_FIXED = "fixed";
176     public static final String JavaDoc ATTVAL_ID = "ID";
177     public static final String JavaDoc ATTVAL_LAX = "lax";
178     public static final String JavaDoc ATTVAL_MAXLENGTH = "maxLength";
179     public static final String JavaDoc ATTVAL_MINLENGTH = "minLength";
180     public static final String JavaDoc ATTVAL_MIXED = "mixed";
181     public static final String JavaDoc ATTVAL_NCNAME = "NCName";
182     public static final String JavaDoc ATTVAL_OPTIONAL = "optional";
183     public static final String JavaDoc ATTVAL_PROHIBITED = "prohibited";
184     public static final String JavaDoc ATTVAL_QNAME = "QName";
185     public static final String JavaDoc ATTVAL_QUALIFIED = "qualified";
186     public static final String JavaDoc ATTVAL_REQUIRED = "required";
187     public static final String JavaDoc ATTVAL_RESTRICTION = "restriction";
188     public static final String JavaDoc ATTVAL_SKIP = "skip";
189     public static final String JavaDoc ATTVAL_STRICT = "strict";
190     public static final String JavaDoc ATTVAL_STRING = "string";
191     public static final String JavaDoc ATTVAL_TEXTONLY = "textOnly";
192     public static final String JavaDoc ATTVAL_TIMEDURATION = "timeDuration";
193     public static final String JavaDoc ATTVAL_TRUE = "true";
194     public static final String JavaDoc ATTVAL_TRUE_1 = "1";
195     public static final String JavaDoc ATTVAL_UNBOUNDED = "unbounded";
196     public static final String JavaDoc ATTVAL_UNQUALIFIED = "unqualified";
197     public static final String JavaDoc ATTVAL_ANYURI = "anyURI";
198     public static final String JavaDoc ATTVAL_TOKEN = "token";
199     public static final String JavaDoc ATTVAL_SUBSTITUTIONGROUP = "substitutionGroup";
200     public static final String JavaDoc ATTVAL_SUBSTITUTION = "substitution";
201
202
203     public static final int EMPTY_SET = 0;
204     public static final int EXTENSION = 1;
205     public static final int RESTRICTION = 2;
206     public static final int UNION = 4;
207     public static final int LIST = 8;
208     public static final int ENUMERATION = 16;
209     public static final int SUBSTITUTION = 32;
210
211     public static final int CHOICE = 0; // group orders
212
public static final int SEQUENCE = 1; // group orders
213
public static final int ALL = 2; // group orders
214

215     public static final int INFINITY = -1; // used for maxOccurs
216

217     public static final int NILLABLE = 1;
218     public static final int ABSTRACT = 2;
219     public static final int FIXED = 4;
220
221     public static final int OCCURRENCE_UNBOUNDED = -2;
222
223 }
224
Popular Tags