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
1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 *
4 * Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
5 *
6 * The contents of this file are subject to the terms of either the GNU
7 * General Public License Version 2 only ("GPL") or the Common Development
8 * and Distribution License("CDDL") (collectively, the "License"). You
9 * may not use this file except in compliance with the License. You can
10 * obtain a copy of the License at
11 * http://glassfish.java.net/public/CDDL+GPL_1_1.html
12 * or packager/legal/LICENSE.txt. See the License for the specific
13 * language governing permissions and limitations under the License.
14 *
15 * When distributing the software, include this License Header Notice in each
16 * file and include the License file at packager/legal/LICENSE.txt.
17 *
18 * GPL Classpath Exception:
19 * Oracle designates this particular file as subject to the "Classpath"
20 * exception as provided by Oracle in the GPL Version 2 section of the License
21 * file that accompanied this code.
22 *
23 * Modifications:
24 * If applicable, add the following below the License Header, with the fields
25 * enclosed by brackets [] replaced by your own identifying information:
26 * "Portions Copyright [year] [name of copyright owner]"
27 *
28 * Contributor(s):
29 * If you wish your version of this file to be governed by only the CDDL or
30 * only the GPL Version 2, indicate your decision by adding "[Contributor]
31 * elects to include this software in this distribution under the [CDDL or GPL
32 * Version 2] license." If you don't indicate a single choice of license, a
33 * recipient has the option to distribute your version of this file under
34 * either the CDDL, the GPL Version 2 or to extend the choice of license to
35 * its licensees as provided above. However, if you add GPL Version 2 code
36 * and therefore, elected the GPL Version 2 license, then the option applies
37 * only if the new code is made subject to such option by the copyright
38 * holder.
39 */
40 package com.oracle.xmlns.internal.webservices.jaxws_databinding;
41 import org.w3c.dom.Element;
43 import javax.xml.bind.annotation.XmlAccessType;
44 import javax.xml.bind.annotation.XmlAccessorType;
45 import javax.xml.bind.annotation.XmlAnyAttribute;
46 import javax.xml.bind.annotation.XmlAnyElement;
47 import javax.xml.bind.annotation.XmlAttribute;
48 import javax.xml.bind.annotation.XmlElement;
49 import javax.xml.bind.annotation.XmlElementRef;
50 import javax.xml.bind.annotation.XmlElementRefs;
51 import javax.xml.bind.annotation.XmlType;
52 import javax.xml.namespace.QName;
53 import java.util.ArrayList;
54 import java.util.HashMap;
55 import java.util.List;
56 import java.util.Map;
59 /**
60 * This file was generated by JAXB-RI v2.2.6 and afterwards modified
61 * to implement appropriate Annotation
62 *
63 * <p>Java class for java-wsdl-mapping-type complex type.
64 *
65 * <p>The following schema fragment specifies the expected content contained within this class.
66 *
67 * <pre>
68 * <complexType name="java-wsdl-mapping-type">
69 * <complexContent>
70 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
71 * <sequence>
72 * <element name="xml-schema-mapping" minOccurs="0">
73 * <complexType>
74 * <complexContent>
75 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
76 * <sequence>
77 * <any maxOccurs="unbounded" minOccurs="0"/>
78 * </sequence>
79 * </restriction>
80 * </complexContent>
81 * </complexType>
82 * </element>
83 * <group ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}class-annotation" maxOccurs="unbounded" minOccurs="0"/>
84 * <element name="java-methods" minOccurs="0">
85 * <complexType>
86 * <complexContent>
87 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
88 * <sequence>
89 * <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-method" maxOccurs="unbounded" minOccurs="0"/>
90 * </sequence>
91 * </restriction>
92 * </complexContent>
93 * </complexType>
94 * </element>
95 * </sequence>
96 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
97 * <attribute name="java-type-name" type="{http://www.w3.org/2001/XMLSchema}string" />
98 * <attribute name="existing-annotations" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}existing-annotations-type" />
99 * <attribute name="databinding" type="{http://www.w3.org/2001/XMLSchema}string" />
100 * <anyAttribute processContents='skip' namespace='##other'/>
101 * </restriction>
102 * </complexContent>
103 * </complexType>
104 * </pre>
105 *
106 *
107 */
108 @XmlAccessorType(XmlAccessType.FIELD)
109 @XmlType(name = "java-wsdl-mapping-type", propOrder = {
110 "xmlSchemaMapping",
111 "classAnnotation",
112 "javaMethods"
113 })
114 public class JavaWsdlMappingType {
116 @XmlElement(name = "xml-schema-mapping")
117 protected JavaWsdlMappingType.XmlSchemaMapping xmlSchemaMapping;
118 @XmlElementRefs({
119 @XmlElementRef(name = "web-service-client", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebServiceClient.class, required = false),
120 @XmlElementRef(name = "binding-type", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlBindingType.class, required = false),
121 @XmlElementRef(name = "web-service", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebService.class, required = false),
122 @XmlElementRef(name = "web-fault", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebFault.class, required = false),
123 @XmlElementRef(name = "service-mode", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlServiceMode.class, required = false),
124 @XmlElementRef(name = "mtom", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlMTOM.class, required = false),
125 @XmlElementRef(name = "handler-chain", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlHandlerChain.class, required = false),
126 @XmlElementRef(name = "soap-binding", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlSOAPBinding.class, required = false)
127 })
128 @XmlAnyElement
129 protected List<Object> classAnnotation;
130 @XmlElement(name = "java-methods")
131 protected JavaWsdlMappingType.JavaMethods javaMethods;
132 @XmlAttribute(name = "name")
133 protected String name;
134 @XmlAttribute(name = "java-type-name")
135 protected String javaTypeName;
136 @XmlAttribute(name = "existing-annotations")
137 protected ExistingAnnotationsType existingAnnotations;
138 @XmlAttribute(name = "databinding")
139 protected String databinding;
140 @XmlAnyAttribute
141 private Map<QName, String> otherAttributes = new HashMap<QName, String>();
143 /**
144 * Gets the value of the xmlSchemaMapping property.
145 *
146 * @return
147 * possible object is
148 * {@link JavaWsdlMappingType.XmlSchemaMapping }
149 *
150 */
151 public JavaWsdlMappingType.XmlSchemaMapping getXmlSchemaMapping() {
152 return xmlSchemaMapping;
153 }
155 /**
156 * Sets the value of the xmlSchemaMapping property.
157 *
158 * @param value
159 * allowed object is
160 * {@link JavaWsdlMappingType.XmlSchemaMapping }
161 *
162 */
163 public void setXmlSchemaMapping(JavaWsdlMappingType.XmlSchemaMapping value) {
164 this.xmlSchemaMapping = value;
165 }
167 /**
168 *
169 * The class-annotation group defines the set of
170 * annotations applicable to the Java class
171 * declaration.
172 * Gets the value of the classAnnotation property.
173 *
174 * <p>
175 * This accessor method returns a reference to the live list,
176 * not a snapshot. Therefore any modification you make to the
177 * returned list will be present inside the JAXB object.
178 * This is why there is not a <CODE>set</CODE> method for the classAnnotation property.
179 *
180 * <p>
181 * For example, to add a new item, do as follows:
182 * <pre>
183 * getClassAnnotation().add(newItem);
184 * </pre>
185 *
186 *
187 * <p>
188 * Objects of the following type(s) are allowed in the list
189 * {@link XmlWebServiceClient }
190 * {@link XmlBindingType }
191 * {@link XmlWebService }
192 * {@link XmlWebFault }
193 * {@link XmlServiceMode }
194 * {@link XmlMTOM }
195 * {@link XmlHandlerChain }
196 * {@link Element }
197 * {@link XmlSOAPBinding }
198 *
199 *
200 */
201 public List<Object> getClassAnnotation() {
202 if (classAnnotation == null) {
203 classAnnotation = new ArrayList<Object>();
204 }
205 return this.classAnnotation;
206 }
208 /**
209 * Gets the value of the javaMethods property.
210 *
211 * @return
212 * possible object is
213 * {@link JavaWsdlMappingType.JavaMethods }
214 *
215 */
216 public JavaWsdlMappingType.JavaMethods getJavaMethods() {
217 return javaMethods;
218 }
220 /**
221 * Sets the value of the javaMethods property.
222 *
223 * @param value
224 * allowed object is
225 * {@link JavaWsdlMappingType.JavaMethods }
226 *
227 */
228 public void setJavaMethods(JavaWsdlMappingType.JavaMethods value) {
229 this.javaMethods = value;
230 }
232 /**
233 * Gets the value of the name property.
234 *
235 * @return
236 * possible object is
237 * {@link String }
238 *
239 */
240 public String getName() {
241 return name;
242 }
244 /**
245 * Sets the value of the name property.
246 *
247 * @param value
248 * allowed object is
249 * {@link String }
250 *
251 */
252 public void setName(String value) {
253 this.name = value;
254 }
256 /**
257 * Gets the value of the javaTypeName property.
258 *
259 * @return
260 * possible object is
261 * {@link String }
262 *
263 */
264 public String getJavaTypeName() {
265 return javaTypeName;
266 }
268 /**
269 * Sets the value of the javaTypeName property.
270 *
271 * @param value
272 * allowed object is
273 * {@link String }
274 *
275 */
276 public void setJavaTypeName(String value) {
277 this.javaTypeName = value;
278 }
280 /**
281 * Gets the value of the classAnnotations property.
282 *
283 * @return
284 * possible object is
285 * {@link ExistingAnnotationsType }
286 *
287 */
288 public ExistingAnnotationsType getExistingAnnotations() {
289 return existingAnnotations;
290 }
292 /**
293 * Sets the value of the classAnnotations property.
294 *
295 * @param value
296 * allowed object is
297 * {@link ExistingAnnotationsType }
298 *
299 */
300 public void setExistingAnnotations(ExistingAnnotationsType value) {
301 this.existingAnnotations = value;
302 }
304 /**
305 * Gets the value of the databinding property.
306 *
307 * @return
308 * possible object is
309 * {@link String }
310 *
311 */
312 public String getDatabinding() {
313 return databinding;
314 }
316 /**
317 * Sets the value of the databinding property.
318 *
319 * @param value
320 * allowed object is
321 * {@link String }
322 *
323 */
324 public void setDatabinding(String value) {
325 this.databinding = value;
326 }
328 /**
329 * Gets a map that contains attributes that aren't bound to any typed property on this class.
330 *
331 * <p>
332 * the map is keyed by the name of the attribute and
333 * the value is the string value of the attribute.
334 *
335 * the map returned by this method is live, and you can add new attribute
336 * by updating the map directly. Because of this design, there's no setter.
337 *
338 *
339 * @return
340 * always non-null
341 */
342 public Map<QName, String> getOtherAttributes() {
343 return otherAttributes;
344 }
347 /**
348 * <p>Java class for anonymous complex type.
349 *
350 * <p>The following schema fragment specifies the expected content contained within this class.
351 *
352 * <pre>
353 * <complexType>
354 * <complexContent>
355 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
356 * <sequence>
357 * <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-method" maxOccurs="unbounded" minOccurs="0"/>
358 * </sequence>
359 * </restriction>
360 * </complexContent>
361 * </complexType>
362 * </pre>
363 *
364 *
365 */
366 @XmlAccessorType(XmlAccessType.FIELD)
367 @XmlType(name = "", propOrder = {
368 "javaMethod"
369 })
370 public static class JavaMethods {
372 @XmlElement(name = "java-method")
373 protected List<JavaMethod> javaMethod;
375 /**
376 * Gets the value of the javaMethod property.
377 *
378 * <p>
379 * This accessor method returns a reference to the live list,
380 * not a snapshot. Therefore any modification you make to the
381 * returned list will be present inside the JAXB object.
382 * This is why there is not a <CODE>set</CODE> method for the javaMethod property.
383 *
384 * <p>
385 * For example, to add a new item, do as follows:
386 * <pre>
387 * getJavaMethod().add(newItem);
388 * </pre>
389 *
390 *
391 * <p>
392 * Objects of the following type(s) are allowed in the list
393 * {@link JavaMethod }
394 *
395 *
396 */
397 public List<JavaMethod> getJavaMethod() {
398 if (javaMethod == null) {
399 javaMethod = new ArrayList<JavaMethod>();
400 }
401 return this.javaMethod;
402 }
404 }
407 /**
408 * <p>Java class for anonymous complex type.
409 *
410 * <p>The following schema fragment specifies the expected content contained within this class.
411 *
412 * <pre>
413 * <complexType>
414 * <complexContent>
415 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
416 * <sequence>
417 * <any maxOccurs="unbounded" minOccurs="0"/>
418 * </sequence>
419 * </restriction>
420 * </complexContent>
421 * </complexType>
422 * </pre>
423 *
424 *
425 */
426 @XmlAccessorType(XmlAccessType.FIELD)
427 @XmlType(name = "", propOrder = {
428 "any"
429 })
430 public static class XmlSchemaMapping {
432 @XmlAnyElement(lax = true)
433 protected List<Object> any;
435 /**
436 * Gets the value of the any property.
437 *
438 * <p>
439 * This accessor method returns a reference to the live list,
440 * not a snapshot. Therefore any modification you make to the
441 * returned list will be present inside the JAXB object.
442 * This is why there is not a <CODE>set</CODE> method for the any property.
443 *
444 * <p>
445 * For example, to add a new item, do as follows:
446 * <pre>
447 * getAny().add(newItem);
448 * </pre>
449 *
450 *
451 * <p>
452 * Objects of the following type(s) are allowed in the list
453 * {@link Object }
454 *
455 *
456 */
457 public List<Object> getAny() {
458 if (any == null) {
459 any = new ArrayList<Object>();
460 }
461 return this.any;
462 }
464 }
466 }