1.1 --- a/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/document/schema/SchemaConstants.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/document/schema/SchemaConstants.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -34,118 +34,103 @@ 1.11 public interface SchemaConstants { 1.12 1.13 // namespace URIs 1.14 - public static String NS_XMLNS = "http://www.w3.org/2000/xmlns/"; 1.15 - public static String NS_XSD = "http://www.w3.org/2001/XMLSchema"; 1.16 - public static String NS_XSI = "http://www.w3.org/2001/XMLSchema-instance"; 1.17 + static final String NS_XMLNS = "http://www.w3.org/2000/xmlns/"; 1.18 + static final String NS_XSD = "http://www.w3.org/2001/XMLSchema"; 1.19 + static final String NS_XSI = "http://www.w3.org/2001/XMLSchema-instance"; 1.20 1.21 // QNames 1.22 - public static QName QNAME_ALL = new QName(NS_XSD, "all"); 1.23 - public static QName QNAME_ANNOTATION = new QName(NS_XSD, "annotation"); 1.24 - public static QName QNAME_ANY = new QName(NS_XSD, "any"); 1.25 - public static QName QNAME_ANY_ATTRIBUTE = new QName(NS_XSD, "anyAttribute"); 1.26 - public static QName QNAME_ATTRIBUTE = new QName(NS_XSD, "attribute"); 1.27 - public static QName QNAME_ATTRIBUTE_GROUP = 1.28 - new QName(NS_XSD, "attributeGroup"); 1.29 - public static QName QNAME_CHOICE = new QName(NS_XSD, "choice"); 1.30 - public static QName QNAME_COMPLEX_CONTENT = 1.31 - new QName(NS_XSD, "complexContent"); 1.32 - public static QName QNAME_COMPLEX_TYPE = new QName(NS_XSD, "complexType"); 1.33 - public static QName QNAME_ELEMENT = new QName(NS_XSD, "element"); 1.34 - public static QName QNAME_ENUMERATION = new QName(NS_XSD, "enumeration"); 1.35 - public static QName QNAME_EXTENSION = new QName(NS_XSD, "extension"); 1.36 - public static QName QNAME_FIELD = new QName(NS_XSD, "field"); 1.37 - public static QName QNAME_FRACTION_DIGITS = 1.38 - new QName(NS_XSD, "fractionDigits"); 1.39 - public static QName QNAME_GROUP = new QName(NS_XSD, "group"); 1.40 - public static QName QNAME_IMPORT = new QName(NS_XSD, "import"); 1.41 - public static QName QNAME_INCLUDE = new QName(NS_XSD, "include"); 1.42 - public static QName QNAME_KEY = new QName(NS_XSD, "key"); 1.43 - public static QName QNAME_KEYREF = new QName(NS_XSD, "keyref"); 1.44 - public static QName QNAME_LENGTH = new QName(NS_XSD, "length"); 1.45 - public static QName QNAME_LIST = new QName(NS_XSD, "list"); 1.46 - public static QName QNAME_MAX_EXCLUSIVE = new QName(NS_XSD, "maxExclusive"); 1.47 - public static QName QNAME_MAX_INCLUSIVE = new QName(NS_XSD, "maxInclusive"); 1.48 - public static QName QNAME_MAX_LENGTH = new QName(NS_XSD, "maxLength"); 1.49 - public static QName QNAME_MIN_EXCLUSIVE = new QName(NS_XSD, "minExclusive"); 1.50 - public static QName QNAME_MIN_INCLUSIVE = new QName(NS_XSD, "minInclusive"); 1.51 - public static QName QNAME_MIN_LENGTH = new QName(NS_XSD, "minLength"); 1.52 - public static QName QNAME_NOTATION = new QName(NS_XSD, "notation"); 1.53 - public static QName QNAME_RESTRICTION = new QName(NS_XSD, "restriction"); 1.54 - public static QName QNAME_PATTERN = new QName(NS_XSD, "pattern"); 1.55 - public static QName QNAME_PRECISION = new QName(NS_XSD, "precision"); 1.56 - public static QName QNAME_REDEFINE = new QName(NS_XSD, "redefine"); 1.57 - public static QName QNAME_SCALE = new QName(NS_XSD, "scale"); 1.58 - public static QName QNAME_SCHEMA = new QName(NS_XSD, "schema"); 1.59 - public static QName QNAME_SELECTOR = new QName(NS_XSD, "selector"); 1.60 - public static QName QNAME_SEQUENCE = new QName(NS_XSD, "sequence"); 1.61 - public static QName QNAME_SIMPLE_CONTENT = 1.62 + static final QName QNAME_ALL = new QName(NS_XSD, "all"); 1.63 + static final QName QNAME_ANNOTATION = new QName(NS_XSD, "annotation"); 1.64 + static final QName QNAME_ANY = new QName(NS_XSD, "any"); 1.65 + static final QName QNAME_ANY_ATTRIBUTE = new QName(NS_XSD, "anyAttribute"); 1.66 + static final QName QNAME_ATTRIBUTE = new QName(NS_XSD, "attribute"); 1.67 + static final QName QNAME_ATTRIBUTE_GROUP = new QName(NS_XSD, "attributeGroup"); 1.68 + static final QName QNAME_CHOICE = new QName(NS_XSD, "choice"); 1.69 + static final QName QNAME_COMPLEX_CONTENT = new QName(NS_XSD, "complexContent"); 1.70 + static final QName QNAME_COMPLEX_TYPE = new QName(NS_XSD, "complexType"); 1.71 + static final QName QNAME_ELEMENT = new QName(NS_XSD, "element"); 1.72 + static final QName QNAME_ENUMERATION = new QName(NS_XSD, "enumeration"); 1.73 + static final QName QNAME_EXTENSION = new QName(NS_XSD, "extension"); 1.74 + static final QName QNAME_FIELD = new QName(NS_XSD, "field"); 1.75 + static final QName QNAME_FRACTION_DIGITS = new QName(NS_XSD, "fractionDigits"); 1.76 + static final QName QNAME_GROUP = new QName(NS_XSD, "group"); 1.77 + static final QName QNAME_IMPORT = new QName(NS_XSD, "import"); 1.78 + static final QName QNAME_INCLUDE = new QName(NS_XSD, "include"); 1.79 + static final QName QNAME_KEY = new QName(NS_XSD, "key"); 1.80 + static final QName QNAME_KEYREF = new QName(NS_XSD, "keyref"); 1.81 + static final QName QNAME_LENGTH = new QName(NS_XSD, "length"); 1.82 + static final QName QNAME_LIST = new QName(NS_XSD, "list"); 1.83 + static final QName QNAME_MAX_EXCLUSIVE = new QName(NS_XSD, "maxExclusive"); 1.84 + static final QName QNAME_MAX_INCLUSIVE = new QName(NS_XSD, "maxInclusive"); 1.85 + static final QName QNAME_MAX_LENGTH = new QName(NS_XSD, "maxLength"); 1.86 + static final QName QNAME_MIN_EXCLUSIVE = new QName(NS_XSD, "minExclusive"); 1.87 + static final QName QNAME_MIN_INCLUSIVE = new QName(NS_XSD, "minInclusive"); 1.88 + static final QName QNAME_MIN_LENGTH = new QName(NS_XSD, "minLength"); 1.89 + static final QName QNAME_NOTATION = new QName(NS_XSD, "notation"); 1.90 + static final QName QNAME_RESTRICTION = new QName(NS_XSD, "restriction"); 1.91 + static final QName QNAME_PATTERN = new QName(NS_XSD, "pattern"); 1.92 + static final QName QNAME_PRECISION = new QName(NS_XSD, "precision"); 1.93 + static final QName QNAME_REDEFINE = new QName(NS_XSD, "redefine"); 1.94 + static final QName QNAME_SCALE = new QName(NS_XSD, "scale"); 1.95 + static final QName QNAME_SCHEMA = new QName(NS_XSD, "schema"); 1.96 + static final QName QNAME_SELECTOR = new QName(NS_XSD, "selector"); 1.97 + static final QName QNAME_SEQUENCE = new QName(NS_XSD, "sequence"); 1.98 + static final QName QNAME_SIMPLE_CONTENT = 1.99 new QName(NS_XSD, "simpleContent"); 1.100 - public static QName QNAME_SIMPLE_TYPE = new QName(NS_XSD, "simpleType"); 1.101 - public static QName QNAME_TOTAL_DIGITS = new QName(NS_XSD, "totalDigits"); 1.102 - public static QName QNAME_UNIQUE = new QName(NS_XSD, "unique"); 1.103 - public static QName QNAME_UNION = new QName(NS_XSD, "union"); 1.104 - public static QName QNAME_WHITE_SPACE = new QName(NS_XSD, "whiteSpace"); 1.105 + static final QName QNAME_SIMPLE_TYPE = new QName(NS_XSD, "simpleType"); 1.106 + static final QName QNAME_TOTAL_DIGITS = new QName(NS_XSD, "totalDigits"); 1.107 + static final QName QNAME_UNIQUE = new QName(NS_XSD, "unique"); 1.108 + static final QName QNAME_UNION = new QName(NS_XSD, "union"); 1.109 + static final QName QNAME_WHITE_SPACE = new QName(NS_XSD, "whiteSpace"); 1.110 1.111 // QNames for built-in XSD types 1.112 - public static QName QNAME_TYPE_STRING = new QName(NS_XSD, "string"); 1.113 - public static QName QNAME_TYPE_NORMALIZED_STRING = 1.114 - new QName(NS_XSD, "normalizedString"); 1.115 - public static QName QNAME_TYPE_TOKEN = new QName(NS_XSD, "token"); 1.116 - public static QName QNAME_TYPE_BYTE = new QName(NS_XSD, "byte"); 1.117 - public static QName QNAME_TYPE_UNSIGNED_BYTE = 1.118 - new QName(NS_XSD, "unsignedByte"); 1.119 - public static QName QNAME_TYPE_BASE64_BINARY = 1.120 - new QName(NS_XSD, "base64Binary"); 1.121 - public static QName QNAME_TYPE_HEX_BINARY = new QName(NS_XSD, "hexBinary"); 1.122 - public static QName QNAME_TYPE_INTEGER = new QName(NS_XSD, "integer"); 1.123 - public static QName QNAME_TYPE_POSITIVE_INTEGER = 1.124 - new QName(NS_XSD, "positiveInteger"); 1.125 - public static QName QNAME_TYPE_NEGATIVE_INTEGER = 1.126 - new QName(NS_XSD, "negativeInteger"); 1.127 - public static QName QNAME_TYPE_NON_NEGATIVE_INTEGER = 1.128 - new QName(NS_XSD, "nonNegativeInteger"); 1.129 - public static QName QNAME_TYPE_NON_POSITIVE_INTEGER = 1.130 - new QName(NS_XSD, "nonPositiveInteger"); 1.131 - public static QName QNAME_TYPE_INT = new QName(NS_XSD, "int"); 1.132 - public static QName QNAME_TYPE_UNSIGNED_INT = 1.133 - new QName(NS_XSD, "unsignedInt"); 1.134 - public static QName QNAME_TYPE_LONG = new QName(NS_XSD, "long"); 1.135 - public static QName QNAME_TYPE_UNSIGNED_LONG = 1.136 - new QName(NS_XSD, "unsignedLong"); 1.137 - public static QName QNAME_TYPE_SHORT = new QName(NS_XSD, "short"); 1.138 - public static QName QNAME_TYPE_UNSIGNED_SHORT = 1.139 - new QName(NS_XSD, "unsignedShort"); 1.140 - public static QName QNAME_TYPE_DECIMAL = new QName(NS_XSD, "decimal"); 1.141 - public static QName QNAME_TYPE_FLOAT = new QName(NS_XSD, "float"); 1.142 - public static QName QNAME_TYPE_DOUBLE = new QName(NS_XSD, "double"); 1.143 - public static QName QNAME_TYPE_BOOLEAN = new QName(NS_XSD, "boolean"); 1.144 - public static QName QNAME_TYPE_TIME = new QName(NS_XSD, "time"); 1.145 - public static QName QNAME_TYPE_DATE_TIME = new QName(NS_XSD, "dateTime"); 1.146 - public static QName QNAME_TYPE_DURATION = new QName(NS_XSD, "duration"); 1.147 - public static QName QNAME_TYPE_DATE = new QName(NS_XSD, "date"); 1.148 - public static QName QNAME_TYPE_G_MONTH = new QName(NS_XSD, "gMonth"); 1.149 - public static QName QNAME_TYPE_G_YEAR = new QName(NS_XSD, "gYear"); 1.150 - public static QName QNAME_TYPE_G_YEAR_MONTH = 1.151 - new QName(NS_XSD, "gYearMonth"); 1.152 - public static QName QNAME_TYPE_G_DAY = new QName(NS_XSD, "gDay"); 1.153 - public static QName QNAME_TYPE_G_MONTH_DAY = new QName(NS_XSD, "gMonthDay"); 1.154 - public static QName QNAME_TYPE_NAME = new QName(NS_XSD, "Name"); 1.155 - public static QName QNAME_TYPE_QNAME = new QName(NS_XSD, "QName"); 1.156 - public static QName QNAME_TYPE_NCNAME = new QName(NS_XSD, "NCName"); 1.157 - public static QName QNAME_TYPE_ANY_URI = new QName(NS_XSD, "anyURI"); 1.158 - public static QName QNAME_TYPE_ID = new QName(NS_XSD, "ID"); 1.159 - public static QName QNAME_TYPE_IDREF = new QName(NS_XSD, "IDREF"); 1.160 - public static QName QNAME_TYPE_IDREFS = new QName(NS_XSD, "IDREFS"); 1.161 - public static QName QNAME_TYPE_ENTITY = new QName(NS_XSD, "ENTITY"); 1.162 - public static QName QNAME_TYPE_ENTITIES = new QName(NS_XSD, "ENTITIES"); 1.163 - public static QName QNAME_TYPE_NOTATION = new QName(NS_XSD, "NOTATION"); 1.164 - public static QName QNAME_TYPE_NMTOKEN = new QName(NS_XSD, "NMTOKEN"); 1.165 - public static QName QNAME_TYPE_NMTOKENS = new QName(NS_XSD, "NMTOKENS"); 1.166 + static final QName QNAME_TYPE_STRING = new QName(NS_XSD, "string"); 1.167 + static final QName QNAME_TYPE_NORMALIZED_STRING = new QName(NS_XSD, "normalizedString"); 1.168 + static final QName QNAME_TYPE_TOKEN = new QName(NS_XSD, "token"); 1.169 + static final QName QNAME_TYPE_BYTE = new QName(NS_XSD, "byte"); 1.170 + static final QName QNAME_TYPE_UNSIGNED_BYTE = new QName(NS_XSD, "unsignedByte"); 1.171 + static final QName QNAME_TYPE_BASE64_BINARY = new QName(NS_XSD, "base64Binary"); 1.172 + static final QName QNAME_TYPE_HEX_BINARY = new QName(NS_XSD, "hexBinary"); 1.173 + static final QName QNAME_TYPE_INTEGER = new QName(NS_XSD, "integer"); 1.174 + static final QName QNAME_TYPE_POSITIVE_INTEGER = new QName(NS_XSD, "positiveInteger"); 1.175 + static final QName QNAME_TYPE_NEGATIVE_INTEGER = new QName(NS_XSD, "negativeInteger"); 1.176 + static final QName QNAME_TYPE_NON_NEGATIVE_INTEGER = new QName(NS_XSD, "nonNegativeInteger"); 1.177 + static final QName QNAME_TYPE_NON_POSITIVE_INTEGER = new QName(NS_XSD, "nonPositiveInteger"); 1.178 + static final QName QNAME_TYPE_INT = new QName(NS_XSD, "int"); 1.179 + static final QName QNAME_TYPE_UNSIGNED_INT = new QName(NS_XSD, "unsignedInt"); 1.180 + static final QName QNAME_TYPE_LONG = new QName(NS_XSD, "long"); 1.181 + static final QName QNAME_TYPE_UNSIGNED_LONG = new QName(NS_XSD, "unsignedLong"); 1.182 + static final QName QNAME_TYPE_SHORT = new QName(NS_XSD, "short"); 1.183 + static final QName QNAME_TYPE_UNSIGNED_SHORT = new QName(NS_XSD, "unsignedShort"); 1.184 + static final QName QNAME_TYPE_DECIMAL = new QName(NS_XSD, "decimal"); 1.185 + static final QName QNAME_TYPE_FLOAT = new QName(NS_XSD, "float"); 1.186 + static final QName QNAME_TYPE_DOUBLE = new QName(NS_XSD, "double"); 1.187 + static final QName QNAME_TYPE_BOOLEAN = new QName(NS_XSD, "boolean"); 1.188 + static final QName QNAME_TYPE_TIME = new QName(NS_XSD, "time"); 1.189 + static final QName QNAME_TYPE_DATE_TIME = new QName(NS_XSD, "dateTime"); 1.190 + static final QName QNAME_TYPE_DURATION = new QName(NS_XSD, "duration"); 1.191 + static final QName QNAME_TYPE_DATE = new QName(NS_XSD, "date"); 1.192 + static final QName QNAME_TYPE_G_MONTH = new QName(NS_XSD, "gMonth"); 1.193 + static final QName QNAME_TYPE_G_YEAR = new QName(NS_XSD, "gYear"); 1.194 + static final QName QNAME_TYPE_G_YEAR_MONTH = new QName(NS_XSD, "gYearMonth"); 1.195 + static final QName QNAME_TYPE_G_DAY = new QName(NS_XSD, "gDay"); 1.196 + static final QName QNAME_TYPE_G_MONTH_DAY = new QName(NS_XSD, "gMonthDay"); 1.197 + static final QName QNAME_TYPE_NAME = new QName(NS_XSD, "Name"); 1.198 + static final QName QNAME_TYPE_QNAME = new QName(NS_XSD, "QName"); 1.199 + static final QName QNAME_TYPE_NCNAME = new QName(NS_XSD, "NCName"); 1.200 + static final QName QNAME_TYPE_ANY_URI = new QName(NS_XSD, "anyURI"); 1.201 + static final QName QNAME_TYPE_ID = new QName(NS_XSD, "ID"); 1.202 + static final QName QNAME_TYPE_IDREF = new QName(NS_XSD, "IDREF"); 1.203 + static final QName QNAME_TYPE_IDREFS = new QName(NS_XSD, "IDREFS"); 1.204 + static final QName QNAME_TYPE_ENTITY = new QName(NS_XSD, "ENTITY"); 1.205 + static final QName QNAME_TYPE_ENTITIES = new QName(NS_XSD, "ENTITIES"); 1.206 + static final QName QNAME_TYPE_NOTATION = new QName(NS_XSD, "NOTATION"); 1.207 + static final QName QNAME_TYPE_NMTOKEN = new QName(NS_XSD, "NMTOKEN"); 1.208 + static final QName QNAME_TYPE_NMTOKENS = new QName(NS_XSD, "NMTOKENS"); 1.209 1.210 - public static QName QNAME_TYPE_LANGUAGE = new QName(NS_XSD, "language"); 1.211 + static final QName QNAME_TYPE_LANGUAGE = new QName(NS_XSD, "language"); 1.212 1.213 // QNames for special types 1.214 - public static QName QNAME_TYPE_URTYPE = new QName(NS_XSD, "anyType"); 1.215 - public static QName QNAME_TYPE_SIMPLE_URTYPE = 1.216 - new QName(NS_XSD, "anySimpleType"); 1.217 + static final QName QNAME_TYPE_URTYPE = new QName(NS_XSD, "anyType"); 1.218 + static final QName QNAME_TYPE_SIMPLE_URTYPE = new QName(NS_XSD, "anySimpleType"); 1.219 }