1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/share/jaxws_classes/com/oracle/xmlns/internal/webservices/jaxws_databinding/JavaWsdlMappingType.java Wed Apr 27 01:27:09 2016 +0800 1.3 @@ -0,0 +1,452 @@ 1.4 +/* 1.5 + * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. Oracle designates this 1.11 + * particular file as subject to the "Classpath" exception as provided 1.12 + * by Oracle in the LICENSE file that accompanied this code. 1.13 + * 1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 + * version 2 for more details (a copy is included in the LICENSE file that 1.18 + * accompanied this code). 1.19 + * 1.20 + * You should have received a copy of the GNU General Public License version 1.21 + * 2 along with this work; if not, write to the Free Software Foundation, 1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 + * 1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.25 + * or visit www.oracle.com if you need additional information or have any 1.26 + * questions. 1.27 + */ 1.28 + 1.29 +package com.oracle.xmlns.internal.webservices.jaxws_databinding; 1.30 +import org.w3c.dom.Element; 1.31 + 1.32 +import javax.xml.bind.annotation.XmlAccessType; 1.33 +import javax.xml.bind.annotation.XmlAccessorType; 1.34 +import javax.xml.bind.annotation.XmlAnyAttribute; 1.35 +import javax.xml.bind.annotation.XmlAnyElement; 1.36 +import javax.xml.bind.annotation.XmlAttribute; 1.37 +import javax.xml.bind.annotation.XmlElement; 1.38 +import javax.xml.bind.annotation.XmlElementRef; 1.39 +import javax.xml.bind.annotation.XmlElementRefs; 1.40 +import javax.xml.bind.annotation.XmlType; 1.41 +import javax.xml.namespace.QName; 1.42 +import java.util.ArrayList; 1.43 +import java.util.HashMap; 1.44 +import java.util.List; 1.45 +import java.util.Map; 1.46 + 1.47 + 1.48 +/** 1.49 + * This file was generated by JAXB-RI v2.2.6 and afterwards modified 1.50 + * to implement appropriate Annotation 1.51 + * 1.52 + * <p>Java class for java-wsdl-mapping-type complex type. 1.53 + * 1.54 + * <p>The following schema fragment specifies the expected content contained within this class. 1.55 + * 1.56 + * <pre> 1.57 + * <complexType name="java-wsdl-mapping-type"> 1.58 + * <complexContent> 1.59 + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1.60 + * <sequence> 1.61 + * <element name="xml-schema-mapping" minOccurs="0"> 1.62 + * <complexType> 1.63 + * <complexContent> 1.64 + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1.65 + * <sequence> 1.66 + * <any maxOccurs="unbounded" minOccurs="0"/> 1.67 + * </sequence> 1.68 + * </restriction> 1.69 + * </complexContent> 1.70 + * </complexType> 1.71 + * </element> 1.72 + * <group ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}class-annotation" maxOccurs="unbounded" minOccurs="0"/> 1.73 + * <element name="java-methods" minOccurs="0"> 1.74 + * <complexType> 1.75 + * <complexContent> 1.76 + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1.77 + * <sequence> 1.78 + * <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-method" maxOccurs="unbounded" minOccurs="0"/> 1.79 + * </sequence> 1.80 + * </restriction> 1.81 + * </complexContent> 1.82 + * </complexType> 1.83 + * </element> 1.84 + * </sequence> 1.85 + * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> 1.86 + * <attribute name="java-type-name" type="{http://www.w3.org/2001/XMLSchema}string" /> 1.87 + * <attribute name="existing-annotations" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}existing-annotations-type" /> 1.88 + * <attribute name="databinding" type="{http://www.w3.org/2001/XMLSchema}string" /> 1.89 + * <anyAttribute processContents='skip' namespace='##other'/> 1.90 + * </restriction> 1.91 + * </complexContent> 1.92 + * </complexType> 1.93 + * </pre> 1.94 + * 1.95 + * 1.96 + */ 1.97 +@XmlAccessorType(XmlAccessType.FIELD) 1.98 +@XmlType(name = "java-wsdl-mapping-type", propOrder = { 1.99 + "xmlSchemaMapping", 1.100 + "classAnnotation", 1.101 + "javaMethods" 1.102 +}) 1.103 +public class JavaWsdlMappingType { 1.104 + 1.105 + @XmlElement(name = "xml-schema-mapping") 1.106 + protected JavaWsdlMappingType.XmlSchemaMapping xmlSchemaMapping; 1.107 + @XmlElementRefs({ 1.108 + @XmlElementRef(name = "web-service-client", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebServiceClient.class, required = false), 1.109 + @XmlElementRef(name = "binding-type", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlBindingType.class, required = false), 1.110 + @XmlElementRef(name = "web-service", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebService.class, required = false), 1.111 + @XmlElementRef(name = "web-fault", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebFault.class, required = false), 1.112 + @XmlElementRef(name = "service-mode", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlServiceMode.class, required = false), 1.113 + @XmlElementRef(name = "mtom", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlMTOM.class, required = false), 1.114 + @XmlElementRef(name = "handler-chain", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlHandlerChain.class, required = false), 1.115 + @XmlElementRef(name = "soap-binding", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlSOAPBinding.class, required = false) 1.116 + }) 1.117 + @XmlAnyElement 1.118 + protected List<Object> classAnnotation; 1.119 + @XmlElement(name = "java-methods") 1.120 + protected JavaWsdlMappingType.JavaMethods javaMethods; 1.121 + @XmlAttribute(name = "name") 1.122 + protected String name; 1.123 + @XmlAttribute(name = "java-type-name") 1.124 + protected String javaTypeName; 1.125 + @XmlAttribute(name = "existing-annotations") 1.126 + protected ExistingAnnotationsType existingAnnotations; 1.127 + @XmlAttribute(name = "databinding") 1.128 + protected String databinding; 1.129 + @XmlAnyAttribute 1.130 + private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 1.131 + 1.132 + /** 1.133 + * Gets the value of the xmlSchemaMapping property. 1.134 + * 1.135 + * @return 1.136 + * possible object is 1.137 + * {@link JavaWsdlMappingType.XmlSchemaMapping } 1.138 + * 1.139 + */ 1.140 + public JavaWsdlMappingType.XmlSchemaMapping getXmlSchemaMapping() { 1.141 + return xmlSchemaMapping; 1.142 + } 1.143 + 1.144 + /** 1.145 + * Sets the value of the xmlSchemaMapping property. 1.146 + * 1.147 + * @param value 1.148 + * allowed object is 1.149 + * {@link JavaWsdlMappingType.XmlSchemaMapping } 1.150 + * 1.151 + */ 1.152 + public void setXmlSchemaMapping(JavaWsdlMappingType.XmlSchemaMapping value) { 1.153 + this.xmlSchemaMapping = value; 1.154 + } 1.155 + 1.156 + /** 1.157 + * 1.158 + * The class-annotation group defines the set of 1.159 + * annotations applicable to the Java class 1.160 + * declaration. 1.161 + * Gets the value of the classAnnotation property. 1.162 + * 1.163 + * <p> 1.164 + * This accessor method returns a reference to the live list, 1.165 + * not a snapshot. Therefore any modification you make to the 1.166 + * returned list will be present inside the JAXB object. 1.167 + * This is why there is not a <CODE>set</CODE> method for the classAnnotation property. 1.168 + * 1.169 + * <p> 1.170 + * For example, to add a new item, do as follows: 1.171 + * <pre> 1.172 + * getClassAnnotation().add(newItem); 1.173 + * </pre> 1.174 + * 1.175 + * 1.176 + * <p> 1.177 + * Objects of the following type(s) are allowed in the list 1.178 + * {@link XmlWebServiceClient } 1.179 + * {@link XmlBindingType } 1.180 + * {@link XmlWebService } 1.181 + * {@link XmlWebFault } 1.182 + * {@link XmlServiceMode } 1.183 + * {@link XmlMTOM } 1.184 + * {@link XmlHandlerChain } 1.185 + * {@link Element } 1.186 + * {@link XmlSOAPBinding } 1.187 + * 1.188 + * 1.189 + */ 1.190 + public List<Object> getClassAnnotation() { 1.191 + if (classAnnotation == null) { 1.192 + classAnnotation = new ArrayList<Object>(); 1.193 + } 1.194 + return this.classAnnotation; 1.195 + } 1.196 + 1.197 + /** 1.198 + * Gets the value of the javaMethods property. 1.199 + * 1.200 + * @return 1.201 + * possible object is 1.202 + * {@link JavaWsdlMappingType.JavaMethods } 1.203 + * 1.204 + */ 1.205 + public JavaWsdlMappingType.JavaMethods getJavaMethods() { 1.206 + return javaMethods; 1.207 + } 1.208 + 1.209 + /** 1.210 + * Sets the value of the javaMethods property. 1.211 + * 1.212 + * @param value 1.213 + * allowed object is 1.214 + * {@link JavaWsdlMappingType.JavaMethods } 1.215 + * 1.216 + */ 1.217 + public void setJavaMethods(JavaWsdlMappingType.JavaMethods value) { 1.218 + this.javaMethods = value; 1.219 + } 1.220 + 1.221 + /** 1.222 + * Gets the value of the name property. 1.223 + * 1.224 + * @return 1.225 + * possible object is 1.226 + * {@link String } 1.227 + * 1.228 + */ 1.229 + public String getName() { 1.230 + return name; 1.231 + } 1.232 + 1.233 + /** 1.234 + * Sets the value of the name property. 1.235 + * 1.236 + * @param value 1.237 + * allowed object is 1.238 + * {@link String } 1.239 + * 1.240 + */ 1.241 + public void setName(String value) { 1.242 + this.name = value; 1.243 + } 1.244 + 1.245 + /** 1.246 + * Gets the value of the javaTypeName property. 1.247 + * 1.248 + * @return 1.249 + * possible object is 1.250 + * {@link String } 1.251 + * 1.252 + */ 1.253 + public String getJavaTypeName() { 1.254 + return javaTypeName; 1.255 + } 1.256 + 1.257 + /** 1.258 + * Sets the value of the javaTypeName property. 1.259 + * 1.260 + * @param value 1.261 + * allowed object is 1.262 + * {@link String } 1.263 + * 1.264 + */ 1.265 + public void setJavaTypeName(String value) { 1.266 + this.javaTypeName = value; 1.267 + } 1.268 + 1.269 + /** 1.270 + * Gets the value of the classAnnotations property. 1.271 + * 1.272 + * @return 1.273 + * possible object is 1.274 + * {@link ExistingAnnotationsType } 1.275 + * 1.276 + */ 1.277 + public ExistingAnnotationsType getExistingAnnotations() { 1.278 + return existingAnnotations; 1.279 + } 1.280 + 1.281 + /** 1.282 + * Sets the value of the classAnnotations property. 1.283 + * 1.284 + * @param value 1.285 + * allowed object is 1.286 + * {@link ExistingAnnotationsType } 1.287 + * 1.288 + */ 1.289 + public void setExistingAnnotations(ExistingAnnotationsType value) { 1.290 + this.existingAnnotations = value; 1.291 + } 1.292 + 1.293 + /** 1.294 + * Gets the value of the databinding property. 1.295 + * 1.296 + * @return 1.297 + * possible object is 1.298 + * {@link String } 1.299 + * 1.300 + */ 1.301 + public String getDatabinding() { 1.302 + return databinding; 1.303 + } 1.304 + 1.305 + /** 1.306 + * Sets the value of the databinding property. 1.307 + * 1.308 + * @param value 1.309 + * allowed object is 1.310 + * {@link String } 1.311 + * 1.312 + */ 1.313 + public void setDatabinding(String value) { 1.314 + this.databinding = value; 1.315 + } 1.316 + 1.317 + /** 1.318 + * Gets a map that contains attributes that aren't bound to any typed property on this class. 1.319 + * 1.320 + * <p> 1.321 + * the map is keyed by the name of the attribute and 1.322 + * the value is the string value of the attribute. 1.323 + * 1.324 + * the map returned by this method is live, and you can add new attribute 1.325 + * by updating the map directly. Because of this design, there's no setter. 1.326 + * 1.327 + * 1.328 + * @return 1.329 + * always non-null 1.330 + */ 1.331 + public Map<QName, String> getOtherAttributes() { 1.332 + return otherAttributes; 1.333 + } 1.334 + 1.335 + 1.336 + /** 1.337 + * <p>Java class for anonymous complex type. 1.338 + * 1.339 + * <p>The following schema fragment specifies the expected content contained within this class. 1.340 + * 1.341 + * <pre> 1.342 + * <complexType> 1.343 + * <complexContent> 1.344 + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1.345 + * <sequence> 1.346 + * <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-method" maxOccurs="unbounded" minOccurs="0"/> 1.347 + * </sequence> 1.348 + * </restriction> 1.349 + * </complexContent> 1.350 + * </complexType> 1.351 + * </pre> 1.352 + * 1.353 + * 1.354 + */ 1.355 + @XmlAccessorType(XmlAccessType.FIELD) 1.356 + @XmlType(name = "", propOrder = { 1.357 + "javaMethod" 1.358 + }) 1.359 + public static class JavaMethods { 1.360 + 1.361 + @XmlElement(name = "java-method") 1.362 + protected List<JavaMethod> javaMethod; 1.363 + 1.364 + /** 1.365 + * Gets the value of the javaMethod property. 1.366 + * 1.367 + * <p> 1.368 + * This accessor method returns a reference to the live list, 1.369 + * not a snapshot. Therefore any modification you make to the 1.370 + * returned list will be present inside the JAXB object. 1.371 + * This is why there is not a <CODE>set</CODE> method for the javaMethod property. 1.372 + * 1.373 + * <p> 1.374 + * For example, to add a new item, do as follows: 1.375 + * <pre> 1.376 + * getJavaMethod().add(newItem); 1.377 + * </pre> 1.378 + * 1.379 + * 1.380 + * <p> 1.381 + * Objects of the following type(s) are allowed in the list 1.382 + * {@link JavaMethod } 1.383 + * 1.384 + * 1.385 + */ 1.386 + public List<JavaMethod> getJavaMethod() { 1.387 + if (javaMethod == null) { 1.388 + javaMethod = new ArrayList<JavaMethod>(); 1.389 + } 1.390 + return this.javaMethod; 1.391 + } 1.392 + 1.393 + } 1.394 + 1.395 + 1.396 + /** 1.397 + * <p>Java class for anonymous complex type. 1.398 + * 1.399 + * <p>The following schema fragment specifies the expected content contained within this class. 1.400 + * 1.401 + * <pre> 1.402 + * <complexType> 1.403 + * <complexContent> 1.404 + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1.405 + * <sequence> 1.406 + * <any maxOccurs="unbounded" minOccurs="0"/> 1.407 + * </sequence> 1.408 + * </restriction> 1.409 + * </complexContent> 1.410 + * </complexType> 1.411 + * </pre> 1.412 + * 1.413 + * 1.414 + */ 1.415 + @XmlAccessorType(XmlAccessType.FIELD) 1.416 + @XmlType(name = "", propOrder = { 1.417 + "any" 1.418 + }) 1.419 + public static class XmlSchemaMapping { 1.420 + 1.421 + @XmlAnyElement(lax = true) 1.422 + protected List<Object> any; 1.423 + 1.424 + /** 1.425 + * Gets the value of the any property. 1.426 + * 1.427 + * <p> 1.428 + * This accessor method returns a reference to the live list, 1.429 + * not a snapshot. Therefore any modification you make to the 1.430 + * returned list will be present inside the JAXB object. 1.431 + * This is why there is not a <CODE>set</CODE> method for the any property. 1.432 + * 1.433 + * <p> 1.434 + * For example, to add a new item, do as follows: 1.435 + * <pre> 1.436 + * getAny().add(newItem); 1.437 + * </pre> 1.438 + * 1.439 + * 1.440 + * <p> 1.441 + * Objects of the following type(s) are allowed in the list 1.442 + * {@link Object } 1.443 + * 1.444 + * 1.445 + */ 1.446 + public List<Object> getAny() { 1.447 + if (any == null) { 1.448 + any = new ArrayList<Object>(); 1.449 + } 1.450 + return this.any; 1.451 + } 1.452 + 1.453 + } 1.454 + 1.455 +}