Tue, 09 Apr 2013 14:51:13 +0100
8010393: Update JAX-WS RI to 2.2.9-b12941
Reviewed-by: alanb, erikj
Contributed-by: miroslav.kos@oracle.com, martin.grebac@oracle.com
ohair@286 | 1 | /* |
alanb@368 | 2 | * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
ohair@286 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ohair@286 | 4 | * |
ohair@286 | 5 | * This code is free software; you can redistribute it and/or modify it |
ohair@286 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@286 | 7 | * published by the Free Software Foundation. Oracle designates this |
ohair@286 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@286 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
ohair@286 | 10 | * |
ohair@286 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
ohair@286 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ohair@286 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ohair@286 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
ohair@286 | 15 | * accompanied this code). |
ohair@286 | 16 | * |
ohair@286 | 17 | * You should have received a copy of the GNU General Public License version |
ohair@286 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
ohair@286 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ohair@286 | 20 | * |
ohair@286 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@286 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@286 | 23 | * questions. |
ohair@286 | 24 | */ |
ohair@286 | 25 | |
ohair@286 | 26 | package com.sun.tools.internal.ws.wsdl.document.jaxws; |
ohair@286 | 27 | |
ohair@286 | 28 | import com.sun.tools.internal.ws.wsdl.parser.Constants; |
ohair@286 | 29 | |
ohair@286 | 30 | import javax.xml.namespace.QName; |
ohair@286 | 31 | |
ohair@286 | 32 | /** |
ohair@286 | 33 | * @author Vivek Pandey |
ohair@286 | 34 | * |
ohair@286 | 35 | */ |
ohair@286 | 36 | public interface JAXWSBindingsConstants { |
ohair@286 | 37 | |
alanb@368 | 38 | static final String NS_JAXWS_BINDINGS = "http://java.sun.com/xml/ns/jaxws"; |
alanb@368 | 39 | static final String NS_JAXB_BINDINGS = "http://java.sun.com/xml/ns/jaxb"; |
alanb@368 | 40 | static final String NS_XJC_BINDINGS = "http://java.sun.com/xml/ns/jaxb/xjc"; |
ohair@286 | 41 | |
ohair@286 | 42 | /** |
ohair@286 | 43 | * jaxws:bindings schema component |
ohair@286 | 44 | * |
ohair@286 | 45 | * <jaxws:bindings wsdlLocation="xs:anyURI"? node="xs:string"? |
ohair@286 | 46 | * version="string"?> binding declarations... |
ohair@286 | 47 | * </jaxws:bindings> |
ohair@286 | 48 | * |
ohair@286 | 49 | * wsdlLocation="xs:anyURI"? node="xs:string"? version="string"?> binding |
ohair@286 | 50 | * declarations... </jaxws:bindings> |
ohair@286 | 51 | * |
ohair@286 | 52 | * <code>@wsdlLocation</code> A URI pointing to a WSDL file establishing the scope of the |
ohair@286 | 53 | * contents of this binding declaration. It MUST NOT be |
ohair@286 | 54 | * present if the binding declaration is used as an extension |
ohair@286 | 55 | * inside a WSDL document or if there is an ancestor binding |
ohair@286 | 56 | * declaration that contains this attribute. |
ohair@286 | 57 | * |
ohair@286 | 58 | * <code>@node</code> An XPath expression pointing to the element in the WSDL file in |
ohair@286 | 59 | * scope that this binding declaration is attached to. |
ohair@286 | 60 | * |
ohair@286 | 61 | * <code>@version</code> A version identifier. It MAY only appear on jaxws:bindings |
ohair@286 | 62 | * elements that don't have any jaxws:bindings ancestors (i.e. on |
ohair@286 | 63 | * outermost binding declarations). |
ohair@286 | 64 | */ |
alanb@368 | 65 | static final QName JAXWS_BINDINGS = new QName(NS_JAXWS_BINDINGS, "bindings"); |
alanb@368 | 66 | static final String WSDL_LOCATION_ATTR = "wsdlLocation"; |
alanb@368 | 67 | static final String NODE_ATTR = "node"; |
alanb@368 | 68 | static final String VERSION_ATTR = "version"; |
ohair@286 | 69 | |
ohair@286 | 70 | /* |
ohair@286 | 71 | * <jaxws:package name="xs:string">? <jaxws:javadoc>xs:string |
ohair@286 | 72 | * </jaxws:javadoc> </jaxws:package> |
ohair@286 | 73 | */ |
alanb@368 | 74 | static final QName PACKAGE = new QName(NS_JAXWS_BINDINGS, "package"); |
alanb@368 | 75 | static final String NAME_ATTR = "name"; |
alanb@368 | 76 | static final QName JAVADOC = new QName(NS_JAXWS_BINDINGS, "javadoc"); |
ohair@286 | 77 | |
ohair@286 | 78 | /* |
ohair@286 | 79 | * <jaxws:enableWrapperStyle>xs:boolean </jaxws:enableWrapperStyle>? |
ohair@286 | 80 | */ |
alanb@368 | 81 | static final QName ENABLE_WRAPPER_STYLE = new QName(NS_JAXWS_BINDINGS, "enableWrapperStyle"); |
ohair@286 | 82 | |
ohair@286 | 83 | /* |
ohair@286 | 84 | * <jaxws:enableAsynchronousMapping>xs:boolean |
ohair@286 | 85 | * </jaxws:enableAsynchronousMapping>? |
ohair@286 | 86 | */ |
alanb@368 | 87 | static final QName ENABLE_ASYNC_MAPPING = new QName(NS_JAXWS_BINDINGS, "enableAsyncMapping"); |
ohair@286 | 88 | |
ohair@286 | 89 | /* |
ohair@286 | 90 | * <jaxws:enableAdditionalSOAPHeaderMapping>xs:boolean</jaxws:enableAdditionalSOAPHeaderMapping>? |
ohair@286 | 91 | */ |
alanb@368 | 92 | static final QName ENABLE_ADDITIONAL_SOAPHEADER_MAPPING = new QName(NS_JAXWS_BINDINGS, "enableAdditionalSOAPHeaderMapping"); |
ohair@286 | 93 | |
ohair@286 | 94 | /* |
ohair@286 | 95 | * <jaxws:enableMIMEContent>xs:boolean</jaxws:enableMIMEContent>? |
ohair@286 | 96 | */ |
alanb@368 | 97 | static final QName ENABLE_MIME_CONTENT = new QName(NS_JAXWS_BINDINGS, "enableMIMEContent"); |
ohair@286 | 98 | |
ohair@286 | 99 | /* |
ohair@286 | 100 | * <jaxwsc:provider>xs:boolean</jaxws:provider>? |
ohair@286 | 101 | */ |
alanb@368 | 102 | static final QName PROVIDER = new QName(NS_JAXWS_BINDINGS, "provider"); |
ohair@286 | 103 | |
ohair@286 | 104 | /* |
ohair@286 | 105 | * PortType |
ohair@286 | 106 | * |
ohair@286 | 107 | * <jaxws:class name="xs:string">? |
ohair@286 | 108 | * <jaxws:javadoc>xs:string</jaxws:javadoc>? |
ohair@286 | 109 | * </jaxws:class> |
ohair@286 | 110 | * |
ohair@286 | 111 | * <jaxws:enableWrapperStyle> |
ohair@286 | 112 | * xs:boolean |
ohair@286 | 113 | * </jaxws:enableWrapperStyle>? |
ohair@286 | 114 | * |
ohair@286 | 115 | * <jaxws:enableAsynchronousMapping> |
ohair@286 | 116 | * xs:boolean |
ohair@286 | 117 | * </jaxws:enableAsynchronousMapping>? |
ohair@286 | 118 | * |
ohair@286 | 119 | */ |
ohair@286 | 120 | |
alanb@368 | 121 | static final QName CLASS = new QName(NS_JAXWS_BINDINGS, "class"); |
ohair@286 | 122 | |
ohair@286 | 123 | /* |
ohair@286 | 124 | * PortType WSDLOperation |
ohair@286 | 125 | * |
ohair@286 | 126 | * <jaxws:method name="xs:string">? |
ohair@286 | 127 | * <jaxws:javadoc>xs:string</jaxws:javadoc>? |
ohair@286 | 128 | * </jaxws:method> |
ohair@286 | 129 | * |
ohair@286 | 130 | * <jaxws:enableWrapperStyle> |
ohair@286 | 131 | * xs:boolean |
ohair@286 | 132 | * </jaxws:enableWrapperStyle>? |
ohair@286 | 133 | * |
ohair@286 | 134 | * <jaxws:enableAsyncMapping> |
ohair@286 | 135 | * xs:boolean |
ohair@286 | 136 | * </jaxws:enableAsyncMapping>? |
ohair@286 | 137 | * |
ohair@286 | 138 | * <jaxws:parameter part="xs:string" |
ohair@286 | 139 | * childElementName="xs:QName"? |
ohair@286 | 140 | * name="xs:string"/>* |
ohair@286 | 141 | */ |
ohair@286 | 142 | |
ohair@286 | 143 | |
ohair@286 | 144 | |
alanb@368 | 145 | static final QName METHOD = new QName(NS_JAXWS_BINDINGS, "method"); |
alanb@368 | 146 | static final QName PARAMETER = new QName(NS_JAXWS_BINDINGS, "parameter"); |
alanb@368 | 147 | static final String PART_ATTR = "part"; |
alanb@368 | 148 | static final String ELEMENT_ATTR = "childElementName"; |
ohair@286 | 149 | |
ohair@286 | 150 | /* |
ohair@286 | 151 | * Binding |
ohair@286 | 152 | * |
ohair@286 | 153 | * <jaxws:enableAdditionalSOAPHeaderMapping> |
ohair@286 | 154 | * xs:boolean |
ohair@286 | 155 | * </jaxws:enableAdditionalSOAPHeaderMapping>? |
ohair@286 | 156 | * |
ohair@286 | 157 | * <jaxws:enableMIMEContent> |
ohair@286 | 158 | * xs:boolean |
ohair@286 | 159 | * </jaxws:enableMIMEContent>? |
ohair@286 | 160 | */ |
ohair@286 | 161 | |
ohair@286 | 162 | /* |
ohair@286 | 163 | * WSDLBoundOperation |
ohair@286 | 164 | * |
ohair@286 | 165 | * <jaxws:enableAdditionalSOAPHeaderMapping> |
ohair@286 | 166 | * xs:boolean |
ohair@286 | 167 | * </jaxws:enableAdditionalSOAPHeaderMapping>? |
ohair@286 | 168 | * |
ohair@286 | 169 | * <jaxws:enableMIMEContent> |
ohair@286 | 170 | * xs:boolean |
ohair@286 | 171 | * </jaxws:enableMIMEContent>? |
ohair@286 | 172 | * |
ohair@286 | 173 | * <jaxws:parameter part="xs:string" |
ohair@286 | 174 | * element="xs:QName"? |
ohair@286 | 175 | * name="xs:string"/>* |
ohair@286 | 176 | * |
ohair@286 | 177 | * <jaxws:exception part="xs:string">* |
ohair@286 | 178 | * <jaxws:class name="xs:string">? |
ohair@286 | 179 | * <jaxws:javadoc>xs:string</jaxws:javadoc>? |
ohair@286 | 180 | * </jaxws:class> |
ohair@286 | 181 | * </jaxws:exception> |
ohair@286 | 182 | */ |
ohair@286 | 183 | |
alanb@368 | 184 | static final QName EXCEPTION = new QName(NS_JAXWS_BINDINGS, "exception"); |
ohair@286 | 185 | |
ohair@286 | 186 | |
ohair@286 | 187 | /* |
ohair@286 | 188 | * jaxb:bindgs QName |
ohair@286 | 189 | */ |
alanb@368 | 190 | static final QName JAXB_BINDINGS = new QName(NS_JAXB_BINDINGS, "bindings"); |
alanb@368 | 191 | static final String JAXB_BINDING_VERSION = "2.0"; |
alanb@368 | 192 | static final QName XSD_APPINFO = new QName(Constants.NS_XSD, "appinfo"); |
alanb@368 | 193 | static final QName XSD_ANNOTATION = new QName(Constants.NS_XSD, "annotation"); |
ohair@286 | 194 | } |