/* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 1999, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * . */ package com.sun.org.apache.xerces.internal.impl.xs; /** * Collection of symbols used to parse a Schema Grammar. * * @author jeffrey rodriguez * @version $Id: SchemaSymbols.java,v 1.7 2003/05/08 20:11:56 elena Exp $ */ public final class SchemaSymbols { // strings that's not added to the schema symbol table, because they // are not symbols in the schema document. // the validator can choose to add them by itself. // the following strings (xsi:, xsd) will be added into the // symbol table that comes with the parser // xsi attributes: in validator public static final String URI_XSI = "http://www.w3.org/2001/XMLSchema-instance".intern(); public static final String XSI_SCHEMALOCATION = "schemaLocation".intern(); public static final String XSI_NONAMESPACESCHEMALOCATION = "noNamespaceSchemaLocation".intern(); public static final String XSI_TYPE = "type".intern(); public static final String XSI_NIL = "nil".intern(); // schema namespace public static final String URI_SCHEMAFORSCHEMA = "http://www.w3.org/2001/XMLSchema".intern(); // all possible schema element names public static final String ELT_ALL = "all".intern(); public static final String ELT_ANNOTATION = "annotation".intern(); public static final String ELT_ANY = "any".intern(); public static final String ELT_ANYATTRIBUTE = "anyAttribute".intern(); public static final String ELT_APPINFO = "appinfo".intern(); public static final String ELT_ATTRIBUTE = "attribute".intern(); public static final String ELT_ATTRIBUTEGROUP = "attributeGroup".intern(); public static final String ELT_CHOICE = "choice".intern(); public static final String ELT_COMPLEXCONTENT = "complexContent".intern(); public static final String ELT_COMPLEXTYPE = "complexType".intern(); public static final String ELT_DOCUMENTATION = "documentation".intern(); public static final String ELT_ELEMENT = "element".intern(); public static final String ELT_ENUMERATION = "enumeration".intern(); public static final String ELT_EXTENSION = "extension".intern(); public static final String ELT_FIELD = "field".intern(); public static final String ELT_FRACTIONDIGITS = "fractionDigits".intern(); public static final String ELT_GROUP = "group".intern(); public static final String ELT_IMPORT = "import".intern(); public static final String ELT_INCLUDE = "include".intern(); public static final String ELT_KEY = "key".intern(); public static final String ELT_KEYREF = "keyref".intern(); public static final String ELT_LENGTH = "length".intern(); public static final String ELT_LIST = "list".intern(); public static final String ELT_MAXEXCLUSIVE = "maxExclusive".intern(); public static final String ELT_MAXINCLUSIVE = "maxInclusive".intern(); public static final String ELT_MAXLENGTH = "maxLength".intern(); public static final String ELT_MINEXCLUSIVE = "minExclusive".intern(); public static final String ELT_MININCLUSIVE = "minInclusive".intern(); public static final String ELT_MINLENGTH = "minLength".intern(); public static final String ELT_NOTATION = "notation".intern(); public static final String ELT_PATTERN = "pattern".intern(); public static final String ELT_REDEFINE = "redefine".intern(); public static final String ELT_RESTRICTION = "restriction".intern(); public static final String ELT_SCHEMA = "schema".intern(); public static final String ELT_SELECTOR = "selector".intern(); public static final String ELT_SEQUENCE = "sequence".intern(); public static final String ELT_SIMPLECONTENT = "simpleContent".intern(); public static final String ELT_SIMPLETYPE = "simpleType".intern(); public static final String ELT_TOTALDIGITS = "totalDigits".intern(); public static final String ELT_UNION = "union".intern(); public static final String ELT_UNIQUE = "unique".intern(); public static final String ELT_WHITESPACE = "whiteSpace".intern(); // all possible schema attribute names public static final String ATT_ABSTRACT = "abstract".intern(); public static final String ATT_ATTRIBUTEFORMDEFAULT = "attributeFormDefault".intern(); public static final String ATT_BASE = "base".intern(); public static final String ATT_BLOCK = "block".intern(); public static final String ATT_BLOCKDEFAULT = "blockDefault".intern(); public static final String ATT_DEFAULT = "default".intern(); public static final String ATT_ELEMENTFORMDEFAULT = "elementFormDefault".intern(); public static final String ATT_FINAL = "final".intern(); public static final String ATT_FINALDEFAULT = "finalDefault".intern(); public static final String ATT_FIXED = "fixed".intern(); public static final String ATT_FORM = "form".intern(); public static final String ATT_ID = "id".intern(); public static final String ATT_ITEMTYPE = "itemType".intern(); public static final String ATT_MAXOCCURS = "maxOccurs".intern(); public static final String ATT_MEMBERTYPES = "memberTypes".intern(); public static final String ATT_MINOCCURS = "minOccurs".intern(); public static final String ATT_MIXED = "mixed".intern(); public static final String ATT_NAME = "name".intern(); public static final String ATT_NAMESPACE = "namespace".intern(); public static final String ATT_NILLABLE = "nillable".intern(); public static final String ATT_PROCESSCONTENTS = "processContents".intern(); public static final String ATT_REF = "ref".intern(); public static final String ATT_REFER = "refer".intern(); public static final String ATT_SCHEMALOCATION = "schemaLocation".intern(); public static final String ATT_SOURCE = "source".intern(); public static final String ATT_SUBSTITUTIONGROUP = "substitutionGroup".intern(); public static final String ATT_SYSTEM = "system".intern(); public static final String ATT_PUBLIC = "public".intern(); public static final String ATT_TARGETNAMESPACE = "targetNamespace".intern(); public static final String ATT_TYPE = "type".intern(); public static final String ATT_USE = "use".intern(); public static final String ATT_VALUE = "value".intern(); public static final String ATT_VERSION = "version".intern(); public static final String ATT_XPATH = "xpath".intern(); // all possible schema attribute values public static final String ATTVAL_TWOPOUNDANY = "##any"; public static final String ATTVAL_TWOPOUNDLOCAL = "##local"; public static final String ATTVAL_TWOPOUNDOTHER = "##other"; public static final String ATTVAL_TWOPOUNDTARGETNS = "##targetNamespace"; public static final String ATTVAL_POUNDALL = "#all"; public static final String ATTVAL_FALSE_0 = "0"; public static final String ATTVAL_TRUE_1 = "1"; public static final String ATTVAL_ANYSIMPLETYPE = "anySimpleType"; public static final String ATTVAL_ANYTYPE = "anyType"; public static final String ATTVAL_ANYURI = "anyURI"; public static final String ATTVAL_BASE64BINARY = "base64Binary"; public static final String ATTVAL_BOOLEAN = "boolean"; public static final String ATTVAL_BYTE = "byte"; public static final String ATTVAL_COLLAPSE = "collapse"; public static final String ATTVAL_DATE = "date"; public static final String ATTVAL_DATETIME = "dateTime"; public static final String ATTVAL_DAY = "gDay"; public static final String ATTVAL_DECIMAL = "decimal"; public static final String ATTVAL_DOUBLE = "double"; public static final String ATTVAL_DURATION = "duration"; public static final String ATTVAL_ENTITY = "ENTITY"; public static final String ATTVAL_ENTITIES = "ENTITIES"; public static final String ATTVAL_EXTENSION = "extension"; public static final String ATTVAL_FALSE = "false"; public static final String ATTVAL_FLOAT = "float"; public static final String ATTVAL_HEXBINARY = "hexBinary"; public static final String ATTVAL_ID = "ID"; public static final String ATTVAL_IDREF = "IDREF"; public static final String ATTVAL_IDREFS = "IDREFS"; public static final String ATTVAL_INT = "int"; public static final String ATTVAL_INTEGER = "integer"; public static final String ATTVAL_LANGUAGE = "language"; public static final String ATTVAL_LAX = "lax"; public static final String ATTVAL_LIST = "list"; public static final String ATTVAL_LONG = "long"; public static final String ATTVAL_NAME = "Name"; public static final String ATTVAL_NEGATIVEINTEGER = "negativeInteger"; public static final String ATTVAL_MONTH = "gMonth"; public static final String ATTVAL_MONTHDAY = "gMonthDay"; public static final String ATTVAL_NCNAME = "NCName"; public static final String ATTVAL_NMTOKEN = "NMTOKEN"; public static final String ATTVAL_NMTOKENS = "NMTOKENS"; public static final String ATTVAL_NONNEGATIVEINTEGER= "nonNegativeInteger"; public static final String ATTVAL_NONPOSITIVEINTEGER= "nonPositiveInteger"; public static final String ATTVAL_NORMALIZEDSTRING = "normalizedString"; public static final String ATTVAL_NOTATION = "NOTATION"; public static final String ATTVAL_OPTIONAL = "optional"; public static final String ATTVAL_POSITIVEINTEGER = "positiveInteger"; public static final String ATTVAL_PRESERVE = "preserve"; public static final String ATTVAL_PROHIBITED = "prohibited"; public static final String ATTVAL_QNAME = "QName"; public static final String ATTVAL_QUALIFIED = "qualified"; public static final String ATTVAL_REPLACE = "replace"; public static final String ATTVAL_REQUIRED = "required"; public static final String ATTVAL_RESTRICTION = "restriction"; public static final String ATTVAL_SHORT = "short"; public static final String ATTVAL_SKIP = "skip"; public static final String ATTVAL_STRICT = "strict"; public static final String ATTVAL_STRING = "string"; public static final String ATTVAL_SUBSTITUTION = "substitution"; public static final String ATTVAL_TIME = "time"; public static final String ATTVAL_TOKEN = "token"; public static final String ATTVAL_TRUE = "true"; public static final String ATTVAL_UNBOUNDED = "unbounded"; public static final String ATTVAL_UNION = "union"; public static final String ATTVAL_UNQUALIFIED = "unqualified"; public static final String ATTVAL_UNSIGNEDBYTE = "unsignedByte"; public static final String ATTVAL_UNSIGNEDINT = "unsignedInt"; public static final String ATTVAL_UNSIGNEDLONG = "unsignedLong"; public static final String ATTVAL_UNSIGNEDSHORT = "unsignedShort"; public static final String ATTVAL_YEAR = "gYear"; public static final String ATTVAL_YEARMONTH = "gYearMonth"; // form qualified/unqualified public static final short FORM_UNQUALIFIED = 0; public static final short FORM_QUALIFIED = 1; // attribute use public static final short USE_OPTIONAL = 0; public static final short USE_REQUIRED = 1; public static final short USE_PROHIBITED = 2; // maxOccurs = "unbounded" public static final int OCCURRENCE_UNBOUNDED = -1; }