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.soap;
038:
039: import com.sun.xml.ws.encoding.soap.streaming.SOAPNamespaceConstants;
040:
041: import javax.xml.namespace.QName;
042:
043: /**
044: * Interface defining SOAP-related constants.
045: *
046: * @author WS Development Team
047: */
048: public interface SOAPConstants {
049:
050: // namespace URIs
051: public static final String URI_ENVELOPE = SOAPNamespaceConstants.ENVELOPE;
052: public static final String NS_WSDL_SOAP = "http://schemas.xmlsoap.org/wsdl/soap/";
053: public static final String NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
054:
055: // other URIs
056: public final String URI_SOAP_TRANSPORT_HTTP = "http://schemas.xmlsoap.org/soap/http";
057:
058: // QNames
059: public static final QName QNAME_ADDRESS = new QName(NS_WSDL_SOAP,
060: "address");
061: public static final QName QNAME_BINDING = new QName(NS_WSDL_SOAP,
062: "binding");
063: public static final QName QNAME_BODY = new QName(NS_WSDL_SOAP,
064: "body");
065: public static final QName QNAME_FAULT = new QName(NS_WSDL_SOAP,
066: "fault");
067: public static final QName QNAME_HEADER = new QName(NS_WSDL_SOAP,
068: "header");
069: public static final QName QNAME_HEADERFAULT = new QName(
070: NS_WSDL_SOAP, "headerfault");
071: public static final QName QNAME_OPERATION = new QName(NS_WSDL_SOAP,
072: "operation");
073: public static final QName QNAME_MUSTUNDERSTAND = new QName(
074: URI_ENVELOPE, "mustUnderstand");
075:
076: // SOAP encoding QNames
077: public static final QName QNAME_TYPE_ARRAY = new QName(
078: NS_SOAP_ENCODING, "Array");
079: public static final QName QNAME_ATTR_GROUP_COMMON_ATTRIBUTES = new QName(
080: NS_SOAP_ENCODING, "commonAttributes");
081: public static final QName QNAME_ATTR_ARRAY_TYPE = new QName(
082: NS_SOAP_ENCODING, "arrayType");
083: public static final QName QNAME_ATTR_OFFSET = new QName(
084: NS_SOAP_ENCODING, "offset");
085: public static final QName QNAME_ATTR_POSITION = new QName(
086: NS_SOAP_ENCODING, "position");
087:
088: public static final QName QNAME_TYPE_BASE64 = new QName(
089: NS_SOAP_ENCODING, "base64");
090:
091: public static final QName QNAME_ELEMENT_STRING = new QName(
092: NS_SOAP_ENCODING, "string");
093: public static final QName QNAME_ELEMENT_NORMALIZED_STRING = new QName(
094: NS_SOAP_ENCODING, "normalizedString");
095: public static final QName QNAME_ELEMENT_TOKEN = new QName(
096: NS_SOAP_ENCODING, "token");
097: public static final QName QNAME_ELEMENT_BYTE = new QName(
098: NS_SOAP_ENCODING, "byte");
099: public static final QName QNAME_ELEMENT_UNSIGNED_BYTE = new QName(
100: NS_SOAP_ENCODING, "unsignedByte");
101: public static final QName QNAME_ELEMENT_BASE64_BINARY = new QName(
102: NS_SOAP_ENCODING, "base64Binary");
103: public static final QName QNAME_ELEMENT_HEX_BINARY = new QName(
104: NS_SOAP_ENCODING, "hexBinary");
105: public static final QName QNAME_ELEMENT_INTEGER = new QName(
106: NS_SOAP_ENCODING, "integer");
107: public static final QName QNAME_ELEMENT_POSITIVE_INTEGER = new QName(
108: NS_SOAP_ENCODING, "positiveInteger");
109: public static final QName QNAME_ELEMENT_NEGATIVE_INTEGER = new QName(
110: NS_SOAP_ENCODING, "negativeInteger");
111: public static final QName QNAME_ELEMENT_NON_NEGATIVE_INTEGER = new QName(
112: NS_SOAP_ENCODING, "nonNegativeInteger");
113: public static final QName QNAME_ELEMENT_NON_POSITIVE_INTEGER = new QName(
114: NS_SOAP_ENCODING, "nonPositiveInteger");
115: public static final QName QNAME_ELEMENT_INT = new QName(
116: NS_SOAP_ENCODING, "int");
117: public static final QName QNAME_ELEMENT_UNSIGNED_INT = new QName(
118: NS_SOAP_ENCODING, "unsignedInt");
119: public static final QName QNAME_ELEMENT_LONG = new QName(
120: NS_SOAP_ENCODING, "long");
121: public static final QName QNAME_ELEMENT_UNSIGNED_LONG = new QName(
122: NS_SOAP_ENCODING, "unsignedLong");
123: public static final QName QNAME_ELEMENT_SHORT = new QName(
124: NS_SOAP_ENCODING, "short");
125: public static final QName QNAME_ELEMENT_UNSIGNED_SHORT = new QName(
126: NS_SOAP_ENCODING, "unsignedShort");
127: public static final QName QNAME_ELEMENT_DECIMAL = new QName(
128: NS_SOAP_ENCODING, "decimal");
129: public static final QName QNAME_ELEMENT_FLOAT = new QName(
130: NS_SOAP_ENCODING, "float");
131: public static final QName QNAME_ELEMENT_DOUBLE = new QName(
132: NS_SOAP_ENCODING, "double");
133: public static final QName QNAME_ELEMENT_BOOLEAN = new QName(
134: NS_SOAP_ENCODING, "boolean");
135: public static final QName QNAME_ELEMENT_TIME = new QName(
136: NS_SOAP_ENCODING, "time");
137: public static final QName QNAME_ELEMENT_DATE_TIME = new QName(
138: NS_SOAP_ENCODING, "dateTime");
139: public static final QName QNAME_ELEMENT_DURATION = new QName(
140: NS_SOAP_ENCODING, "duration");
141: public static final QName QNAME_ELEMENT_DATE = new QName(
142: NS_SOAP_ENCODING, "date");
143: public static final QName QNAME_ELEMENT_G_MONTH = new QName(
144: NS_SOAP_ENCODING, "gMonth");
145: public static final QName QNAME_ELEMENT_G_YEAR = new QName(
146: NS_SOAP_ENCODING, "gYear");
147: public static final QName QNAME_ELEMENT_G_YEAR_MONTH = new QName(
148: NS_SOAP_ENCODING, "gYearMonth");
149: public static final QName QNAME_ELEMENT_G_DAY = new QName(
150: NS_SOAP_ENCODING, "gDay");
151: public static final QName QNAME_ELEMENT_G_MONTH_DAY = new QName(
152: NS_SOAP_ENCODING, "gMonthDay");
153: public static final QName QNAME_ELEMENT_NAME = new QName(
154: NS_SOAP_ENCODING, "Name");
155: public static final QName QNAME_ELEMENT_QNAME = new QName(
156: NS_SOAP_ENCODING, "QName");
157: public static final QName QNAME_ELEMENT_NCNAME = new QName(
158: NS_SOAP_ENCODING, "NCName");
159: public static final QName QNAME_ELEMENT_ANY_URI = new QName(
160: NS_SOAP_ENCODING, "anyURI");
161: public static final QName QNAME_ELEMENT_ID = new QName(
162: NS_SOAP_ENCODING, "ID");
163: public static final QName QNAME_ELEMENT_IDREF = new QName(
164: NS_SOAP_ENCODING, "IDREF");
165: public static final QName QNAME_ELEMENT_IDREFS = new QName(
166: NS_SOAP_ENCODING, "IDREFS");
167: public static final QName QNAME_ELEMENT_ENTITY = new QName(
168: NS_SOAP_ENCODING, "ENTITY");
169: public static final QName QNAME_ELEMENT_ENTITIES = new QName(
170: NS_SOAP_ENCODING, "ENTITIES");
171: public static final QName QNAME_ELEMENT_NOTATION = new QName(
172: NS_SOAP_ENCODING, "NOTATION");
173: public static final QName QNAME_ELEMENT_NMTOKEN = new QName(
174: NS_SOAP_ENCODING, "NMTOKEN");
175: public static final QName QNAME_ELEMENT_NMTOKENS = new QName(
176: NS_SOAP_ENCODING, "NMTOKENS");
177:
178: public static final QName QNAME_TYPE_STRING = new QName(
179: NS_SOAP_ENCODING, "string");
180: public static final QName QNAME_TYPE_NORMALIZED_STRING = new QName(
181: NS_SOAP_ENCODING, "normalizedString");
182: public static final QName QNAME_TYPE_TOKEN = new QName(
183: NS_SOAP_ENCODING, "token");
184: public static final QName QNAME_TYPE_BYTE = new QName(
185: NS_SOAP_ENCODING, "byte");
186: public static final QName QNAME_TYPE_UNSIGNED_BYTE = new QName(
187: NS_SOAP_ENCODING, "unsignedByte");
188: public static final QName QNAME_TYPE_BASE64_BINARY = new QName(
189: NS_SOAP_ENCODING, "base64Binary");
190: public static final QName QNAME_TYPE_HEX_BINARY = new QName(
191: NS_SOAP_ENCODING, "hexBinary");
192: public static final QName QNAME_TYPE_INTEGER = new QName(
193: NS_SOAP_ENCODING, "integer");
194: public static final QName QNAME_TYPE_POSITIVE_INTEGER = new QName(
195: NS_SOAP_ENCODING, "positiveInteger");
196: public static final QName QNAME_TYPE_NEGATIVE_INTEGER = new QName(
197: NS_SOAP_ENCODING, "negativeInteger");
198: public static final QName QNAME_TYPE_NON_NEGATIVE_INTEGER = new QName(
199: NS_SOAP_ENCODING, "nonNegativeInteger");
200: public static final QName QNAME_TYPE_NON_POSITIVE_INTEGER = new QName(
201: NS_SOAP_ENCODING, "nonPositiveInteger");
202: public static final QName QNAME_TYPE_INT = new QName(
203: NS_SOAP_ENCODING, "int");
204: public static final QName QNAME_TYPE_UNSIGNED_INT = new QName(
205: NS_SOAP_ENCODING, "unsignedInt");
206: public static final QName QNAME_TYPE_LONG = new QName(
207: NS_SOAP_ENCODING, "long");
208: public static final QName QNAME_TYPE_UNSIGNED_LONG = new QName(
209: NS_SOAP_ENCODING, "unsignedLong");
210: public static final QName QNAME_TYPE_SHORT = new QName(
211: NS_SOAP_ENCODING, "short");
212: public static final QName QNAME_TYPE_UNSIGNED_SHORT = new QName(
213: NS_SOAP_ENCODING, "unsignedShort");
214: public static final QName QNAME_TYPE_DECIMAL = new QName(
215: NS_SOAP_ENCODING, "decimal");
216: public static final QName QNAME_TYPE_FLOAT = new QName(
217: NS_SOAP_ENCODING, "float");
218: public static final QName QNAME_TYPE_DOUBLE = new QName(
219: NS_SOAP_ENCODING, "double");
220: public static final QName QNAME_TYPE_BOOLEAN = new QName(
221: NS_SOAP_ENCODING, "boolean");
222: public static final QName QNAME_TYPE_TIME = new QName(
223: NS_SOAP_ENCODING, "time");
224: public static final QName QNAME_TYPE_DATE_TIME = new QName(
225: NS_SOAP_ENCODING, "dateTime");
226: public static final QName QNAME_TYPE_DURATION = new QName(
227: NS_SOAP_ENCODING, "duration");
228: public static final QName QNAME_TYPE_DATE = new QName(
229: NS_SOAP_ENCODING, "date");
230: public static final QName QNAME_TYPE_G_MONTH = new QName(
231: NS_SOAP_ENCODING, "gMonth");
232: public static final QName QNAME_TYPE_G_YEAR = new QName(
233: NS_SOAP_ENCODING, "gYear");
234: public static final QName QNAME_TYPE_G_YEAR_MONTH = new QName(
235: NS_SOAP_ENCODING, "gYearMonth");
236: public static final QName QNAME_TYPE_G_DAY = new QName(
237: NS_SOAP_ENCODING, "gDay");
238: public static final QName QNAME_TYPE_G_MONTH_DAY = new QName(
239: NS_SOAP_ENCODING, "gMonthDay");
240: public static final QName QNAME_TYPE_NAME = new QName(
241: NS_SOAP_ENCODING, "Name");
242: public static final QName QNAME_TYPE_QNAME = new QName(
243: NS_SOAP_ENCODING, "QName");
244: public static final QName QNAME_TYPE_NCNAME = new QName(
245: NS_SOAP_ENCODING, "NCName");
246: public static final QName QNAME_TYPE_ANY_URI = new QName(
247: NS_SOAP_ENCODING, "anyURI");
248: public static final QName QNAME_TYPE_ID = new QName(
249: NS_SOAP_ENCODING, "ID");
250: public static final QName QNAME_TYPE_IDREF = new QName(
251: NS_SOAP_ENCODING, "IDREF");
252: public static final QName QNAME_TYPE_IDREFS = new QName(
253: NS_SOAP_ENCODING, "IDREFS");
254: public static final QName QNAME_TYPE_ENTITY = new QName(
255: NS_SOAP_ENCODING, "ENTITY");
256: public static final QName QNAME_TYPE_ENTITIES = new QName(
257: NS_SOAP_ENCODING, "ENTITIES");
258: public static final QName QNAME_TYPE_NOTATION = new QName(
259: NS_SOAP_ENCODING, "NOTATION");
260: public static final QName QNAME_TYPE_NMTOKEN = new QName(
261: NS_SOAP_ENCODING, "NMTOKEN");
262: public static final QName QNAME_TYPE_NMTOKENS = new QName(
263: NS_SOAP_ENCODING, "NMTOKENS");
264: public static final QName QNAME_TYPE_LANGUAGE = new QName(
265: NS_SOAP_ENCODING, "LANGUAGE");
266:
267: // SOAP attributes with non-colonized names
268: public static final QName QNAME_ATTR_ID = new QName("", "id");
269: public static final QName QNAME_ATTR_HREF = new QName("", "href");
270:
271: }
|