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