KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * The Apache Software License, Version 1.1
3  *
4  *
5  * Copyright (c) 2001, 2002 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) 2001, 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.impl.xs.psvi;
59
60 /**
61  * This interface defines constants used by this specification.
62  * The interface may be updated or replaced.
63  */

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

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

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

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

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

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

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

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

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

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

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

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

113     public static final short ANNOTATION = 12;
114     /**
115      * The object describes a constraining facet.
116      */

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

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

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

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

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

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

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

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

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

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

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

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

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

183     public static final short VC_FIXED = 2;
184
185 }
186
Popular Tags