Wed, 27 Apr 2016 01:27:09 +0800
Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/jaxws/
changeset: 657:d47a47f961ee
tag: jdk8u25-b17
1 /*
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
26 package com.oracle.xmlns.internal.webservices.jaxws_databinding;
27 import org.w3c.dom.Element;
29 import javax.xml.bind.annotation.XmlAccessType;
30 import javax.xml.bind.annotation.XmlAccessorType;
31 import javax.xml.bind.annotation.XmlAnyAttribute;
32 import javax.xml.bind.annotation.XmlAnyElement;
33 import javax.xml.bind.annotation.XmlAttribute;
34 import javax.xml.bind.annotation.XmlElement;
35 import javax.xml.bind.annotation.XmlElementRef;
36 import javax.xml.bind.annotation.XmlElementRefs;
37 import javax.xml.bind.annotation.XmlType;
38 import javax.xml.namespace.QName;
39 import java.util.ArrayList;
40 import java.util.HashMap;
41 import java.util.List;
42 import java.util.Map;
45 /**
46 * This file was generated by JAXB-RI v2.2.6 and afterwards modified
47 * to implement appropriate Annotation
48 *
49 * <p>Java class for java-wsdl-mapping-type complex type.
50 *
51 * <p>The following schema fragment specifies the expected content contained within this class.
52 *
53 * <pre>
54 * <complexType name="java-wsdl-mapping-type">
55 * <complexContent>
56 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
57 * <sequence>
58 * <element name="xml-schema-mapping" minOccurs="0">
59 * <complexType>
60 * <complexContent>
61 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
62 * <sequence>
63 * <any maxOccurs="unbounded" minOccurs="0"/>
64 * </sequence>
65 * </restriction>
66 * </complexContent>
67 * </complexType>
68 * </element>
69 * <group ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}class-annotation" maxOccurs="unbounded" minOccurs="0"/>
70 * <element name="java-methods" minOccurs="0">
71 * <complexType>
72 * <complexContent>
73 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
74 * <sequence>
75 * <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-method" maxOccurs="unbounded" minOccurs="0"/>
76 * </sequence>
77 * </restriction>
78 * </complexContent>
79 * </complexType>
80 * </element>
81 * </sequence>
82 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
83 * <attribute name="java-type-name" type="{http://www.w3.org/2001/XMLSchema}string" />
84 * <attribute name="existing-annotations" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}existing-annotations-type" />
85 * <attribute name="databinding" type="{http://www.w3.org/2001/XMLSchema}string" />
86 * <anyAttribute processContents='skip' namespace='##other'/>
87 * </restriction>
88 * </complexContent>
89 * </complexType>
90 * </pre>
91 *
92 *
93 */
94 @XmlAccessorType(XmlAccessType.FIELD)
95 @XmlType(name = "java-wsdl-mapping-type", propOrder = {
96 "xmlSchemaMapping",
97 "classAnnotation",
98 "javaMethods"
99 })
100 public class JavaWsdlMappingType {
102 @XmlElement(name = "xml-schema-mapping")
103 protected JavaWsdlMappingType.XmlSchemaMapping xmlSchemaMapping;
104 @XmlElementRefs({
105 @XmlElementRef(name = "web-service-client", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebServiceClient.class, required = false),
106 @XmlElementRef(name = "binding-type", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlBindingType.class, required = false),
107 @XmlElementRef(name = "web-service", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebService.class, required = false),
108 @XmlElementRef(name = "web-fault", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebFault.class, required = false),
109 @XmlElementRef(name = "service-mode", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlServiceMode.class, required = false),
110 @XmlElementRef(name = "mtom", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlMTOM.class, required = false),
111 @XmlElementRef(name = "handler-chain", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlHandlerChain.class, required = false),
112 @XmlElementRef(name = "soap-binding", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlSOAPBinding.class, required = false)
113 })
114 @XmlAnyElement
115 protected List<Object> classAnnotation;
116 @XmlElement(name = "java-methods")
117 protected JavaWsdlMappingType.JavaMethods javaMethods;
118 @XmlAttribute(name = "name")
119 protected String name;
120 @XmlAttribute(name = "java-type-name")
121 protected String javaTypeName;
122 @XmlAttribute(name = "existing-annotations")
123 protected ExistingAnnotationsType existingAnnotations;
124 @XmlAttribute(name = "databinding")
125 protected String databinding;
126 @XmlAnyAttribute
127 private Map<QName, String> otherAttributes = new HashMap<QName, String>();
129 /**
130 * Gets the value of the xmlSchemaMapping property.
131 *
132 * @return
133 * possible object is
134 * {@link JavaWsdlMappingType.XmlSchemaMapping }
135 *
136 */
137 public JavaWsdlMappingType.XmlSchemaMapping getXmlSchemaMapping() {
138 return xmlSchemaMapping;
139 }
141 /**
142 * Sets the value of the xmlSchemaMapping property.
143 *
144 * @param value
145 * allowed object is
146 * {@link JavaWsdlMappingType.XmlSchemaMapping }
147 *
148 */
149 public void setXmlSchemaMapping(JavaWsdlMappingType.XmlSchemaMapping value) {
150 this.xmlSchemaMapping = value;
151 }
153 /**
154 *
155 * The class-annotation group defines the set of
156 * annotations applicable to the Java class
157 * declaration.
158 * Gets the value of the classAnnotation property.
159 *
160 * <p>
161 * This accessor method returns a reference to the live list,
162 * not a snapshot. Therefore any modification you make to the
163 * returned list will be present inside the JAXB object.
164 * This is why there is not a <CODE>set</CODE> method for the classAnnotation property.
165 *
166 * <p>
167 * For example, to add a new item, do as follows:
168 * <pre>
169 * getClassAnnotation().add(newItem);
170 * </pre>
171 *
172 *
173 * <p>
174 * Objects of the following type(s) are allowed in the list
175 * {@link XmlWebServiceClient }
176 * {@link XmlBindingType }
177 * {@link XmlWebService }
178 * {@link XmlWebFault }
179 * {@link XmlServiceMode }
180 * {@link XmlMTOM }
181 * {@link XmlHandlerChain }
182 * {@link Element }
183 * {@link XmlSOAPBinding }
184 *
185 *
186 */
187 public List<Object> getClassAnnotation() {
188 if (classAnnotation == null) {
189 classAnnotation = new ArrayList<Object>();
190 }
191 return this.classAnnotation;
192 }
194 /**
195 * Gets the value of the javaMethods property.
196 *
197 * @return
198 * possible object is
199 * {@link JavaWsdlMappingType.JavaMethods }
200 *
201 */
202 public JavaWsdlMappingType.JavaMethods getJavaMethods() {
203 return javaMethods;
204 }
206 /**
207 * Sets the value of the javaMethods property.
208 *
209 * @param value
210 * allowed object is
211 * {@link JavaWsdlMappingType.JavaMethods }
212 *
213 */
214 public void setJavaMethods(JavaWsdlMappingType.JavaMethods value) {
215 this.javaMethods = value;
216 }
218 /**
219 * Gets the value of the name property.
220 *
221 * @return
222 * possible object is
223 * {@link String }
224 *
225 */
226 public String getName() {
227 return name;
228 }
230 /**
231 * Sets the value of the name property.
232 *
233 * @param value
234 * allowed object is
235 * {@link String }
236 *
237 */
238 public void setName(String value) {
239 this.name = value;
240 }
242 /**
243 * Gets the value of the javaTypeName property.
244 *
245 * @return
246 * possible object is
247 * {@link String }
248 *
249 */
250 public String getJavaTypeName() {
251 return javaTypeName;
252 }
254 /**
255 * Sets the value of the javaTypeName property.
256 *
257 * @param value
258 * allowed object is
259 * {@link String }
260 *
261 */
262 public void setJavaTypeName(String value) {
263 this.javaTypeName = value;
264 }
266 /**
267 * Gets the value of the classAnnotations property.
268 *
269 * @return
270 * possible object is
271 * {@link ExistingAnnotationsType }
272 *
273 */
274 public ExistingAnnotationsType getExistingAnnotations() {
275 return existingAnnotations;
276 }
278 /**
279 * Sets the value of the classAnnotations property.
280 *
281 * @param value
282 * allowed object is
283 * {@link ExistingAnnotationsType }
284 *
285 */
286 public void setExistingAnnotations(ExistingAnnotationsType value) {
287 this.existingAnnotations = value;
288 }
290 /**
291 * Gets the value of the databinding property.
292 *
293 * @return
294 * possible object is
295 * {@link String }
296 *
297 */
298 public String getDatabinding() {
299 return databinding;
300 }
302 /**
303 * Sets the value of the databinding property.
304 *
305 * @param value
306 * allowed object is
307 * {@link String }
308 *
309 */
310 public void setDatabinding(String value) {
311 this.databinding = value;
312 }
314 /**
315 * Gets a map that contains attributes that aren't bound to any typed property on this class.
316 *
317 * <p>
318 * the map is keyed by the name of the attribute and
319 * the value is the string value of the attribute.
320 *
321 * the map returned by this method is live, and you can add new attribute
322 * by updating the map directly. Because of this design, there's no setter.
323 *
324 *
325 * @return
326 * always non-null
327 */
328 public Map<QName, String> getOtherAttributes() {
329 return otherAttributes;
330 }
333 /**
334 * <p>Java class for anonymous complex type.
335 *
336 * <p>The following schema fragment specifies the expected content contained within this class.
337 *
338 * <pre>
339 * <complexType>
340 * <complexContent>
341 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
342 * <sequence>
343 * <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-method" maxOccurs="unbounded" minOccurs="0"/>
344 * </sequence>
345 * </restriction>
346 * </complexContent>
347 * </complexType>
348 * </pre>
349 *
350 *
351 */
352 @XmlAccessorType(XmlAccessType.FIELD)
353 @XmlType(name = "", propOrder = {
354 "javaMethod"
355 })
356 public static class JavaMethods {
358 @XmlElement(name = "java-method")
359 protected List<JavaMethod> javaMethod;
361 /**
362 * Gets the value of the javaMethod property.
363 *
364 * <p>
365 * This accessor method returns a reference to the live list,
366 * not a snapshot. Therefore any modification you make to the
367 * returned list will be present inside the JAXB object.
368 * This is why there is not a <CODE>set</CODE> method for the javaMethod property.
369 *
370 * <p>
371 * For example, to add a new item, do as follows:
372 * <pre>
373 * getJavaMethod().add(newItem);
374 * </pre>
375 *
376 *
377 * <p>
378 * Objects of the following type(s) are allowed in the list
379 * {@link JavaMethod }
380 *
381 *
382 */
383 public List<JavaMethod> getJavaMethod() {
384 if (javaMethod == null) {
385 javaMethod = new ArrayList<JavaMethod>();
386 }
387 return this.javaMethod;
388 }
390 }
393 /**
394 * <p>Java class for anonymous complex type.
395 *
396 * <p>The following schema fragment specifies the expected content contained within this class.
397 *
398 * <pre>
399 * <complexType>
400 * <complexContent>
401 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
402 * <sequence>
403 * <any maxOccurs="unbounded" minOccurs="0"/>
404 * </sequence>
405 * </restriction>
406 * </complexContent>
407 * </complexType>
408 * </pre>
409 *
410 *
411 */
412 @XmlAccessorType(XmlAccessType.FIELD)
413 @XmlType(name = "", propOrder = {
414 "any"
415 })
416 public static class XmlSchemaMapping {
418 @XmlAnyElement(lax = true)
419 protected List<Object> any;
421 /**
422 * Gets the value of the any property.
423 *
424 * <p>
425 * This accessor method returns a reference to the live list,
426 * not a snapshot. Therefore any modification you make to the
427 * returned list will be present inside the JAXB object.
428 * This is why there is not a <CODE>set</CODE> method for the any property.
429 *
430 * <p>
431 * For example, to add a new item, do as follows:
432 * <pre>
433 * getAny().add(newItem);
434 * </pre>
435 *
436 *
437 * <p>
438 * Objects of the following type(s) are allowed in the list
439 * {@link Object }
440 *
441 *
442 */
443 public List<Object> getAny() {
444 if (any == null) {
445 any = new ArrayList<Object>();
446 }
447 return this.any;
448 }
450 }
452 }