KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xquark > schema > SchemaConstants


1 /*
2  * This file belongs to the XQuark distribution.
3  * Copyright (C) 2003 Universite de Versailles Saint-Quentin.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307.
18  * You can also get it at http://www.gnu.org/licenses/lgpl.html
19  *
20  * For more information on this software, see http://www.xquark.org.
21  */

22
23 package org.xquark.schema;
24
25 public interface SchemaConstants {
26  
27
28     
29   public static final String JavaDoc XMLSCHEMA_URI =
30     "http://www.w3.org/2001/XMLSchema";
31   public static final String JavaDoc XSI_URI =
32     "http://www.w3.org/2001/XMLSchema-instance";
33   public static final String JavaDoc XML_URI =
34     "http://www.w3.org/XML/1998/namespace";
35   public static final String JavaDoc XMLNS_URI =
36     "http://www.w3.org/2000/xmlns/";
37   public static final String JavaDoc XML_PREFIX = "xml";
38   public static final String JavaDoc XMLNS_PREFIX = "xmlns";
39   
40   // schema tags
41
public static final String JavaDoc SCHEMA_TAG = "schema";
42   public static final String JavaDoc INCLUDE_TAG = "include";
43   public static final String JavaDoc IMPORT_TAG = "import";
44   public static final String JavaDoc REDEFINE_TAG = "redefine";
45   public static final String JavaDoc SIMPLE_UR_TYPE = "anySimpleType";
46   public static final String JavaDoc SIMPLE_TYPE_TAG = "simpleType";
47   public static final String JavaDoc COMPLEX_TYPE_TAG = "complexType";
48   public static final String JavaDoc ELEMENT_TAG = "element";
49   public static final String JavaDoc ATTRIBUTE_TAG = "attribute";
50   public static final String JavaDoc GROUP_TAG = "group";
51   public static final String JavaDoc SEQUENCE_TAG = "sequence";
52   public static final String JavaDoc CHOICE_TAG = "choice";
53   public static final String JavaDoc ALL_TAG = "all";
54   public static final String JavaDoc ATTRIBUTE_GROUP_TAG = "attributeGroup";
55   public static final String JavaDoc ANY_TAG = "any";
56   public static final String JavaDoc ANY_ATTRIBUTE_TAG = "anyAttribute";
57   public static final String JavaDoc UNIQUE_TAG = "unique";
58   public static final String JavaDoc KEY_TAG = "key";
59   public static final String JavaDoc KEYREF_TAG = "keyref";
60   public static final String JavaDoc SELECTOR_TAG = "selector";
61   public static final String JavaDoc FIELD_TAG = "field";
62   public static final String JavaDoc ANNOTATION_TAG = "annotation";
63   public static final String JavaDoc APPINFO_TAG = "appinfo";
64   public static final String JavaDoc DOCUMENTATION_TAG = "documentation";
65   public static final String JavaDoc NOTATION_TAG = "notation";
66
67   public static final String JavaDoc SIMPLECONTENT_TAG = "simpleContent";
68     public static final String JavaDoc COMPLEXCONTENT_TAG = "complexContent";
69   public static final String JavaDoc LIST_TAG = "list";
70   public static final String JavaDoc UNION_TAG = "union";
71   public static final String JavaDoc RESTRICTION_TAG = "restriction";
72   public static final String JavaDoc EXTENSION_TAG = "extension";
73
74   // facets tags
75
public static final String JavaDoc LENGTH_TAG = "length";
76   public static final String JavaDoc MIN_LENGTH_TAG = "minLength";
77   public static final String JavaDoc MAX_LENGTH_TAG = "maxLength";
78   public static final String JavaDoc PATTERN_TAG = "pattern";
79   public static final String JavaDoc ENUMERATION_TAG = "enumeration";
80   public static final String JavaDoc WHITESPACE_TAG = "whiteSpace";
81   public static final String JavaDoc MIN_EXCLUSIVE_TAG = "minExclusive";
82   public static final String JavaDoc MIN_INCLUSIVE_TAG = "minInclusive";
83   public static final String JavaDoc MAX_EXCLUSIVE_TAG = "maxExclusive";
84   public static final String JavaDoc MAX_INCLUSIVE_TAG = "maxInclusive";
85   public static final String JavaDoc TOTALDIGITS_TAG = "totalDigits";
86   public static final String JavaDoc FRACTIONDIGITS_TAG = "fractionDigits";
87     
88   public static final String JavaDoc[] FACETS = {
89     LENGTH_TAG, MIN_LENGTH_TAG, MAX_LENGTH_TAG,
90     PATTERN_TAG, ENUMERATION_TAG, WHITESPACE_TAG,
91     MIN_EXCLUSIVE_TAG, MIN_INCLUSIVE_TAG, MAX_EXCLUSIVE_TAG, MAX_INCLUSIVE_TAG,
92     TOTALDIGITS_TAG, FRACTIONDIGITS_TAG,
93   };
94
95   // generic attribute
96
public static final String JavaDoc ID_ATTR = "id";
97
98   // schema attributes
99
public static final String JavaDoc ATTRIBUTE_FORM_DEFAULT_ATTR = "attributeFormDefault";
100   public static final String JavaDoc BLOCK_DEFAULT_ATTR = "blockDefault";
101   public static final String JavaDoc ELEMENT_FORM_DEFAULT_ATTR = "elementFormDefault";
102   public static final String JavaDoc FINAL_DEFAULT_ATTR = "finalDefault";
103   public static final String JavaDoc TARGET_NAMESPACE_ATTR = "targetNamespace";
104   public static final String JavaDoc VERSION_ATTR = "version";
105
106   // include attributes
107
public static final String JavaDoc SCHEMA_LOCATION_ATTR = "schemaLocation";
108   public static final String JavaDoc NAMESPACE_ATTR = "namespace";
109   
110   // simpleType attributes
111
public static final String JavaDoc ABSTRACT_ATTR = "abstract";
112   public static final String JavaDoc BASE_ATTR = "base";
113   public static final String JavaDoc NAME_ATTR = "name";
114   public static final String JavaDoc ITEM_TYPE_ATTR = "itemType";
115   public static final String JavaDoc MEMBER_TYPES_ATTR = "memberTypes";
116   
117   // complexType attributes
118
public static final String JavaDoc BLOCK_ATTR = "block";
119   public static final String JavaDoc CONTENT_ATTR = "content";
120   public static final String JavaDoc FINAL_ATTR = "final";
121   public static final String JavaDoc MIXED_ATTR = "mixed";
122
123   // element attributes
124
public static final String JavaDoc DEFAULT_ATTR = "default";
125   public static final String JavaDoc SUBSTITUTION_GROUP_ATTR = "substitutionGroup";
126   public static final String JavaDoc FIXED_ATTR = "fixed";
127   public static final String JavaDoc FORM_ATTR = "form";
128   public static final String JavaDoc MAX_OCCURS_ATTR = "maxOccurs";
129   public static final String JavaDoc MIN_OCCURS_ATTR = "minOccurs";
130   public static final String JavaDoc NILLABLE_ATTR = "nillable";
131   public static final String JavaDoc REF_ATTR = "ref";
132   public static final String JavaDoc TYPE_ATTR = "type";
133   
134   // attribute attributes
135
public static final String JavaDoc USE_ATTR = "use";
136   public static final String JavaDoc VALUE_ATTR = "value";
137
138   public static final String JavaDoc PROCESS_CONTENTS_ATTR = "processContents";
139   
140   public static final String JavaDoc PUBLIC_ATTR = "public";
141   public static final String JavaDoc SYSTEM_ATTR = "system";
142
143   public static final String JavaDoc REFER_ATTR = "refer";
144   public static final String JavaDoc XPATH_ATTR = "xpath";
145   
146   // annotation attributes
147
public static final String JavaDoc SOURCE_ATTR = "source";
148   
149   // XSI attributes
150
public static final String JavaDoc XSI_NIL_ATTR = "nil";
151   public static final String JavaDoc XSI_TYPE_ATTR = "type";
152   public static final String JavaDoc XSI_SCHEMA_LOCATION_ATTR = "schemaLocation";
153   public static final String JavaDoc XSI_NO_NAMESPACE_SCHEMA_LOCATION_ATTR =
154     "noNamespaceSchemaLocation";
155   
156   // values
157
public static final String JavaDoc TRUE_VALUE = "true";
158   public static final String JavaDoc FALSE_VALUE = "false";
159   public static final String JavaDoc ONE_VALUE = "1";
160   public static final String JavaDoc ZERO_VALUE = "0";
161   
162   public static final String JavaDoc QUALIFIED_VALUE = "qualified";
163   public static final String JavaDoc UNQUALIFIED_VALUE = "unqualified";
164
165   public static final String JavaDoc ALL_VALUE = "#all";
166   public static final String JavaDoc LIST_VALUE = "list";
167   public static final String JavaDoc UNION_VALUE = "union";
168   public static final String JavaDoc RESTRICTION_VALUE = "restriction";
169   public static final String JavaDoc EXTENSION_VALUE = "extension";
170   public static final String JavaDoc SUBSTITUTION_VALUE = "substitution";
171   
172   public static final int LIST = 1;
173   public static final int UNION = 2;
174   public static final int RESTRICTION = 4;
175   public static final int EXTENSION = 8;
176   public static final int SUBSTITUTION = 16;
177   
178   public static final String JavaDoc DEFAULT_VALUE = "default";
179   public static final String JavaDoc FIXED_VALUE = "fixed";
180   public static final String JavaDoc OPTIONAL_VALUE = "optional";
181   public static final String JavaDoc PROHIBITED_VALUE = "prohibited";
182   public static final String JavaDoc REQUIRED_VALUE = "required";
183
184   public static final int DEFAULT = 0;
185   public static final int FIXED = 1;
186   public static final int OPTIONAL = 2;
187   public static final int PROHIBITED = 3;
188   public static final int REQUIRED = 4;
189
190   public static final String JavaDoc UNBOUNDED_VALUE = "unbounded";
191
192   public static final String JavaDoc EMPTY_VALUE = "empty";
193   public static final String JavaDoc TEXT_ONLY_VALUE = "textOnly";
194   public static final String JavaDoc ELEMENT_ONLY_VALUE = "elementOnly";
195   public static final String JavaDoc MIXED_VALUE = "mixed";
196
197   public static final int UNKNOWN = -1;
198   public static final int EMPTY = 0;
199   public static final int TEXT_ONLY = 1;
200   public static final int ELEMENT_ONLY = 2;
201   public static final int MIXED = 3;
202
203   public static final String JavaDoc ANY_VALUE = "##any";
204   public static final String JavaDoc LOCAL_VALUE = "##local";
205   public static final String JavaDoc OTHER_VALUE = "##other";
206   public static final String JavaDoc TARGET_NAMESPACE_VALUE = "##targetNamespace";
207   
208   public static final String JavaDoc LAX_VALUE = "lax";
209   public static final String JavaDoc SKIP_VALUE = "skip";
210   public static final String JavaDoc STRICT_VALUE = "strict";
211   
212   public static final int LAX = 0;
213   public static final int SKIP = 1;
214   public static final int STRICT = 2;
215         
216   // any type, used in element initialisation
217
public static final String JavaDoc ANY_TYPE = "anyType";
218  
219 }
220
221
Popular Tags