Thu, 31 Aug 2017 15:18:52 +0800
merge
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 */
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;
34 import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
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="endpoint-interface" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
50 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
51 * <attribute name="port-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
52 * <attribute name="service-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 * <attribute name="wsdl-location" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
55 * </restriction>
56 * </complexContent>
57 * </complexType>
58 * </pre>
59 *
60 *
61 */
62 @XmlAccessorType(XmlAccessType.FIELD)
63 @XmlType(name = "")
64 @XmlRootElement(name = "web-service")
65 public class XmlWebService implements javax.jws.WebService {
67 @XmlAttribute(name = "endpoint-interface")
68 protected String endpointInterface;
69 @XmlAttribute(name = "name")
70 protected String name;
71 @XmlAttribute(name = "port-name")
72 protected String portName;
73 @XmlAttribute(name = "service-name")
74 protected String serviceName;
75 @XmlAttribute(name = "target-namespace")
76 protected String targetNamespace;
77 @XmlAttribute(name = "wsdl-location")
78 protected String wsdlLocation;
80 /**
81 * Gets the value of the endpointInterface property.
82 *
83 * @return
84 * possible object is
85 * {@link String }
86 *
87 */
88 public String getEndpointInterface() {
89 if (endpointInterface == null) {
90 return "";
91 } else {
92 return endpointInterface;
93 }
94 }
96 /**
97 * Sets the value of the endpointInterface property.
98 *
99 * @param value
100 * allowed object is
101 * {@link String }
102 *
103 */
104 public void setEndpointInterface(String value) {
105 this.endpointInterface = value;
106 }
108 /**
109 * Gets the value of the name property.
110 *
111 * @return
112 * possible object is
113 * {@link String }
114 *
115 */
116 public String getName() {
117 if (name == null) {
118 return "";
119 } else {
120 return name;
121 }
122 }
124 /**
125 * Sets the value of the name property.
126 *
127 * @param value
128 * allowed object is
129 * {@link String }
130 *
131 */
132 public void setName(String value) {
133 this.name = value;
134 }
136 /**
137 * Gets the value of the portName property.
138 *
139 * @return
140 * possible object is
141 * {@link String }
142 *
143 */
144 public String getPortName() {
145 if (portName == null) {
146 return "";
147 } else {
148 return portName;
149 }
150 }
152 /**
153 * Sets the value of the portName property.
154 *
155 * @param value
156 * allowed object is
157 * {@link String }
158 *
159 */
160 public void setPortName(String value) {
161 this.portName = value;
162 }
164 /**
165 * Gets the value of the serviceName property.
166 *
167 * @return
168 * possible object is
169 * {@link String }
170 *
171 */
172 public String getServiceName() {
173 if (serviceName == null) {
174 return "";
175 } else {
176 return serviceName;
177 }
178 }
180 /**
181 * Sets the value of the serviceName property.
182 *
183 * @param value
184 * allowed object is
185 * {@link String }
186 *
187 */
188 public void setServiceName(String value) {
189 this.serviceName = value;
190 }
192 /**
193 * Gets the value of the targetNamespace property.
194 *
195 * @return
196 * possible object is
197 * {@link String }
198 *
199 */
200 public String getTargetNamespace() {
201 if (targetNamespace == null) {
202 return "";
203 } else {
204 return targetNamespace;
205 }
206 }
208 /**
209 * Sets the value of the targetNamespace property.
210 *
211 * @param value
212 * allowed object is
213 * {@link String }
214 *
215 */
216 public void setTargetNamespace(String value) {
217 this.targetNamespace = value;
218 }
220 /**
221 * Gets the value of the wsdlLocation property.
222 *
223 * @return
224 * possible object is
225 * {@link String }
226 *
227 */
228 public String getWsdlLocation() {
229 if (wsdlLocation == null) {
230 return "";
231 } else {
232 return wsdlLocation;
233 }
234 }
236 /**
237 * Sets the value of the wsdlLocation property.
238 *
239 * @param value
240 * allowed object is
241 * {@link String }
242 *
243 */
244 public void setWsdlLocation(String value) {
245 this.wsdlLocation = value;
246 }
248 @Override
249 public String name() {
250 return nullSafe(name);
251 }
253 @Override
254 public String targetNamespace() {
255 return nullSafe(targetNamespace);
256 }
258 @Override
259 public String serviceName() {
260 return nullSafe(serviceName);
261 }
263 @Override
264 public String portName() {
265 return nullSafe(portName);
266 }
268 @Override
269 public String wsdlLocation() {
270 return nullSafe(wsdlLocation);
271 }
273 @Override
274 public String endpointInterface() {
275 return nullSafe(endpointInterface);
276 }
278 @Override
279 public Class<? extends Annotation> annotationType() {
280 return javax.jws.WebService.class;
281 }
282 }