1 /* 2 * Copyright (c) 2012, 2013, 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="targetNamespace" type="{http://www.w3.org/2001/XMLSchema}string" /> 50 * <attribute name="serviceName" type="{http://www.w3.org/2001/XMLSchema}string" /> 51 * <attribute name="portName" type="{http://www.w3.org/2001/XMLSchema}string" /> 52 * <attribute name="wsdlLocation" type="{http://www.w3.org/2001/XMLSchema}string" /> 53 * </restriction> 54 * </complexContent> 55 * </complexType> 56 * </pre> 57 */ 58 @XmlAccessorType(XmlAccessType.FIELD) 59 @XmlType(name = "") 60 @XmlRootElement(name = "web-service-provider") 61 public class XmlWebServiceProvider implements javax.xml.ws.WebServiceProvider { 62 63 @XmlAttribute(name = "targetNamespace") 64 protected String targetNamespace; 65 @XmlAttribute(name = "serviceName") 66 protected String serviceName; 67 @XmlAttribute(name = "portName") 68 protected String portName; 69 @XmlAttribute(name = "wsdlLocation") 70 protected String wsdlLocation; 71 72 /** 73 * Gets the value of the targetNamespace property. 74 * 75 * @return 76 * possible object is 77 * {@link String } 78 * 79 */ 80 public String getTargetNamespace() { 81 return targetNamespace; 82 } 83 84 /** 85 * Sets the value of the targetNamespace property. 86 * 87 * @param value 88 * allowed object is 89 * {@link String } 90 * 91 */ 92 public void setTargetNamespace(String value) { 93 this.targetNamespace = value; 94 } 95 96 /** 97 * Gets the value of the serviceName property. 98 * 99 * @return 100 * possible object is 101 * {@link String } 102 * 103 */ 104 public String getServiceName() { 105 return serviceName; 106 } 107 108 /** 109 * Sets the value of the serviceName property. 110 * 111 * @param value 112 * allowed object is 113 * {@link String } 114 * 115 */ 116 public void setServiceName(String value) { 117 this.serviceName = value; 118 } 119 120 /** 121 * Gets the value of the portName property. 122 * 123 * @return 124 * possible object is 125 * {@link String } 126 * 127 */ 128 public String getPortName() { 129 return portName; 130 } 131 132 /** 133 * Sets the value of the portName property. 134 * 135 * @param value 136 * allowed object is 137 * {@link String } 138 * 139 */ 140 public void setPortName(String value) { 141 this.portName = value; 142 } 143 144 /** 145 * Gets the value of the wsdlLocation property. 146 * 147 * @return 148 * possible object is 149 * {@link String } 150 * 151 */ 152 public String getWsdlLocation() { 153 return wsdlLocation; 154 } 155 156 /** 157 * Sets the value of the wsdlLocation property. 158 * 159 * @param value 160 * allowed object is 161 * {@link String } 162 * 163 */ 164 public void setWsdlLocation(String value) { 165 this.wsdlLocation = value; 166 } 167 168 @Override 169 public String wsdlLocation() { 170 return nullSafe(wsdlLocation); 171 } 172 173 @Override 174 public String serviceName() { 175 return nullSafe(serviceName); 176 } 177 178 @Override 179 public String targetNamespace() { 180 return nullSafe(targetNamespace); 181 } 182 183 @Override 184 public String portName() { 185 return nullSafe(portName); 186 } 187 188 @Override 189 public Class<? extends Annotation> annotationType() { 190 return javax.xml.ws.WebServiceProvider.class; 191 } 192 }