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/XmlWebParam.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -0,0 +1,258 @@ 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 javax.xml.bind.annotation.XmlAccessType; 1.45 +import javax.xml.bind.annotation.XmlAccessorType; 1.46 +import javax.xml.bind.annotation.XmlAttribute; 1.47 +import javax.xml.bind.annotation.XmlRootElement; 1.48 +import javax.xml.bind.annotation.XmlType; 1.49 +import java.lang.annotation.Annotation; 1.50 + 1.51 +import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe; 1.52 + 1.53 + 1.54 +/** 1.55 + * This file was generated by JAXB-RI v2.2.6 and afterwards modified 1.56 + * to implement appropriate Annotation 1.57 + * 1.58 + * <p>Java class for anonymous complex type. 1.59 + * 1.60 + * <p>The following schema fragment specifies the expected content contained within this class. 1.61 + * 1.62 + * <pre> 1.63 + * <complexType> 1.64 + * <complexContent> 1.65 + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1.66 + * <attribute name="header" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> 1.67 + * <attribute name="mode" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}web-param-mode" default="IN" /> 1.68 + * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> 1.69 + * <attribute name="part-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> 1.70 + * <attribute name="target-namespace" 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 = "web-param") 1.79 +public class XmlWebParam implements javax.jws.WebParam { 1.80 + 1.81 + @XmlAttribute(name = "header") 1.82 + protected Boolean header; 1.83 + @XmlAttribute(name = "mode") 1.84 + protected WebParamMode mode; 1.85 + @XmlAttribute(name = "name") 1.86 + protected String name; 1.87 + @XmlAttribute(name = "part-name") 1.88 + protected String partName; 1.89 + @XmlAttribute(name = "target-namespace") 1.90 + protected String targetNamespace; 1.91 + 1.92 + /** 1.93 + * Gets the value of the header property. 1.94 + * 1.95 + * @return 1.96 + * possible object is 1.97 + * {@link Boolean } 1.98 + * 1.99 + */ 1.100 + public boolean isHeader() { 1.101 + if (header == null) { 1.102 + return false; 1.103 + } else { 1.104 + return header; 1.105 + } 1.106 + } 1.107 + 1.108 + /** 1.109 + * Sets the value of the header property. 1.110 + * 1.111 + * @param value 1.112 + * allowed object is 1.113 + * {@link Boolean } 1.114 + * 1.115 + */ 1.116 + public void setHeader(Boolean value) { 1.117 + this.header = value; 1.118 + } 1.119 + 1.120 + /** 1.121 + * Gets the value of the mode property. 1.122 + * 1.123 + * @return 1.124 + * possible object is 1.125 + * {@link WebParamMode } 1.126 + * 1.127 + */ 1.128 + public WebParamMode getMode() { 1.129 + if (mode == null) { 1.130 + return WebParamMode.IN; 1.131 + } else { 1.132 + return mode; 1.133 + } 1.134 + } 1.135 + 1.136 + /** 1.137 + * Sets the value of the mode property. 1.138 + * 1.139 + * @param value 1.140 + * allowed object is 1.141 + * {@link WebParamMode } 1.142 + * 1.143 + */ 1.144 + public void setMode(WebParamMode value) { 1.145 + this.mode = value; 1.146 + } 1.147 + 1.148 + /** 1.149 + * Gets the value of the name property. 1.150 + * 1.151 + * @return 1.152 + * possible object is 1.153 + * {@link String } 1.154 + * 1.155 + */ 1.156 + public String getName() { 1.157 + if (name == null) { 1.158 + return ""; 1.159 + } else { 1.160 + return name; 1.161 + } 1.162 + } 1.163 + 1.164 + /** 1.165 + * Sets the value of the name property. 1.166 + * 1.167 + * @param value 1.168 + * allowed object is 1.169 + * {@link String } 1.170 + * 1.171 + */ 1.172 + public void setName(String value) { 1.173 + this.name = value; 1.174 + } 1.175 + 1.176 + /** 1.177 + * Gets the value of the partName property. 1.178 + * 1.179 + * @return 1.180 + * possible object is 1.181 + * {@link String } 1.182 + * 1.183 + */ 1.184 + public String getPartName() { 1.185 + if (partName == null) { 1.186 + return ""; 1.187 + } else { 1.188 + return partName; 1.189 + } 1.190 + } 1.191 + 1.192 + /** 1.193 + * Sets the value of the partName property. 1.194 + * 1.195 + * @param value 1.196 + * allowed object is 1.197 + * {@link String } 1.198 + * 1.199 + */ 1.200 + public void setPartName(String value) { 1.201 + this.partName = value; 1.202 + } 1.203 + 1.204 + /** 1.205 + * Gets the value of the targetNamespace property. 1.206 + * 1.207 + * @return 1.208 + * possible object is 1.209 + * {@link String } 1.210 + * 1.211 + */ 1.212 + public String getTargetNamespace() { 1.213 + if (targetNamespace == null) { 1.214 + return ""; 1.215 + } else { 1.216 + return targetNamespace; 1.217 + } 1.218 + } 1.219 + 1.220 + /** 1.221 + * Sets the value of the targetNamespace property. 1.222 + * 1.223 + * @param value 1.224 + * allowed object is 1.225 + * {@link String } 1.226 + * 1.227 + */ 1.228 + public void setTargetNamespace(String value) { 1.229 + this.targetNamespace = value; 1.230 + } 1.231 + 1.232 + @Override 1.233 + public String name() { 1.234 + return nullSafe(name); 1.235 + } 1.236 + 1.237 + @Override 1.238 + public String partName() { 1.239 + return nullSafe(partName); 1.240 + } 1.241 + 1.242 + @Override 1.243 + public String targetNamespace() { 1.244 + return nullSafe(targetNamespace); 1.245 + } 1.246 + 1.247 + @Override 1.248 + public Mode mode() { 1.249 + return nullSafe(mode, Mode.IN); 1.250 + } 1.251 + 1.252 + @Override 1.253 + public boolean header() { 1.254 + return nullSafe(header, false); 1.255 + } 1.256 + 1.257 + @Override 1.258 + public Class<? extends Annotation> annotationType() { 1.259 + return javax.jws.WebParam.class; 1.260 + } 1.261 +}