src/share/jaxws_classes/com/oracle/xmlns/internal/webservices/jaxws_databinding/XmlWebService.java

changeset 368
0989ad8c0860
child 374
72e03566f0a6
     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/XmlWebService.java	Tue Apr 09 14:51:13 2013 +0100
     1.3 @@ -0,0 +1,296 @@
     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 + * &lt;complexType>
    1.64 + *   &lt;complexContent>
    1.65 + *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    1.66 + *       &lt;attribute name="endpoint-interface" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    1.67 + *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    1.68 + *       &lt;attribute name="port-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    1.69 + *       &lt;attribute name="service-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    1.70 + *       &lt;attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    1.71 + *       &lt;attribute name="wsdl-location" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    1.72 + *     &lt;/restriction>
    1.73 + *   &lt;/complexContent>
    1.74 + * &lt;/complexType>
    1.75 + * </pre>
    1.76 + *
    1.77 + *
    1.78 + */
    1.79 +@XmlAccessorType(XmlAccessType.FIELD)
    1.80 +@XmlType(name = "")
    1.81 +@XmlRootElement(name = "web-service")
    1.82 +public class XmlWebService implements javax.jws.WebService {
    1.83 +
    1.84 +    @XmlAttribute(name = "endpoint-interface")
    1.85 +    protected String endpointInterface;
    1.86 +    @XmlAttribute(name = "name")
    1.87 +    protected String name;
    1.88 +    @XmlAttribute(name = "port-name")
    1.89 +    protected String portName;
    1.90 +    @XmlAttribute(name = "service-name")
    1.91 +    protected String serviceName;
    1.92 +    @XmlAttribute(name = "target-namespace")
    1.93 +    protected String targetNamespace;
    1.94 +    @XmlAttribute(name = "wsdl-location")
    1.95 +    protected String wsdlLocation;
    1.96 +
    1.97 +    /**
    1.98 +     * Gets the value of the endpointInterface property.
    1.99 +     *
   1.100 +     * @return
   1.101 +     *     possible object is
   1.102 +     *     {@link String }
   1.103 +     *
   1.104 +     */
   1.105 +    public String getEndpointInterface() {
   1.106 +        if (endpointInterface == null) {
   1.107 +            return "";
   1.108 +        } else {
   1.109 +            return endpointInterface;
   1.110 +        }
   1.111 +    }
   1.112 +
   1.113 +    /**
   1.114 +     * Sets the value of the endpointInterface property.
   1.115 +     *
   1.116 +     * @param value
   1.117 +     *     allowed object is
   1.118 +     *     {@link String }
   1.119 +     *
   1.120 +     */
   1.121 +    public void setEndpointInterface(String value) {
   1.122 +        this.endpointInterface = value;
   1.123 +    }
   1.124 +
   1.125 +    /**
   1.126 +     * Gets the value of the name property.
   1.127 +     *
   1.128 +     * @return
   1.129 +     *     possible object is
   1.130 +     *     {@link String }
   1.131 +     *
   1.132 +     */
   1.133 +    public String getName() {
   1.134 +        if (name == null) {
   1.135 +            return "";
   1.136 +        } else {
   1.137 +            return name;
   1.138 +        }
   1.139 +    }
   1.140 +
   1.141 +    /**
   1.142 +     * Sets the value of the name property.
   1.143 +     *
   1.144 +     * @param value
   1.145 +     *     allowed object is
   1.146 +     *     {@link String }
   1.147 +     *
   1.148 +     */
   1.149 +    public void setName(String value) {
   1.150 +        this.name = value;
   1.151 +    }
   1.152 +
   1.153 +    /**
   1.154 +     * Gets the value of the portName property.
   1.155 +     *
   1.156 +     * @return
   1.157 +     *     possible object is
   1.158 +     *     {@link String }
   1.159 +     *
   1.160 +     */
   1.161 +    public String getPortName() {
   1.162 +        if (portName == null) {
   1.163 +            return "";
   1.164 +        } else {
   1.165 +            return portName;
   1.166 +        }
   1.167 +    }
   1.168 +
   1.169 +    /**
   1.170 +     * Sets the value of the portName property.
   1.171 +     *
   1.172 +     * @param value
   1.173 +     *     allowed object is
   1.174 +     *     {@link String }
   1.175 +     *
   1.176 +     */
   1.177 +    public void setPortName(String value) {
   1.178 +        this.portName = value;
   1.179 +    }
   1.180 +
   1.181 +    /**
   1.182 +     * Gets the value of the serviceName property.
   1.183 +     *
   1.184 +     * @return
   1.185 +     *     possible object is
   1.186 +     *     {@link String }
   1.187 +     *
   1.188 +     */
   1.189 +    public String getServiceName() {
   1.190 +        if (serviceName == null) {
   1.191 +            return "";
   1.192 +        } else {
   1.193 +            return serviceName;
   1.194 +        }
   1.195 +    }
   1.196 +
   1.197 +    /**
   1.198 +     * Sets the value of the serviceName property.
   1.199 +     *
   1.200 +     * @param value
   1.201 +     *     allowed object is
   1.202 +     *     {@link String }
   1.203 +     *
   1.204 +     */
   1.205 +    public void setServiceName(String value) {
   1.206 +        this.serviceName = value;
   1.207 +    }
   1.208 +
   1.209 +    /**
   1.210 +     * Gets the value of the targetNamespace property.
   1.211 +     *
   1.212 +     * @return
   1.213 +     *     possible object is
   1.214 +     *     {@link String }
   1.215 +     *
   1.216 +     */
   1.217 +    public String getTargetNamespace() {
   1.218 +        if (targetNamespace == null) {
   1.219 +            return "";
   1.220 +        } else {
   1.221 +            return targetNamespace;
   1.222 +        }
   1.223 +    }
   1.224 +
   1.225 +    /**
   1.226 +     * Sets the value of the targetNamespace property.
   1.227 +     *
   1.228 +     * @param value
   1.229 +     *     allowed object is
   1.230 +     *     {@link String }
   1.231 +     *
   1.232 +     */
   1.233 +    public void setTargetNamespace(String value) {
   1.234 +        this.targetNamespace = value;
   1.235 +    }
   1.236 +
   1.237 +    /**
   1.238 +     * Gets the value of the wsdlLocation property.
   1.239 +     *
   1.240 +     * @return
   1.241 +     *     possible object is
   1.242 +     *     {@link String }
   1.243 +     *
   1.244 +     */
   1.245 +    public String getWsdlLocation() {
   1.246 +        if (wsdlLocation == null) {
   1.247 +            return "";
   1.248 +        } else {
   1.249 +            return wsdlLocation;
   1.250 +        }
   1.251 +    }
   1.252 +
   1.253 +    /**
   1.254 +     * Sets the value of the wsdlLocation property.
   1.255 +     *
   1.256 +     * @param value
   1.257 +     *     allowed object is
   1.258 +     *     {@link String }
   1.259 +     *
   1.260 +     */
   1.261 +    public void setWsdlLocation(String value) {
   1.262 +        this.wsdlLocation = value;
   1.263 +    }
   1.264 +
   1.265 +    @Override
   1.266 +    public String name() {
   1.267 +        return nullSafe(name);
   1.268 +    }
   1.269 +
   1.270 +    @Override
   1.271 +    public String targetNamespace() {
   1.272 +        return nullSafe(targetNamespace);
   1.273 +    }
   1.274 +
   1.275 +    @Override
   1.276 +    public String serviceName() {
   1.277 +        return nullSafe(serviceName);
   1.278 +    }
   1.279 +
   1.280 +    @Override
   1.281 +    public String portName() {
   1.282 +        return nullSafe(portName);
   1.283 +    }
   1.284 +
   1.285 +    @Override
   1.286 +    public String wsdlLocation() {
   1.287 +        return nullSafe(wsdlLocation);
   1.288 +    }
   1.289 +
   1.290 +    @Override
   1.291 +    public String endpointInterface() {
   1.292 +        return nullSafe(endpointInterface);
   1.293 +    }
   1.294 +
   1.295 +    @Override
   1.296 +    public Class<? extends Annotation> annotationType() {
   1.297 +        return javax.jws.WebService.class;
   1.298 +    }
   1.299 +}

mercurial