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 */ 25 26 package com.oracle.xmlns.internal.webservices.jaxws_databinding; 27 import javax.xml.bind.annotation.XmlAccessType; 28 import javax.xml.bind.annotation.XmlAccessorType; 29 import javax.xml.bind.annotation.XmlAttribute; 30 import javax.xml.bind.annotation.XmlRootElement; 31 import javax.xml.bind.annotation.XmlType; 32 import java.lang.annotation.Annotation; 33 34 import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe; 35 36 37 /** 38 * This file was generated by JAXB-RI v2.2.6 and afterwards modified 39 * to implement appropriate Annotation 40 * 41 * <p>Java class for anonymous complex type. 42 * 43 * <p>The following schema fragment specifies the expected content contained within this class. 44 * 45 * <pre> 46 * <complexType> 47 * <complexContent> 48 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 49 * <attribute name="header" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> 50 * <attribute name="mode" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}web-param-mode" default="IN" /> 51 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> 52 * <attribute name="part-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> 53 * <attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> 54 * </restriction> 55 * </complexContent> 56 * </complexType> 57 * </pre> 58 */ 59 @XmlAccessorType(XmlAccessType.FIELD) 60 @XmlType(name = "") 61 @XmlRootElement(name = "web-param") 62 public class XmlWebParam implements javax.jws.WebParam { 63 64 @XmlAttribute(name = "header") 65 protected Boolean header; 66 @XmlAttribute(name = "mode") 67 protected WebParamMode mode; 68 @XmlAttribute(name = "name") 69 protected String name; 70 @XmlAttribute(name = "part-name") 71 protected String partName; 72 @XmlAttribute(name = "target-namespace") 73 protected String targetNamespace; 74 75 /** 76 * Gets the value of the header property. 77 * 78 * @return 79 * possible object is 80 * {@link Boolean } 81 * 82 */ 83 public boolean isHeader() { 84 if (header == null) { 85 return false; 86 } else { 87 return header; 88 } 89 } 90 91 /** 92 * Sets the value of the header property. 93 * 94 * @param value 95 * allowed object is 96 * {@link Boolean } 97 * 98 */ 99 public void setHeader(Boolean value) { 100 this.header = value; 101 } 102 103 /** 104 * Gets the value of the mode property. 105 * 106 * @return 107 * possible object is 108 * {@link WebParamMode } 109 * 110 */ 111 public WebParamMode getMode() { 112 if (mode == null) { 113 return WebParamMode.IN; 114 } else { 115 return mode; 116 } 117 } 118 119 /** 120 * Sets the value of the mode property. 121 * 122 * @param value 123 * allowed object is 124 * {@link WebParamMode } 125 * 126 */ 127 public void setMode(WebParamMode value) { 128 this.mode = value; 129 } 130 131 /** 132 * Gets the value of the name property. 133 * 134 * @return 135 * possible object is 136 * {@link String } 137 * 138 */ 139 public String getName() { 140 if (name == null) { 141 return ""; 142 } else { 143 return name; 144 } 145 } 146 147 /** 148 * Sets the value of the name property. 149 * 150 * @param value 151 * allowed object is 152 * {@link String } 153 * 154 */ 155 public void setName(String value) { 156 this.name = value; 157 } 158 159 /** 160 * Gets the value of the partName property. 161 * 162 * @return 163 * possible object is 164 * {@link String } 165 * 166 */ 167 public String getPartName() { 168 if (partName == null) { 169 return ""; 170 } else { 171 return partName; 172 } 173 } 174 175 /** 176 * Sets the value of the partName property. 177 * 178 * @param value 179 * allowed object is 180 * {@link String } 181 * 182 */ 183 public void setPartName(String value) { 184 this.partName = value; 185 } 186 187 /** 188 * Gets the value of the targetNamespace property. 189 * 190 * @return 191 * possible object is 192 * {@link String } 193 * 194 */ 195 public String getTargetNamespace() { 196 if (targetNamespace == null) { 197 return ""; 198 } else { 199 return targetNamespace; 200 } 201 } 202 203 /** 204 * Sets the value of the targetNamespace property. 205 * 206 * @param value 207 * allowed object is 208 * {@link String } 209 * 210 */ 211 public void setTargetNamespace(String value) { 212 this.targetNamespace = value; 213 } 214 215 @Override 216 public String name() { 217 return nullSafe(name); 218 } 219 220 @Override 221 public String partName() { 222 return nullSafe(partName); 223 } 224 225 @Override 226 public String targetNamespace() { 227 return nullSafe(targetNamespace); 228 } 229 230 @Override 231 public Mode mode() { 232 return nullSafe(mode, Mode.IN); 233 } 234 235 @Override 236 public boolean header() { 237 return nullSafe(header, false); 238 } 239 240 @Override 241 public Class<? extends Annotation> annotationType() { 242 return javax.jws.WebParam.class; 243 } 244 }