1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/document/schema/SchemaConstants.java Wed Apr 27 01:27:09 2016 +0800 1.3 @@ -0,0 +1,136 @@ 1.4 +/* 1.5 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. Oracle designates this 1.11 + * particular file as subject to the "Classpath" exception as provided 1.12 + * by Oracle in the LICENSE file that accompanied this code. 1.13 + * 1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 + * version 2 for more details (a copy is included in the LICENSE file that 1.18 + * accompanied this code). 1.19 + * 1.20 + * You should have received a copy of the GNU General Public License version 1.21 + * 2 along with this work; if not, write to the Free Software Foundation, 1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 + * 1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.25 + * or visit www.oracle.com if you need additional information or have any 1.26 + * questions. 1.27 + */ 1.28 + 1.29 +package com.sun.tools.internal.ws.wsdl.document.schema; 1.30 + 1.31 +import javax.xml.namespace.QName; 1.32 + 1.33 +/** 1.34 + * 1.35 + * @author WS Development Team 1.36 + */ 1.37 +public interface SchemaConstants { 1.38 + 1.39 + // namespace URIs 1.40 + static final String NS_XMLNS = "http://www.w3.org/2000/xmlns/"; 1.41 + static final String NS_XSD = "http://www.w3.org/2001/XMLSchema"; 1.42 + static final String NS_XSI = "http://www.w3.org/2001/XMLSchema-instance"; 1.43 + 1.44 + // QNames 1.45 + static final QName QNAME_ALL = new QName(NS_XSD, "all"); 1.46 + static final QName QNAME_ANNOTATION = new QName(NS_XSD, "annotation"); 1.47 + static final QName QNAME_ANY = new QName(NS_XSD, "any"); 1.48 + static final QName QNAME_ANY_ATTRIBUTE = new QName(NS_XSD, "anyAttribute"); 1.49 + static final QName QNAME_ATTRIBUTE = new QName(NS_XSD, "attribute"); 1.50 + static final QName QNAME_ATTRIBUTE_GROUP = new QName(NS_XSD, "attributeGroup"); 1.51 + static final QName QNAME_CHOICE = new QName(NS_XSD, "choice"); 1.52 + static final QName QNAME_COMPLEX_CONTENT = new QName(NS_XSD, "complexContent"); 1.53 + static final QName QNAME_COMPLEX_TYPE = new QName(NS_XSD, "complexType"); 1.54 + static final QName QNAME_ELEMENT = new QName(NS_XSD, "element"); 1.55 + static final QName QNAME_ENUMERATION = new QName(NS_XSD, "enumeration"); 1.56 + static final QName QNAME_EXTENSION = new QName(NS_XSD, "extension"); 1.57 + static final QName QNAME_FIELD = new QName(NS_XSD, "field"); 1.58 + static final QName QNAME_FRACTION_DIGITS = new QName(NS_XSD, "fractionDigits"); 1.59 + static final QName QNAME_GROUP = new QName(NS_XSD, "group"); 1.60 + static final QName QNAME_IMPORT = new QName(NS_XSD, "import"); 1.61 + static final QName QNAME_INCLUDE = new QName(NS_XSD, "include"); 1.62 + static final QName QNAME_KEY = new QName(NS_XSD, "key"); 1.63 + static final QName QNAME_KEYREF = new QName(NS_XSD, "keyref"); 1.64 + static final QName QNAME_LENGTH = new QName(NS_XSD, "length"); 1.65 + static final QName QNAME_LIST = new QName(NS_XSD, "list"); 1.66 + static final QName QNAME_MAX_EXCLUSIVE = new QName(NS_XSD, "maxExclusive"); 1.67 + static final QName QNAME_MAX_INCLUSIVE = new QName(NS_XSD, "maxInclusive"); 1.68 + static final QName QNAME_MAX_LENGTH = new QName(NS_XSD, "maxLength"); 1.69 + static final QName QNAME_MIN_EXCLUSIVE = new QName(NS_XSD, "minExclusive"); 1.70 + static final QName QNAME_MIN_INCLUSIVE = new QName(NS_XSD, "minInclusive"); 1.71 + static final QName QNAME_MIN_LENGTH = new QName(NS_XSD, "minLength"); 1.72 + static final QName QNAME_NOTATION = new QName(NS_XSD, "notation"); 1.73 + static final QName QNAME_RESTRICTION = new QName(NS_XSD, "restriction"); 1.74 + static final QName QNAME_PATTERN = new QName(NS_XSD, "pattern"); 1.75 + static final QName QNAME_PRECISION = new QName(NS_XSD, "precision"); 1.76 + static final QName QNAME_REDEFINE = new QName(NS_XSD, "redefine"); 1.77 + static final QName QNAME_SCALE = new QName(NS_XSD, "scale"); 1.78 + static final QName QNAME_SCHEMA = new QName(NS_XSD, "schema"); 1.79 + static final QName QNAME_SELECTOR = new QName(NS_XSD, "selector"); 1.80 + static final QName QNAME_SEQUENCE = new QName(NS_XSD, "sequence"); 1.81 + static final QName QNAME_SIMPLE_CONTENT = 1.82 + new QName(NS_XSD, "simpleContent"); 1.83 + static final QName QNAME_SIMPLE_TYPE = new QName(NS_XSD, "simpleType"); 1.84 + static final QName QNAME_TOTAL_DIGITS = new QName(NS_XSD, "totalDigits"); 1.85 + static final QName QNAME_UNIQUE = new QName(NS_XSD, "unique"); 1.86 + static final QName QNAME_UNION = new QName(NS_XSD, "union"); 1.87 + static final QName QNAME_WHITE_SPACE = new QName(NS_XSD, "whiteSpace"); 1.88 + 1.89 + // QNames for built-in XSD types 1.90 + static final QName QNAME_TYPE_STRING = new QName(NS_XSD, "string"); 1.91 + static final QName QNAME_TYPE_NORMALIZED_STRING = new QName(NS_XSD, "normalizedString"); 1.92 + static final QName QNAME_TYPE_TOKEN = new QName(NS_XSD, "token"); 1.93 + static final QName QNAME_TYPE_BYTE = new QName(NS_XSD, "byte"); 1.94 + static final QName QNAME_TYPE_UNSIGNED_BYTE = new QName(NS_XSD, "unsignedByte"); 1.95 + static final QName QNAME_TYPE_BASE64_BINARY = new QName(NS_XSD, "base64Binary"); 1.96 + static final QName QNAME_TYPE_HEX_BINARY = new QName(NS_XSD, "hexBinary"); 1.97 + static final QName QNAME_TYPE_INTEGER = new QName(NS_XSD, "integer"); 1.98 + static final QName QNAME_TYPE_POSITIVE_INTEGER = new QName(NS_XSD, "positiveInteger"); 1.99 + static final QName QNAME_TYPE_NEGATIVE_INTEGER = new QName(NS_XSD, "negativeInteger"); 1.100 + static final QName QNAME_TYPE_NON_NEGATIVE_INTEGER = new QName(NS_XSD, "nonNegativeInteger"); 1.101 + static final QName QNAME_TYPE_NON_POSITIVE_INTEGER = new QName(NS_XSD, "nonPositiveInteger"); 1.102 + static final QName QNAME_TYPE_INT = new QName(NS_XSD, "int"); 1.103 + static final QName QNAME_TYPE_UNSIGNED_INT = new QName(NS_XSD, "unsignedInt"); 1.104 + static final QName QNAME_TYPE_LONG = new QName(NS_XSD, "long"); 1.105 + static final QName QNAME_TYPE_UNSIGNED_LONG = new QName(NS_XSD, "unsignedLong"); 1.106 + static final QName QNAME_TYPE_SHORT = new QName(NS_XSD, "short"); 1.107 + static final QName QNAME_TYPE_UNSIGNED_SHORT = new QName(NS_XSD, "unsignedShort"); 1.108 + static final QName QNAME_TYPE_DECIMAL = new QName(NS_XSD, "decimal"); 1.109 + static final QName QNAME_TYPE_FLOAT = new QName(NS_XSD, "float"); 1.110 + static final QName QNAME_TYPE_DOUBLE = new QName(NS_XSD, "double"); 1.111 + static final QName QNAME_TYPE_BOOLEAN = new QName(NS_XSD, "boolean"); 1.112 + static final QName QNAME_TYPE_TIME = new QName(NS_XSD, "time"); 1.113 + static final QName QNAME_TYPE_DATE_TIME = new QName(NS_XSD, "dateTime"); 1.114 + static final QName QNAME_TYPE_DURATION = new QName(NS_XSD, "duration"); 1.115 + static final QName QNAME_TYPE_DATE = new QName(NS_XSD, "date"); 1.116 + static final QName QNAME_TYPE_G_MONTH = new QName(NS_XSD, "gMonth"); 1.117 + static final QName QNAME_TYPE_G_YEAR = new QName(NS_XSD, "gYear"); 1.118 + static final QName QNAME_TYPE_G_YEAR_MONTH = new QName(NS_XSD, "gYearMonth"); 1.119 + static final QName QNAME_TYPE_G_DAY = new QName(NS_XSD, "gDay"); 1.120 + static final QName QNAME_TYPE_G_MONTH_DAY = new QName(NS_XSD, "gMonthDay"); 1.121 + static final QName QNAME_TYPE_NAME = new QName(NS_XSD, "Name"); 1.122 + static final QName QNAME_TYPE_QNAME = new QName(NS_XSD, "QName"); 1.123 + static final QName QNAME_TYPE_NCNAME = new QName(NS_XSD, "NCName"); 1.124 + static final QName QNAME_TYPE_ANY_URI = new QName(NS_XSD, "anyURI"); 1.125 + static final QName QNAME_TYPE_ID = new QName(NS_XSD, "ID"); 1.126 + static final QName QNAME_TYPE_IDREF = new QName(NS_XSD, "IDREF"); 1.127 + static final QName QNAME_TYPE_IDREFS = new QName(NS_XSD, "IDREFS"); 1.128 + static final QName QNAME_TYPE_ENTITY = new QName(NS_XSD, "ENTITY"); 1.129 + static final QName QNAME_TYPE_ENTITIES = new QName(NS_XSD, "ENTITIES"); 1.130 + static final QName QNAME_TYPE_NOTATION = new QName(NS_XSD, "NOTATION"); 1.131 + static final QName QNAME_TYPE_NMTOKEN = new QName(NS_XSD, "NMTOKEN"); 1.132 + static final QName QNAME_TYPE_NMTOKENS = new QName(NS_XSD, "NMTOKENS"); 1.133 + 1.134 + static final QName QNAME_TYPE_LANGUAGE = new QName(NS_XSD, "language"); 1.135 + 1.136 + // QNames for special types 1.137 + static final QName QNAME_TYPE_URTYPE = new QName(NS_XSD, "anyType"); 1.138 + static final QName QNAME_TYPE_SIMPLE_URTYPE = new QName(NS_XSD, "anySimpleType"); 1.139 +}