/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.xerces.xs;

This interface defines constants used by this specification.
/** * This interface defines constants used by this specification. */
public interface XSConstants { // XML Schema Components
The object describes an attribute declaration.
/** * The object describes an attribute declaration. */
public static final short ATTRIBUTE_DECLARATION = 1;
The object describes an element declaration.
/** * The object describes an element declaration. */
public static final short ELEMENT_DECLARATION = 2;
The object describes a complex type or simple type definition.
/** * The object describes a complex type or simple type definition. */
public static final short TYPE_DEFINITION = 3;
The object describes an attribute use definition.
/** * The object describes an attribute use definition. */
public static final short ATTRIBUTE_USE = 4;
The object describes an attribute group definition.
/** * The object describes an attribute group definition. */
public static final short ATTRIBUTE_GROUP = 5;
The object describes a model group definition.
/** * The object describes a model group definition. */
public static final short MODEL_GROUP_DEFINITION = 6;
A model group.
/** * A model group. */
public static final short MODEL_GROUP = 7;
The object describes a particle.
/** * The object describes a particle. */
public static final short PARTICLE = 8;
The object describes a wildcard.
/** * The object describes a wildcard. */
public static final short WILDCARD = 9;
The object describes an identity constraint definition.
/** * The object describes an identity constraint definition. */
public static final short IDENTITY_CONSTRAINT = 10;
The object describes a notation declaration.
/** * The object describes a notation declaration. */
public static final short NOTATION_DECLARATION = 11;
The object describes an annotation.
/** * The object describes an annotation. */
public static final short ANNOTATION = 12;
The object describes a constraining facet. Note: this object does not describe pattern and enumeration facets.
/** * The object describes a constraining facet. Note: this object does not * describe pattern and enumeration facets. */
public static final short FACET = 13;
The object describes enumeration and pattern facets.
/** * The object describes enumeration and pattern facets. */
public static final short MULTIVALUE_FACET = 14; // Derivation constants
No constraint is available.
/** * No constraint is available. */
public static final short DERIVATION_NONE = 0;
XSTypeDefinition final set or XSElementDeclaration disallowed substitution group.
/** * <code>XSTypeDefinition</code> final set or * <code>XSElementDeclaration</code> disallowed substitution group. */
public static final short DERIVATION_EXTENSION = 1;
XSTypeDefinition final set or XSElementDeclaration disallowed substitution group.
/** * <code>XSTypeDefinition</code> final set or * <code>XSElementDeclaration</code> disallowed substitution group. */
public static final short DERIVATION_RESTRICTION = 2;
XSTypeDefinition final set.
/** * <code>XSTypeDefinition</code> final set. */
public static final short DERIVATION_SUBSTITUTION = 4;
XSTypeDefinition final set.
/** * <code>XSTypeDefinition</code> final set. */
public static final short DERIVATION_UNION = 8;
XSTypeDefinition final set.
/** * <code>XSTypeDefinition</code> final set. */
public static final short DERIVATION_LIST = 16; // Scope
The scope of a declaration within named model groups or attribute groups is absent. The scope of such a declaration is determined when it is used in the construction of complex type definitions.
/** * The scope of a declaration within named model groups or attribute * groups is <code>absent</code>. The scope of such a declaration is * determined when it is used in the construction of complex type * definitions. */
public static final short SCOPE_ABSENT = 0;
A scope of global identifies top-level declarations.
/** * A scope of <code>global</code> identifies top-level declarations. */
public static final short SCOPE_GLOBAL = 1;
Locally scoped declarations are available for use only within the complex type.
/** * <code>Locally scoped</code> declarations are available for use only * within the complex type. */
public static final short SCOPE_LOCAL = 2; // Value Constraint
Indicates that the component does not have any value constraint.
/** * Indicates that the component does not have any value constraint. */
public static final short VC_NONE = 0;
Indicates that there is a default value constraint.
/** * Indicates that there is a default value constraint. */
public static final short VC_DEFAULT = 1;
Indicates that there is a fixed value constraint for this attribute.
/** * Indicates that there is a fixed value constraint for this attribute. */
public static final short VC_FIXED = 2; // Built-in types: primitive and derived
anySimpleType
/** * anySimpleType */
public static final short ANYSIMPLETYPE_DT = 1;
string
/** * string */
public static final short STRING_DT = 2;
boolean
/** * boolean */
public static final short BOOLEAN_DT = 3;
decimal
/** * decimal */
public static final short DECIMAL_DT = 4;
float
/** * float */
public static final short FLOAT_DT = 5;
double
/** * double */
public static final short DOUBLE_DT = 6;
duration
/** * duration */
public static final short DURATION_DT = 7;
dateTime
/** * dateTime */
public static final short DATETIME_DT = 8;
time
/** * time */
public static final short TIME_DT = 9;
date
/** * date */
public static final short DATE_DT = 10;
gYearMonth
/** * gYearMonth */
public static final short GYEARMONTH_DT = 11;
gYear
/** * gYear */
public static final short GYEAR_DT = 12;
gMonthDay
/** * gMonthDay */
public static final short GMONTHDAY_DT = 13;
gDay
/** * gDay */
public static final short GDAY_DT = 14;
gMonth
/** * gMonth */
public static final short GMONTH_DT = 15;
hexBinary
/** * hexBinary */
public static final short HEXBINARY_DT = 16;
base64Binary
/** * base64Binary */
public static final short BASE64BINARY_DT = 17;
anyURI
/** * anyURI */
public static final short ANYURI_DT = 18;
QName
/** * QName */
public static final short QNAME_DT = 19;
NOTATION
/** * NOTATION */
public static final short NOTATION_DT = 20;
normalizedString
/** * normalizedString */
public static final short NORMALIZEDSTRING_DT = 21;
token
/** * token */
public static final short TOKEN_DT = 22;
language
/** * language */
public static final short LANGUAGE_DT = 23;
NMTOKEN
/** * NMTOKEN */
public static final short NMTOKEN_DT = 24;
Name
/** * Name */
public static final short NAME_DT = 25;
NCName
/** * NCName */
public static final short NCNAME_DT = 26;
ID
/** * ID */
public static final short ID_DT = 27;
IDREF
/** * IDREF */
public static final short IDREF_DT = 28;
ENTITY
/** * ENTITY */
public static final short ENTITY_DT = 29;
integer
/** * integer */
public static final short INTEGER_DT = 30;
nonPositiveInteger
/** * nonPositiveInteger */
public static final short NONPOSITIVEINTEGER_DT = 31;
negativeInteger
/** * negativeInteger */
public static final short NEGATIVEINTEGER_DT = 32;
long
/** * long */
public static final short LONG_DT = 33;
int
/** * int */
public static final short INT_DT = 34;
short
/** * short */
public static final short SHORT_DT = 35;
byte
/** * byte */
public static final short BYTE_DT = 36;
nonNegativeInteger
/** * nonNegativeInteger */
public static final short NONNEGATIVEINTEGER_DT = 37;
unsignedLong
/** * unsignedLong */
public static final short UNSIGNEDLONG_DT = 38;
unsignedInt
/** * unsignedInt */
public static final short UNSIGNEDINT_DT = 39;
unsignedShort
/** * unsignedShort */
public static final short UNSIGNEDSHORT_DT = 40;
unsignedByte
/** * unsignedByte */
public static final short UNSIGNEDBYTE_DT = 41;
positiveInteger
/** * positiveInteger */
public static final short POSITIVEINTEGER_DT = 42;
The type represents a list type definition whose item type (itemType) is a union type definition
/** * The type represents a list type definition whose item type (itemType) * is a union type definition */
public static final short LISTOFUNION_DT = 43;
The type represents a list type definition.
/** * The type represents a list type definition. */
public static final short LIST_DT = 44;
The built-in type category is not available.
/** * The built-in type category is not available. */
public static final short UNAVAILABLE_DT = 45; }