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.jaxws;
038:
039: import com.sun.tools.ws.wsdl.parser.Constants;
040:
041: import javax.xml.namespace.QName;
042:
043: /**
044: * @author Vivek Pandey
045: *
046: */
047: public interface JAXWSBindingsConstants {
048:
049: public static String NS_JAXWS_BINDINGS = "http://java.sun.com/xml/ns/jaxws";
050: public static String NS_JAXB_BINDINGS = "http://java.sun.com/xml/ns/jaxb";
051: public static String NS_XJC_BINDINGS = "http://java.sun.com/xml/ns/jaxb/xjc";
052:
053: /**
054: * jaxws:bindings schema component
055: *
056: * <jaxws:bindings wsdlLocation="xs:anyURI"? node="xs:string"?
057: * version="string"?> binding declarations...
058: * </jaxws:bindings>
059: *
060: * wsdlLocation="xs:anyURI"? node="xs:string"? version="string"?> binding
061: * declarations... </jaxws:bindings>
062: *
063: * <code>@wsdlLocation</code> A URI pointing to a WSDL file establishing the scope of the
064: * contents of this binding declaration. It MUST NOT be
065: * present if the binding declaration is used as an extension
066: * inside a WSDL document or if there is an ancestor binding
067: * declaration that contains this attribute.
068: *
069: * <code>@node</code> An XPath expression pointing to the element in the WSDL file in
070: * scope that this binding declaration is attached to.
071: *
072: * <code>@version</code> A version identifier. It MAY only appear on jaxws:bindings
073: * elements that don't have any jaxws:bindings ancestors (i.e. on
074: * outermost binding declarations).
075: */
076: public static QName JAXWS_BINDINGS = new QName(NS_JAXWS_BINDINGS,
077: "bindings");
078: public static String WSDL_LOCATION_ATTR = "wsdlLocation";
079: public static String NODE_ATTR = "node";
080: public static String VERSION_ATTR = "version";
081:
082: /*
083: * <jaxws:package name="xs:string">? <jaxws:javadoc>xs:string
084: * </jaxws:javadoc> </jaxws:package>
085: */
086: public static QName PACKAGE = new QName(NS_JAXWS_BINDINGS,
087: "package");
088: public static String NAME_ATTR = "name";
089: public static QName JAVADOC = new QName(NS_JAXWS_BINDINGS,
090: "javadoc");
091:
092: /*
093: * <jaxws:enableWrapperStyle>xs:boolean </jaxws:enableWrapperStyle>?
094: */
095: public static QName ENABLE_WRAPPER_STYLE = new QName(
096: NS_JAXWS_BINDINGS, "enableWrapperStyle");
097:
098: /*
099: * <jaxws:enableAsynchronousMapping>xs:boolean
100: * </jaxws:enableAsynchronousMapping>?
101: */
102: public static QName ENABLE_ASYNC_MAPPING = new QName(
103: NS_JAXWS_BINDINGS, "enableAsyncMapping");
104:
105: /*
106: * <jaxws:enableAdditionalSOAPHeaderMapping>xs:boolean</jaxws:enableAdditionalSOAPHeaderMapping>?
107: */
108: public static QName ENABLE_ADDITIONAL_SOAPHEADER_MAPPING = new QName(
109: NS_JAXWS_BINDINGS, "enableAdditionalSOAPHeaderMapping");
110:
111: /*
112: * <jaxws:enableMIMEContent>xs:boolean</jaxws:enableMIMEContent>?
113: */
114: public static QName ENABLE_MIME_CONTENT = new QName(
115: NS_JAXWS_BINDINGS, "enableMIMEContent");
116:
117: /*
118: * <jaxwsc:provider>xs:boolean</jaxws:provider>?
119: */
120: public static QName PROVIDER = new QName(NS_JAXWS_BINDINGS,
121: "provider");
122:
123: /*
124: * PortType
125: *
126: * <jaxws:class name="xs:string">?
127: * <jaxws:javadoc>xs:string</jaxws:javadoc>?
128: * </jaxws:class>
129: *
130: * <jaxws:enableWrapperStyle>
131: * xs:boolean
132: * </jaxws:enableWrapperStyle>?
133: *
134: * <jaxws:enableAsynchronousMapping>
135: * xs:boolean
136: * </jaxws:enableAsynchronousMapping>?
137: *
138: */
139:
140: public static QName CLASS = new QName(NS_JAXWS_BINDINGS, "class");
141:
142: /*
143: * PortType WSDLOperation
144: *
145: * <jaxws:method name="xs:string">?
146: * <jaxws:javadoc>xs:string</jaxws:javadoc>?
147: * </jaxws:method>
148: *
149: * <jaxws:enableWrapperStyle>
150: * xs:boolean
151: * </jaxws:enableWrapperStyle>?
152: *
153: * <jaxws:enableAsyncMapping>
154: * xs:boolean
155: * </jaxws:enableAsyncMapping>?
156: *
157: * <jaxws:parameter part="xs:string"
158: * childElementName="xs:QName"?
159: * name="xs:string"/>*
160: */
161:
162: public static QName METHOD = new QName(NS_JAXWS_BINDINGS, "method");
163: public static QName PARAMETER = new QName(NS_JAXWS_BINDINGS,
164: "parameter");
165: public static String PART_ATTR = "part";
166: public static String ELEMENT_ATTR = "childElementName";
167:
168: /*
169: * Binding
170: *
171: * <jaxws:enableAdditionalSOAPHeaderMapping>
172: * xs:boolean
173: * </jaxws:enableAdditionalSOAPHeaderMapping>?
174: *
175: * <jaxws:enableMIMEContent>
176: * xs:boolean
177: * </jaxws:enableMIMEContent>?
178: */
179:
180: /*
181: * WSDLBoundOperation
182: *
183: * <jaxws:enableAdditionalSOAPHeaderMapping>
184: * xs:boolean
185: * </jaxws:enableAdditionalSOAPHeaderMapping>?
186: *
187: * <jaxws:enableMIMEContent>
188: * xs:boolean
189: * </jaxws:enableMIMEContent>?
190: *
191: * <jaxws:parameter part="xs:string"
192: * element="xs:QName"?
193: * name="xs:string"/>*
194: *
195: * <jaxws:exception part="xs:string">*
196: * <jaxws:class name="xs:string">?
197: * <jaxws:javadoc>xs:string</jaxws:javadoc>?
198: * </jaxws:class>
199: * </jaxws:exception>
200: */
201:
202: public static QName EXCEPTION = new QName(NS_JAXWS_BINDINGS,
203: "exception");
204:
205: /*
206: * jaxb:bindgs QName
207: */
208: public static QName JAXB_BINDINGS = new QName(NS_JAXB_BINDINGS,
209: "bindings");
210: public static String JAXB_BINDING_VERSION = "2.0";
211: public static QName XSD_APPINFO = new QName(Constants.NS_XSD,
212: "appinfo");
213: public static QName XSD_ANNOTATION = new QName(Constants.NS_XSD,
214: "annotation");
215: }
|