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/XmlRequestWrapper.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -0,0 +1,203 @@ 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 + 1.44 +package com.oracle.xmlns.internal.webservices.jaxws_databinding; 1.45 +import javax.xml.bind.annotation.XmlAccessType; 1.46 +import javax.xml.bind.annotation.XmlAccessorType; 1.47 +import javax.xml.bind.annotation.XmlAttribute; 1.48 +import javax.xml.bind.annotation.XmlRootElement; 1.49 +import javax.xml.bind.annotation.XmlType; 1.50 +import java.lang.annotation.Annotation; 1.51 + 1.52 +import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe; 1.53 + 1.54 + 1.55 +/** 1.56 + * This file was generated by JAXB-RI v2.2.6 and afterwards modified 1.57 + * to implement appropriate Annotation 1.58 + * 1.59 + * <p>Java class for anonymous complex type. 1.60 + * 1.61 + * <p>The following schema fragment specifies the expected content contained within this class. 1.62 + * 1.63 + * <pre> 1.64 + * <complexType> 1.65 + * <complexContent> 1.66 + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1.67 + * <attribute name="local-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> 1.68 + * <attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> 1.69 + * <attribute name="class-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> 1.70 + * <attribute name="part-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> 1.71 + * </restriction> 1.72 + * </complexContent> 1.73 + * </complexType> 1.74 + * </pre> 1.75 + */ 1.76 +@XmlAccessorType(XmlAccessType.FIELD) 1.77 +@XmlType(name = "") 1.78 +@XmlRootElement(name = "request-wrapper") 1.79 +public class XmlRequestWrapper implements javax.xml.ws.RequestWrapper { 1.80 + 1.81 + @XmlAttribute(name = "local-name") 1.82 + protected String localName; 1.83 + @XmlAttribute(name = "target-namespace") 1.84 + protected String targetNamespace; 1.85 + @XmlAttribute(name = "class-name") 1.86 + protected String className; 1.87 + @XmlAttribute(name = "part-name") 1.88 + protected String partName; 1.89 + 1.90 + /** 1.91 + * Gets the value of the localName property. 1.92 + * 1.93 + * @return 1.94 + * possible object is 1.95 + * {@link String } 1.96 + * 1.97 + */ 1.98 + public String getLocalName() { 1.99 + if (localName == null) { 1.100 + return ""; 1.101 + } else { 1.102 + return localName; 1.103 + } 1.104 + } 1.105 + 1.106 + /** 1.107 + * Sets the value of the localName property. 1.108 + * 1.109 + * @param value 1.110 + * allowed object is 1.111 + * {@link String } 1.112 + * 1.113 + */ 1.114 + public void setLocalName(String value) { 1.115 + this.localName = value; 1.116 + } 1.117 + 1.118 + /** 1.119 + * Gets the value of the targetNamespace property. 1.120 + * 1.121 + * @return 1.122 + * possible object is 1.123 + * {@link String } 1.124 + * 1.125 + */ 1.126 + public String getTargetNamespace() { 1.127 + if (targetNamespace == null) { 1.128 + return ""; 1.129 + } else { 1.130 + return targetNamespace; 1.131 + } 1.132 + } 1.133 + 1.134 + /** 1.135 + * Sets the value of the targetNamespace property. 1.136 + * 1.137 + * @param value 1.138 + * allowed object is 1.139 + * {@link String } 1.140 + * 1.141 + */ 1.142 + public void setTargetNamespace(String value) { 1.143 + this.targetNamespace = value; 1.144 + } 1.145 + 1.146 + /** 1.147 + * Gets the value of the className property. 1.148 + * 1.149 + * @return 1.150 + * possible object is 1.151 + * {@link String } 1.152 + * 1.153 + */ 1.154 + public String getClassName() { 1.155 + if (className == null) { 1.156 + return ""; 1.157 + } else { 1.158 + return className; 1.159 + } 1.160 + } 1.161 + 1.162 + /** 1.163 + * Sets the value of the className property. 1.164 + * 1.165 + * @param value 1.166 + * allowed object is 1.167 + * {@link String } 1.168 + * 1.169 + */ 1.170 + public void setClassName(String value) { 1.171 + this.className = value; 1.172 + } 1.173 + 1.174 + public String getPartName() { 1.175 + return partName; 1.176 + } 1.177 + 1.178 + public void setPartName(String partName) { 1.179 + this.partName = partName; 1.180 + } 1.181 + 1.182 + @Override 1.183 + public String localName() { 1.184 + return nullSafe(localName); 1.185 + } 1.186 + 1.187 + @Override 1.188 + public String targetNamespace() { 1.189 + return nullSafe(targetNamespace); 1.190 + } 1.191 + 1.192 + @Override 1.193 + public String className() { 1.194 + return nullSafe(className); 1.195 + } 1.196 + 1.197 + @Override 1.198 + public String partName() { 1.199 + return nullSafe(partName); 1.200 + } 1.201 + 1.202 + @Override 1.203 + public Class<? extends Annotation> annotationType() { 1.204 + return javax.xml.ws.RequestWrapper.class; 1.205 + } 1.206 +}