KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * The Apache Software License, Version 1.1
3  *
4  *
5  * Copyright (c) 2003 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) 2003, 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.xs;
59
60 /**
61  * This interface defines constants used by this specification.
62  */

63 public interface XSConstants {
64     // XML Schema Components
65
/**
66      * The object describes an attribute declaration.
67      */

68     public static final short ATTRIBUTE_DECLARATION = 1;
69     /**
70      * The object describes an element declaration.
71      */

72     public static final short ELEMENT_DECLARATION = 2;
73     /**
74      * The object describes a complex type or simple type definition.
75      */

76     public static final short TYPE_DEFINITION = 3;
77     /**
78      * The object describes an attribute use definition.
79      */

80     public static final short ATTRIBUTE_USE = 4;
81     /**
82      * The object describes an attribute group definition.
83      */

84     public static final short ATTRIBUTE_GROUP = 5;
85     /**
86      * The object describes a model group definition.
87      */

88     public static final short MODEL_GROUP_DEFINITION = 6;
89     /**
90      * A model group.
91      */

92     public static final short MODEL_GROUP = 7;
93     /**
94      * The object describes a particle.
95      */

96     public static final short PARTICLE = 8;
97     /**
98      * The object describes a wildcard.
99      */

100     public static final short WILDCARD = 9;
101     /**
102      * The object describes an identity constraint definition.
103      */

104     public static final short IDENTITY_CONSTRAINT = 10;
105     /**
106      * The object describes a notation declaration.
107      */

108     public static final short NOTATION_DECLARATION = 11;
109     /**
110      * The object describes an annotation.
111      */

112     public static final short ANNOTATION = 12;
113     /**
114      * The object describes a constraining facet. Note: this object does not
115      * describe pattern and enumeration facets.
116      */

117     public static final short FACET = 13;
118     /**
119      * The object describes enumeration and pattern facets.
120      */

121     public static final short MULTIVALUE_FACET = 14;
122
123     // Derivation constants
124
/**
125      * No constraint is available.
126      */

127     public static final short DERIVATION_NONE = 0;
128     /**
129      * <code>XSTypeDefinition</code> final set or
130      * <code>XSElementDeclaration</code> disallowed substitution group.
131      */

132     public static final short DERIVATION_EXTENSION = 1;
133     /**
134      * <code>XSTypeDefinition</code> final set or
135      * <code>XSElementDeclaration</code> disallowed substitution group.
136      */

137     public static final short DERIVATION_RESTRICTION = 2;
138     /**
139      * <code>XSTypeDefinition</code> final set.
140      */

141     public static final short DERIVATION_SUBSTITUTION = 4;
142     /**
143      * <code>XSTypeDefinition</code> final set.
144      */

145     public static final short DERIVATION_UNION = 8;
146     /**
147      * <code>XSTypeDefinition</code> final set.
148      */

149     public static final short DERIVATION_LIST = 16;
150
151     // Scope
152
/**
153      * The scope of a declaration within named model groups or attribute
154      * groups is <code>absent</code>. The scope of such a declaration is
155      * determined when it is used in the construction of complex type
156      * definitions.
157      */

158     public static final short SCOPE_ABSENT = 0;
159     /**
160      * A scope of <code>global</code> identifies top-level declarations.
161      */

162     public static final short SCOPE_GLOBAL = 1;
163     /**
164      * <code>Locally scoped</code> declarations are available for use only
165      * within the complex type.
166      */

167     public static final short SCOPE_LOCAL = 2;
168
169     // Value Constraint
170
/**
171      * Indicates that the component does not have any value constraint.
172      */

173     public static final short VC_NONE = 0;
174     /**
175      * Indicates that there is a default value constraint.
176      */

177     public static final short VC_DEFAULT = 1;
178     /**
179      * Indicates that there is a fixed value constraint for this attribute.
180      */

181     public static final short VC_FIXED = 2;
182
183     // Build-in types: primitive and derived
184
/**
185      * anySimpleType
186      */

187     public static final short ANYSIMPLETYPE_DT = 1;
188     /**
189      * string
190      */

191     public static final short STRING_DT = 2;
192     /**
193      * boolean
194      */

195     public static final short BOOLEAN_DT = 3;
196     /**
197      * decimal
198      */

199     public static final short DECIMAL_DT = 4;
200     /**
201      * float
202      */

203     public static final short FLOAT_DT = 5;
204     /**
205      * double
206      */

207     public static final short DOUBLE_DT = 6;
208     /**
209      * duration
210      */

211     public static final short DURATION_DT = 7;
212     /**
213      * dateTime
214      */

215     public static final short DATETIME_DT = 8;
216     /**
217      * time
218      */

219     public static final short TIME_DT = 9;
220     /**
221      * date
222      */

223     public static final short DATE_DT = 10;
224     /**
225      * gYearMonth
226      */

227     public static final short GYEARMONTH_DT = 11;
228     /**
229      * gYear
230      */

231     public static final short GYEAR_DT = 12;
232     /**
233      * gMonthDay
234      */

235     public static final short GMONTHDAY_DT = 13;
236     /**
237      * gDay
238      */

239     public static final short GDAY_DT = 14;
240     /**
241      * gMonth
242      */

243     public static final short GMONTH_DT = 15;
244     /**
245      * hexBinary
246      */

247     public static final short HEXBINARY_DT = 16;
248     /**
249      * base64Binary
250      */

251     public static final short BASE64BINARY_DT = 17;
252     /**
253      * anyURI
254      */

255     public static final short ANYURI_DT = 18;
256     /**
257      * QName
258      */

259     public static final short QNAME_DT = 19;
260     /**
261      * NOTATION
262      */

263     public static final short NOTATION_DT = 20;
264     /**
265      * normalizedString
266      */

267     public static final short NORMALIZEDSTRING_DT = 21;
268     /**
269      * token
270      */

271     public static final short TOKEN_DT = 22;
272     /**
273      * language
274      */

275     public static final short LANGUAGE_DT = 23;
276     /**
277      * NMTOKEN
278      */

279     public static final short NMTOKEN_DT = 24;
280     /**
281      * Name
282      */

283     public static final short NAME_DT = 25;
284     /**
285      * NCName
286      */

287     public static final short NCNAME_DT = 26;
288     /**
289      * ID
290      */

291     public static final short ID_DT = 27;
292     /**
293      * IDREF
294      */

295     public static final short IDREF_DT = 28;
296     /**
297      * ENTITY
298      */

299     public static final short ENTITY_DT = 29;
300     /**
301      * integer
302      */

303     public static final short INTEGER_DT = 30;
304     /**
305      * nonPositiveInteger
306      */

307     public static final short NONPOSITIVEINTEGER_DT = 31;
308     /**
309      * negativeInteger
310      */

311     public static final short NEGATIVEINTEGER_DT = 32;
312     /**
313      * long
314      */

315     public static final short LONG_DT = 33;
316     /**
317      * int
318      */

319     public static final short INT_DT = 34;
320     /**
321      * short
322      */

323     public static final short SHORT_DT = 35;
324     /**
325      * byte
326      */

327     public static final short BYTE_DT = 36;
328     /**
329      * nonNegativeInteger
330      */

331     public static final short NONNEGATIVEINTEGER_DT = 37;
332     /**
333      * unsignedLong
334      */

335     public static final short UNSIGNEDLONG_DT = 38;
336     /**
337      * unsignedInt
338      */

339     public static final short UNSIGNEDINT_DT = 39;
340     /**
341      * unsignedShort
342      */

343     public static final short UNSIGNEDSHORT_DT = 40;
344     /**
345      * unsignedByte
346      */

347     public static final short UNSIGNEDBYTE_DT = 41;
348     /**
349      * positiveInteger
350      */

351     public static final short POSITIVEINTEGER_DT = 42;
352     /**
353      * The type represents a list type definition whose item type (itemType)
354      * is a union type definition
355      */

356     public static final short LISTOFUNION_DT = 43;
357     /**
358      * The type represents a list type definition.
359      */

360     public static final short LIST_DT = 44;
361     /**
362      * The built-in type category is not available.
363      */

364     public static final short UNAVAILABLE_DT = 45;
365
366 }
367
Popular Tags