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