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