KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > xs > XSConstants


1 /*
2  * Copyright 2003-2005 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.xs;
18
19 /**
20  * This interface defines constants used by this specification.
21  */

22 public interface XSConstants {
23     // XML Schema Components
24
/**
25      * The object describes an attribute declaration.
26      */

27     public static final short ATTRIBUTE_DECLARATION = 1;
28     /**
29      * The object describes an element declaration.
30      */

31     public static final short ELEMENT_DECLARATION = 2;
32     /**
33      * The object describes a complex type or simple type definition.
34      */

35     public static final short TYPE_DEFINITION = 3;
36     /**
37      * The object describes an attribute use definition.
38      */

39     public static final short ATTRIBUTE_USE = 4;
40     /**
41      * The object describes an attribute group definition.
42      */

43     public static final short ATTRIBUTE_GROUP = 5;
44     /**
45      * The object describes a model group definition.
46      */

47     public static final short MODEL_GROUP_DEFINITION = 6;
48     /**
49      * A model group.
50      */

51     public static final short MODEL_GROUP = 7;
52     /**
53      * The object describes a particle.
54      */

55     public static final short PARTICLE = 8;
56     /**
57      * The object describes a wildcard.
58      */

59     public static final short WILDCARD = 9;
60     /**
61      * The object describes an identity constraint definition.
62      */

63     public static final short IDENTITY_CONSTRAINT = 10;
64     /**
65      * The object describes a notation declaration.
66      */

67     public static final short NOTATION_DECLARATION = 11;
68     /**
69      * The object describes an annotation.
70      */

71     public static final short ANNOTATION = 12;
72     /**
73      * The object describes a constraining facet. Note: this object does not
74      * describe pattern and enumeration facets.
75      */

76     public static final short FACET = 13;
77     /**
78      * The object describes enumeration and pattern facets.
79      */

80     public static final short MULTIVALUE_FACET = 14;
81
82     // Derivation constants
83
/**
84      * No constraint is available.
85      */

86     public static final short DERIVATION_NONE = 0;
87     /**
88      * <code>XSTypeDefinition</code> final set or
89      * <code>XSElementDeclaration</code> disallowed substitution group.
90      */

91     public static final short DERIVATION_EXTENSION = 1;
92     /**
93      * <code>XSTypeDefinition</code> final set or
94      * <code>XSElementDeclaration</code> disallowed substitution group.
95      */

96     public static final short DERIVATION_RESTRICTION = 2;
97     /**
98      * <code>XSTypeDefinition</code> final set.
99      */

100     public static final short DERIVATION_SUBSTITUTION = 4;
101     /**
102      * <code>XSTypeDefinition</code> final set.
103      */

104     public static final short DERIVATION_UNION = 8;
105     /**
106      * <code>XSTypeDefinition</code> final set.
107      */

108     public static final short DERIVATION_LIST = 16;
109
110     // Scope
111
/**
112      * The scope of a declaration within named model groups or attribute
113      * groups is <code>absent</code>. The scope of such a declaration is
114      * determined when it is used in the construction of complex type
115      * definitions.
116      */

117     public static final short SCOPE_ABSENT = 0;
118     /**
119      * A scope of <code>global</code> identifies top-level declarations.
120      */

121     public static final short SCOPE_GLOBAL = 1;
122     /**
123      * <code>Locally scoped</code> declarations are available for use only
124      * within the complex type.
125      */

126     public static final short SCOPE_LOCAL = 2;
127
128     // Value Constraint
129
/**
130      * Indicates that the component does not have any value constraint.
131      */

132     public static final short VC_NONE = 0;
133     /**
134      * Indicates that there is a default value constraint.
135      */

136     public static final short VC_DEFAULT = 1;
137     /**
138      * Indicates that there is a fixed value constraint for this attribute.
139      */

140     public static final short VC_FIXED = 2;
141
142     // Built-in types: primitive and derived
143
/**
144      * anySimpleType
145      */

146     public static final short ANYSIMPLETYPE_DT = 1;
147     /**
148      * string
149      */

150     public static final short STRING_DT = 2;
151     /**
152      * boolean
153      */

154     public static final short BOOLEAN_DT = 3;
155     /**
156      * decimal
157      */

158     public static final short DECIMAL_DT = 4;
159     /**
160      * float
161      */

162     public static final short FLOAT_DT = 5;
163     /**
164      * double
165      */

166     public static final short DOUBLE_DT = 6;
167     /**
168      * duration
169      */

170     public static final short DURATION_DT = 7;
171     /**
172      * dateTime
173      */

174     public static final short DATETIME_DT = 8;
175     /**
176      * time
177      */

178     public static final short TIME_DT = 9;
179     /**
180      * date
181      */

182     public static final short DATE_DT = 10;
183     /**
184      * gYearMonth
185      */

186     public static final short GYEARMONTH_DT = 11;
187     /**
188      * gYear
189      */

190     public static final short GYEAR_DT = 12;
191     /**
192      * gMonthDay
193      */

194     public static final short GMONTHDAY_DT = 13;
195     /**
196      * gDay
197      */

198     public static final short GDAY_DT = 14;
199     /**
200      * gMonth
201      */

202     public static final short GMONTH_DT = 15;
203     /**
204      * hexBinary
205      */

206     public static final short HEXBINARY_DT = 16;
207     /**
208      * base64Binary
209      */

210     public static final short BASE64BINARY_DT = 17;
211     /**
212      * anyURI
213      */

214     public static final short ANYURI_DT = 18;
215     /**
216      * QName
217      */

218     public static final short QNAME_DT = 19;
219     /**
220      * NOTATION
221      */

222     public static final short NOTATION_DT = 20;
223     /**
224      * normalizedString
225      */

226     public static final short NORMALIZEDSTRING_DT = 21;
227     /**
228      * token
229      */

230     public static final short TOKEN_DT = 22;
231     /**
232      * language
233      */

234     public static final short LANGUAGE_DT = 23;
235     /**
236      * NMTOKEN
237      */

238     public static final short NMTOKEN_DT = 24;
239     /**
240      * Name
241      */

242     public static final short NAME_DT = 25;
243     /**
244      * NCName
245      */

246     public static final short NCNAME_DT = 26;
247     /**
248      * ID
249      */

250     public static final short ID_DT = 27;
251     /**
252      * IDREF
253      */

254     public static final short IDREF_DT = 28;
255     /**
256      * ENTITY
257      */

258     public static final short ENTITY_DT = 29;
259     /**
260      * integer
261      */

262     public static final short INTEGER_DT = 30;
263     /**
264      * nonPositiveInteger
265      */

266     public static final short NONPOSITIVEINTEGER_DT = 31;
267     /**
268      * negativeInteger
269      */

270     public static final short NEGATIVEINTEGER_DT = 32;
271     /**
272      * long
273      */

274     public static final short LONG_DT = 33;
275     /**
276      * int
277      */

278     public static final short INT_DT = 34;
279     /**
280      * short
281      */

282     public static final short SHORT_DT = 35;
283     /**
284      * byte
285      */

286     public static final short BYTE_DT = 36;
287     /**
288      * nonNegativeInteger
289      */

290     public static final short NONNEGATIVEINTEGER_DT = 37;
291     /**
292      * unsignedLong
293      */

294     public static final short UNSIGNEDLONG_DT = 38;
295     /**
296      * unsignedInt
297      */

298     public static final short UNSIGNEDINT_DT = 39;
299     /**
300      * unsignedShort
301      */

302     public static final short UNSIGNEDSHORT_DT = 40;
303     /**
304      * unsignedByte
305      */

306     public static final short UNSIGNEDBYTE_DT = 41;
307     /**
308      * positiveInteger
309      */

310     public static final short POSITIVEINTEGER_DT = 42;
311     /**
312      * The type represents a list type definition whose item type (itemType)
313      * is a union type definition
314      */

315     public static final short LISTOFUNION_DT = 43;
316     /**
317      * The type represents a list type definition.
318      */

319     public static final short LIST_DT = 44;
320     /**
321      * The built-in type category is not available.
322      */

323     public static final short UNAVAILABLE_DT = 45;
324     
325 }
326
Popular Tags