|
1 /* |
|
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 * |
|
5 * This code is free software; you can redistribute it and/or modify it |
|
6 * under the terms of the GNU General Public License version 2 only, as |
|
7 * published by the Free Software Foundation. Oracle designates this |
|
8 * particular file as subject to the "Classpath" exception as provided |
|
9 * by Oracle in the LICENSE file that accompanied this code. |
|
10 * |
|
11 * This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 * version 2 for more details (a copy is included in the LICENSE file that |
|
15 * accompanied this code). |
|
16 * |
|
17 * You should have received a copy of the GNU General Public License version |
|
18 * 2 along with this work; if not, write to the Free Software Foundation, |
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 * |
|
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 * or visit www.oracle.com if you need additional information or have any |
|
23 * questions. |
|
24 */ |
|
25 |
|
26 package com.sun.tools.internal.ws.wsdl.document.soap; |
|
27 |
|
28 import com.sun.xml.internal.ws.encoding.soap.streaming.SOAPNamespaceConstants; |
|
29 |
|
30 import javax.xml.namespace.QName; |
|
31 |
|
32 /** |
|
33 * Interface defining SOAP-related constants. |
|
34 * |
|
35 * @author WS Development Team |
|
36 */ |
|
37 public interface SOAPConstants { |
|
38 |
|
39 // namespace URIs |
|
40 public static final String URI_ENVELOPE = SOAPNamespaceConstants.ENVELOPE; |
|
41 public static final String NS_WSDL_SOAP = |
|
42 "http://schemas.xmlsoap.org/wsdl/soap/"; |
|
43 public static final String NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/"; |
|
44 |
|
45 // other URIs |
|
46 public final String URI_SOAP_TRANSPORT_HTTP = |
|
47 "http://schemas.xmlsoap.org/soap/http"; |
|
48 |
|
49 // QNames |
|
50 public static final QName QNAME_ADDRESS = |
|
51 new QName(NS_WSDL_SOAP, "address"); |
|
52 public static final QName QNAME_BINDING = |
|
53 new QName(NS_WSDL_SOAP, "binding"); |
|
54 public static final QName QNAME_BODY = new QName(NS_WSDL_SOAP, "body"); |
|
55 public static final QName QNAME_FAULT = new QName(NS_WSDL_SOAP, "fault"); |
|
56 public static final QName QNAME_HEADER = new QName(NS_WSDL_SOAP, "header"); |
|
57 public static final QName QNAME_HEADERFAULT = |
|
58 new QName(NS_WSDL_SOAP, "headerfault"); |
|
59 public static final QName QNAME_OPERATION = |
|
60 new QName(NS_WSDL_SOAP, "operation"); |
|
61 public static final QName QNAME_MUSTUNDERSTAND = |
|
62 new QName(URI_ENVELOPE, "mustUnderstand"); |
|
63 |
|
64 |
|
65 // SOAP encoding QNames |
|
66 public static final QName QNAME_TYPE_ARRAY = |
|
67 new QName(NS_SOAP_ENCODING, "Array"); |
|
68 public static final QName QNAME_ATTR_GROUP_COMMON_ATTRIBUTES = |
|
69 new QName(NS_SOAP_ENCODING, "commonAttributes"); |
|
70 public static final QName QNAME_ATTR_ARRAY_TYPE = |
|
71 new QName(NS_SOAP_ENCODING, "arrayType"); |
|
72 public static final QName QNAME_ATTR_OFFSET = |
|
73 new QName(NS_SOAP_ENCODING, "offset"); |
|
74 public static final QName QNAME_ATTR_POSITION = |
|
75 new QName(NS_SOAP_ENCODING, "position"); |
|
76 |
|
77 public static final QName QNAME_TYPE_BASE64 = |
|
78 new QName(NS_SOAP_ENCODING, "base64"); |
|
79 |
|
80 public static final QName QNAME_ELEMENT_STRING = |
|
81 new QName(NS_SOAP_ENCODING, "string"); |
|
82 public static final QName QNAME_ELEMENT_NORMALIZED_STRING = |
|
83 new QName(NS_SOAP_ENCODING, "normalizedString"); |
|
84 public static final QName QNAME_ELEMENT_TOKEN = |
|
85 new QName(NS_SOAP_ENCODING, "token"); |
|
86 public static final QName QNAME_ELEMENT_BYTE = |
|
87 new QName(NS_SOAP_ENCODING, "byte"); |
|
88 public static final QName QNAME_ELEMENT_UNSIGNED_BYTE = |
|
89 new QName(NS_SOAP_ENCODING, "unsignedByte"); |
|
90 public static final QName QNAME_ELEMENT_BASE64_BINARY = |
|
91 new QName(NS_SOAP_ENCODING, "base64Binary"); |
|
92 public static final QName QNAME_ELEMENT_HEX_BINARY = |
|
93 new QName(NS_SOAP_ENCODING, "hexBinary"); |
|
94 public static final QName QNAME_ELEMENT_INTEGER = |
|
95 new QName(NS_SOAP_ENCODING, "integer"); |
|
96 public static final QName QNAME_ELEMENT_POSITIVE_INTEGER = |
|
97 new QName(NS_SOAP_ENCODING, "positiveInteger"); |
|
98 public static final QName QNAME_ELEMENT_NEGATIVE_INTEGER = |
|
99 new QName(NS_SOAP_ENCODING, "negativeInteger"); |
|
100 public static final QName QNAME_ELEMENT_NON_NEGATIVE_INTEGER = |
|
101 new QName(NS_SOAP_ENCODING, "nonNegativeInteger"); |
|
102 public static final QName QNAME_ELEMENT_NON_POSITIVE_INTEGER = |
|
103 new QName(NS_SOAP_ENCODING, "nonPositiveInteger"); |
|
104 public static final QName QNAME_ELEMENT_INT = |
|
105 new QName(NS_SOAP_ENCODING, "int"); |
|
106 public static final QName QNAME_ELEMENT_UNSIGNED_INT = |
|
107 new QName(NS_SOAP_ENCODING, "unsignedInt"); |
|
108 public static final QName QNAME_ELEMENT_LONG = |
|
109 new QName(NS_SOAP_ENCODING, "long"); |
|
110 public static final QName QNAME_ELEMENT_UNSIGNED_LONG = |
|
111 new QName(NS_SOAP_ENCODING, "unsignedLong"); |
|
112 public static final QName QNAME_ELEMENT_SHORT = |
|
113 new QName(NS_SOAP_ENCODING, "short"); |
|
114 public static final QName QNAME_ELEMENT_UNSIGNED_SHORT = |
|
115 new QName(NS_SOAP_ENCODING, "unsignedShort"); |
|
116 public static final QName QNAME_ELEMENT_DECIMAL = |
|
117 new QName(NS_SOAP_ENCODING, "decimal"); |
|
118 public static final QName QNAME_ELEMENT_FLOAT = |
|
119 new QName(NS_SOAP_ENCODING, "float"); |
|
120 public static final QName QNAME_ELEMENT_DOUBLE = |
|
121 new QName(NS_SOAP_ENCODING, "double"); |
|
122 public static final QName QNAME_ELEMENT_BOOLEAN = |
|
123 new QName(NS_SOAP_ENCODING, "boolean"); |
|
124 public static final QName QNAME_ELEMENT_TIME = |
|
125 new QName(NS_SOAP_ENCODING, "time"); |
|
126 public static final QName QNAME_ELEMENT_DATE_TIME = |
|
127 new QName(NS_SOAP_ENCODING, "dateTime"); |
|
128 public static final QName QNAME_ELEMENT_DURATION = |
|
129 new QName(NS_SOAP_ENCODING, "duration"); |
|
130 public static final QName QNAME_ELEMENT_DATE = |
|
131 new QName(NS_SOAP_ENCODING, "date"); |
|
132 public static final QName QNAME_ELEMENT_G_MONTH = |
|
133 new QName(NS_SOAP_ENCODING, "gMonth"); |
|
134 public static final QName QNAME_ELEMENT_G_YEAR = |
|
135 new QName(NS_SOAP_ENCODING, "gYear"); |
|
136 public static final QName QNAME_ELEMENT_G_YEAR_MONTH = |
|
137 new QName(NS_SOAP_ENCODING, "gYearMonth"); |
|
138 public static final QName QNAME_ELEMENT_G_DAY = |
|
139 new QName(NS_SOAP_ENCODING, "gDay"); |
|
140 public static final QName QNAME_ELEMENT_G_MONTH_DAY = |
|
141 new QName(NS_SOAP_ENCODING, "gMonthDay"); |
|
142 public static final QName QNAME_ELEMENT_NAME = |
|
143 new QName(NS_SOAP_ENCODING, "Name"); |
|
144 public static final QName QNAME_ELEMENT_QNAME = |
|
145 new QName(NS_SOAP_ENCODING, "QName"); |
|
146 public static final QName QNAME_ELEMENT_NCNAME = |
|
147 new QName(NS_SOAP_ENCODING, "NCName"); |
|
148 public static final QName QNAME_ELEMENT_ANY_URI = |
|
149 new QName(NS_SOAP_ENCODING, "anyURI"); |
|
150 public static final QName QNAME_ELEMENT_ID = |
|
151 new QName(NS_SOAP_ENCODING, "ID"); |
|
152 public static final QName QNAME_ELEMENT_IDREF = |
|
153 new QName(NS_SOAP_ENCODING, "IDREF"); |
|
154 public static final QName QNAME_ELEMENT_IDREFS = |
|
155 new QName(NS_SOAP_ENCODING, "IDREFS"); |
|
156 public static final QName QNAME_ELEMENT_ENTITY = |
|
157 new QName(NS_SOAP_ENCODING, "ENTITY"); |
|
158 public static final QName QNAME_ELEMENT_ENTITIES = |
|
159 new QName(NS_SOAP_ENCODING, "ENTITIES"); |
|
160 public static final QName QNAME_ELEMENT_NOTATION = |
|
161 new QName(NS_SOAP_ENCODING, "NOTATION"); |
|
162 public static final QName QNAME_ELEMENT_NMTOKEN = |
|
163 new QName(NS_SOAP_ENCODING, "NMTOKEN"); |
|
164 public static final QName QNAME_ELEMENT_NMTOKENS = |
|
165 new QName(NS_SOAP_ENCODING, "NMTOKENS"); |
|
166 |
|
167 public static final QName QNAME_TYPE_STRING = |
|
168 new QName(NS_SOAP_ENCODING, "string"); |
|
169 public static final QName QNAME_TYPE_NORMALIZED_STRING = |
|
170 new QName(NS_SOAP_ENCODING, "normalizedString"); |
|
171 public static final QName QNAME_TYPE_TOKEN = |
|
172 new QName(NS_SOAP_ENCODING, "token"); |
|
173 public static final QName QNAME_TYPE_BYTE = |
|
174 new QName(NS_SOAP_ENCODING, "byte"); |
|
175 public static final QName QNAME_TYPE_UNSIGNED_BYTE = |
|
176 new QName(NS_SOAP_ENCODING, "unsignedByte"); |
|
177 public static final QName QNAME_TYPE_BASE64_BINARY = |
|
178 new QName(NS_SOAP_ENCODING, "base64Binary"); |
|
179 public static final QName QNAME_TYPE_HEX_BINARY = |
|
180 new QName(NS_SOAP_ENCODING, "hexBinary"); |
|
181 public static final QName QNAME_TYPE_INTEGER = |
|
182 new QName(NS_SOAP_ENCODING, "integer"); |
|
183 public static final QName QNAME_TYPE_POSITIVE_INTEGER = |
|
184 new QName(NS_SOAP_ENCODING, "positiveInteger"); |
|
185 public static final QName QNAME_TYPE_NEGATIVE_INTEGER = |
|
186 new QName(NS_SOAP_ENCODING, "negativeInteger"); |
|
187 public static final QName QNAME_TYPE_NON_NEGATIVE_INTEGER = |
|
188 new QName(NS_SOAP_ENCODING, "nonNegativeInteger"); |
|
189 public static final QName QNAME_TYPE_NON_POSITIVE_INTEGER = |
|
190 new QName(NS_SOAP_ENCODING, "nonPositiveInteger"); |
|
191 public static final QName QNAME_TYPE_INT = |
|
192 new QName(NS_SOAP_ENCODING, "int"); |
|
193 public static final QName QNAME_TYPE_UNSIGNED_INT = |
|
194 new QName(NS_SOAP_ENCODING, "unsignedInt"); |
|
195 public static final QName QNAME_TYPE_LONG = |
|
196 new QName(NS_SOAP_ENCODING, "long"); |
|
197 public static final QName QNAME_TYPE_UNSIGNED_LONG = |
|
198 new QName(NS_SOAP_ENCODING, "unsignedLong"); |
|
199 public static final QName QNAME_TYPE_SHORT = |
|
200 new QName(NS_SOAP_ENCODING, "short"); |
|
201 public static final QName QNAME_TYPE_UNSIGNED_SHORT = |
|
202 new QName(NS_SOAP_ENCODING, "unsignedShort"); |
|
203 public static final QName QNAME_TYPE_DECIMAL = |
|
204 new QName(NS_SOAP_ENCODING, "decimal"); |
|
205 public static final QName QNAME_TYPE_FLOAT = |
|
206 new QName(NS_SOAP_ENCODING, "float"); |
|
207 public static final QName QNAME_TYPE_DOUBLE = |
|
208 new QName(NS_SOAP_ENCODING, "double"); |
|
209 public static final QName QNAME_TYPE_BOOLEAN = |
|
210 new QName(NS_SOAP_ENCODING, "boolean"); |
|
211 public static final QName QNAME_TYPE_TIME = |
|
212 new QName(NS_SOAP_ENCODING, "time"); |
|
213 public static final QName QNAME_TYPE_DATE_TIME = |
|
214 new QName(NS_SOAP_ENCODING, "dateTime"); |
|
215 public static final QName QNAME_TYPE_DURATION = |
|
216 new QName(NS_SOAP_ENCODING, "duration"); |
|
217 public static final QName QNAME_TYPE_DATE = |
|
218 new QName(NS_SOAP_ENCODING, "date"); |
|
219 public static final QName QNAME_TYPE_G_MONTH = |
|
220 new QName(NS_SOAP_ENCODING, "gMonth"); |
|
221 public static final QName QNAME_TYPE_G_YEAR = |
|
222 new QName(NS_SOAP_ENCODING, "gYear"); |
|
223 public static final QName QNAME_TYPE_G_YEAR_MONTH = |
|
224 new QName(NS_SOAP_ENCODING, "gYearMonth"); |
|
225 public static final QName QNAME_TYPE_G_DAY = |
|
226 new QName(NS_SOAP_ENCODING, "gDay"); |
|
227 public static final QName QNAME_TYPE_G_MONTH_DAY = |
|
228 new QName(NS_SOAP_ENCODING, "gMonthDay"); |
|
229 public static final QName QNAME_TYPE_NAME = |
|
230 new QName(NS_SOAP_ENCODING, "Name"); |
|
231 public static final QName QNAME_TYPE_QNAME = |
|
232 new QName(NS_SOAP_ENCODING, "QName"); |
|
233 public static final QName QNAME_TYPE_NCNAME = |
|
234 new QName(NS_SOAP_ENCODING, "NCName"); |
|
235 public static final QName QNAME_TYPE_ANY_URI = |
|
236 new QName(NS_SOAP_ENCODING, "anyURI"); |
|
237 public static final QName QNAME_TYPE_ID = new QName(NS_SOAP_ENCODING, "ID"); |
|
238 public static final QName QNAME_TYPE_IDREF = |
|
239 new QName(NS_SOAP_ENCODING, "IDREF"); |
|
240 public static final QName QNAME_TYPE_IDREFS = |
|
241 new QName(NS_SOAP_ENCODING, "IDREFS"); |
|
242 public static final QName QNAME_TYPE_ENTITY = |
|
243 new QName(NS_SOAP_ENCODING, "ENTITY"); |
|
244 public static final QName QNAME_TYPE_ENTITIES = |
|
245 new QName(NS_SOAP_ENCODING, "ENTITIES"); |
|
246 public static final QName QNAME_TYPE_NOTATION = |
|
247 new QName(NS_SOAP_ENCODING, "NOTATION"); |
|
248 public static final QName QNAME_TYPE_NMTOKEN = |
|
249 new QName(NS_SOAP_ENCODING, "NMTOKEN"); |
|
250 public static final QName QNAME_TYPE_NMTOKENS = |
|
251 new QName(NS_SOAP_ENCODING, "NMTOKENS"); |
|
252 public static final QName QNAME_TYPE_LANGUAGE = |
|
253 new QName(NS_SOAP_ENCODING, "LANGUAGE"); |
|
254 |
|
255 // SOAP attributes with non-colonized names |
|
256 public static final QName QNAME_ATTR_ID = new QName("", "id"); |
|
257 public static final QName QNAME_ATTR_HREF = new QName("", "href"); |
|
258 |
|
259 } |