001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036:
037: package com.sun.tools.ws.wsdl.document.schema;
038:
039: import javax.xml.namespace.QName;
040:
041: /**
042: *
043: * @author WS Development Team
044: */
045: public interface SchemaConstants {
046:
047: // namespace URIs
048: public static String NS_XMLNS = "http://www.w3.org/2000/xmlns/";
049: public static String NS_XSD = "http://www.w3.org/2001/XMLSchema";
050: public static String NS_XSI = "http://www.w3.org/2001/XMLSchema-instance";
051:
052: // QNames
053: public static QName QNAME_ALL = new QName(NS_XSD, "all");
054: public static QName QNAME_ANNOTATION = new QName(NS_XSD,
055: "annotation");
056: public static QName QNAME_ANY = new QName(NS_XSD, "any");
057: public static QName QNAME_ANY_ATTRIBUTE = new QName(NS_XSD,
058: "anyAttribute");
059: public static QName QNAME_ATTRIBUTE = new QName(NS_XSD, "attribute");
060: public static QName QNAME_ATTRIBUTE_GROUP = new QName(NS_XSD,
061: "attributeGroup");
062: public static QName QNAME_CHOICE = new QName(NS_XSD, "choice");
063: public static QName QNAME_COMPLEX_CONTENT = new QName(NS_XSD,
064: "complexContent");
065: public static QName QNAME_COMPLEX_TYPE = new QName(NS_XSD,
066: "complexType");
067: public static QName QNAME_ELEMENT = new QName(NS_XSD, "element");
068: public static QName QNAME_ENUMERATION = new QName(NS_XSD,
069: "enumeration");
070: public static QName QNAME_EXTENSION = new QName(NS_XSD, "extension");
071: public static QName QNAME_FIELD = new QName(NS_XSD, "field");
072: public static QName QNAME_FRACTION_DIGITS = new QName(NS_XSD,
073: "fractionDigits");
074: public static QName QNAME_GROUP = new QName(NS_XSD, "group");
075: public static QName QNAME_IMPORT = new QName(NS_XSD, "import");
076: public static QName QNAME_INCLUDE = new QName(NS_XSD, "include");
077: public static QName QNAME_KEY = new QName(NS_XSD, "key");
078: public static QName QNAME_KEYREF = new QName(NS_XSD, "keyref");
079: public static QName QNAME_LENGTH = new QName(NS_XSD, "length");
080: public static QName QNAME_LIST = new QName(NS_XSD, "list");
081: public static QName QNAME_MAX_EXCLUSIVE = new QName(NS_XSD,
082: "maxExclusive");
083: public static QName QNAME_MAX_INCLUSIVE = new QName(NS_XSD,
084: "maxInclusive");
085: public static QName QNAME_MAX_LENGTH = new QName(NS_XSD,
086: "maxLength");
087: public static QName QNAME_MIN_EXCLUSIVE = new QName(NS_XSD,
088: "minExclusive");
089: public static QName QNAME_MIN_INCLUSIVE = new QName(NS_XSD,
090: "minInclusive");
091: public static QName QNAME_MIN_LENGTH = new QName(NS_XSD,
092: "minLength");
093: public static QName QNAME_NOTATION = new QName(NS_XSD, "notation");
094: public static QName QNAME_RESTRICTION = new QName(NS_XSD,
095: "restriction");
096: public static QName QNAME_PATTERN = new QName(NS_XSD, "pattern");
097: public static QName QNAME_PRECISION = new QName(NS_XSD, "precision");
098: public static QName QNAME_REDEFINE = new QName(NS_XSD, "redefine");
099: public static QName QNAME_SCALE = new QName(NS_XSD, "scale");
100: public static QName QNAME_SCHEMA = new QName(NS_XSD, "schema");
101: public static QName QNAME_SELECTOR = new QName(NS_XSD, "selector");
102: public static QName QNAME_SEQUENCE = new QName(NS_XSD, "sequence");
103: public static QName QNAME_SIMPLE_CONTENT = new QName(NS_XSD,
104: "simpleContent");
105: public static QName QNAME_SIMPLE_TYPE = new QName(NS_XSD,
106: "simpleType");
107: public static QName QNAME_TOTAL_DIGITS = new QName(NS_XSD,
108: "totalDigits");
109: public static QName QNAME_UNIQUE = new QName(NS_XSD, "unique");
110: public static QName QNAME_UNION = new QName(NS_XSD, "union");
111: public static QName QNAME_WHITE_SPACE = new QName(NS_XSD,
112: "whiteSpace");
113:
114: // QNames for built-in XSD types
115: public static QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
116: public static QName QNAME_TYPE_NORMALIZED_STRING = new QName(
117: NS_XSD, "normalizedString");
118: public static QName QNAME_TYPE_TOKEN = new QName(NS_XSD, "token");
119: public static QName QNAME_TYPE_BYTE = new QName(NS_XSD, "byte");
120: public static QName QNAME_TYPE_UNSIGNED_BYTE = new QName(NS_XSD,
121: "unsignedByte");
122: public static QName QNAME_TYPE_BASE64_BINARY = new QName(NS_XSD,
123: "base64Binary");
124: public static QName QNAME_TYPE_HEX_BINARY = new QName(NS_XSD,
125: "hexBinary");
126: public static QName QNAME_TYPE_INTEGER = new QName(NS_XSD,
127: "integer");
128: public static QName QNAME_TYPE_POSITIVE_INTEGER = new QName(NS_XSD,
129: "positiveInteger");
130: public static QName QNAME_TYPE_NEGATIVE_INTEGER = new QName(NS_XSD,
131: "negativeInteger");
132: public static QName QNAME_TYPE_NON_NEGATIVE_INTEGER = new QName(
133: NS_XSD, "nonNegativeInteger");
134: public static QName QNAME_TYPE_NON_POSITIVE_INTEGER = new QName(
135: NS_XSD, "nonPositiveInteger");
136: public static QName QNAME_TYPE_INT = new QName(NS_XSD, "int");
137: public static QName QNAME_TYPE_UNSIGNED_INT = new QName(NS_XSD,
138: "unsignedInt");
139: public static QName QNAME_TYPE_LONG = new QName(NS_XSD, "long");
140: public static QName QNAME_TYPE_UNSIGNED_LONG = new QName(NS_XSD,
141: "unsignedLong");
142: public static QName QNAME_TYPE_SHORT = new QName(NS_XSD, "short");
143: public static QName QNAME_TYPE_UNSIGNED_SHORT = new QName(NS_XSD,
144: "unsignedShort");
145: public static QName QNAME_TYPE_DECIMAL = new QName(NS_XSD,
146: "decimal");
147: public static QName QNAME_TYPE_FLOAT = new QName(NS_XSD, "float");
148: public static QName QNAME_TYPE_DOUBLE = new QName(NS_XSD, "double");
149: public static QName QNAME_TYPE_BOOLEAN = new QName(NS_XSD,
150: "boolean");
151: public static QName QNAME_TYPE_TIME = new QName(NS_XSD, "time");
152: public static QName QNAME_TYPE_DATE_TIME = new QName(NS_XSD,
153: "dateTime");
154: public static QName QNAME_TYPE_DURATION = new QName(NS_XSD,
155: "duration");
156: public static QName QNAME_TYPE_DATE = new QName(NS_XSD, "date");
157: public static QName QNAME_TYPE_G_MONTH = new QName(NS_XSD, "gMonth");
158: public static QName QNAME_TYPE_G_YEAR = new QName(NS_XSD, "gYear");
159: public static QName QNAME_TYPE_G_YEAR_MONTH = new QName(NS_XSD,
160: "gYearMonth");
161: public static QName QNAME_TYPE_G_DAY = new QName(NS_XSD, "gDay");
162: public static QName QNAME_TYPE_G_MONTH_DAY = new QName(NS_XSD,
163: "gMonthDay");
164: public static QName QNAME_TYPE_NAME = new QName(NS_XSD, "Name");
165: public static QName QNAME_TYPE_QNAME = new QName(NS_XSD, "QName");
166: public static QName QNAME_TYPE_NCNAME = new QName(NS_XSD, "NCName");
167: public static QName QNAME_TYPE_ANY_URI = new QName(NS_XSD, "anyURI");
168: public static QName QNAME_TYPE_ID = new QName(NS_XSD, "ID");
169: public static QName QNAME_TYPE_IDREF = new QName(NS_XSD, "IDREF");
170: public static QName QNAME_TYPE_IDREFS = new QName(NS_XSD, "IDREFS");
171: public static QName QNAME_TYPE_ENTITY = new QName(NS_XSD, "ENTITY");
172: public static QName QNAME_TYPE_ENTITIES = new QName(NS_XSD,
173: "ENTITIES");
174: public static QName QNAME_TYPE_NOTATION = new QName(NS_XSD,
175: "NOTATION");
176: public static QName QNAME_TYPE_NMTOKEN = new QName(NS_XSD,
177: "NMTOKEN");
178: public static QName QNAME_TYPE_NMTOKENS = new QName(NS_XSD,
179: "NMTOKENS");
180:
181: public static QName QNAME_TYPE_LANGUAGE = new QName(NS_XSD,
182: "language");
183:
184: // QNames for special types
185: public static QName QNAME_TYPE_URTYPE = new QName(NS_XSD, "anyType");
186: public static QName QNAME_TYPE_SIMPLE_URTYPE = new QName(NS_XSD,
187: "anySimpleType");
188: }
|