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

Tue, 09 Apr 2013 14:51:13 +0100

author
alanb
date
Tue, 09 Apr 2013 14:51:13 +0100
changeset 368
0989ad8c0860
child 374
72e03566f0a6
permissions
-rw-r--r--

8010393: Update JAX-WS RI to 2.2.9-b12941
Reviewed-by: alanb, erikj
Contributed-by: miroslav.kos@oracle.com, martin.grebac@oracle.com

     1 /*
     2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     3  *
     4  * Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
     5  *
     6  * The contents of this file are subject to the terms of either the GNU
     7  * General Public License Version 2 only ("GPL") or the Common Development
     8  * and Distribution License("CDDL") (collectively, the "License").  You
     9  * may not use this file except in compliance with the License.  You can
    10  * obtain a copy of the License at
    11  * http://glassfish.java.net/public/CDDL+GPL_1_1.html
    12  * or packager/legal/LICENSE.txt.  See the License for the specific
    13  * language governing permissions and limitations under the License.
    14  *
    15  * When distributing the software, include this License Header Notice in each
    16  * file and include the License file at packager/legal/LICENSE.txt.
    17  *
    18  * GPL Classpath Exception:
    19  * Oracle designates this particular file as subject to the "Classpath"
    20  * exception as provided by Oracle in the GPL Version 2 section of the License
    21  * file that accompanied this code.
    22  *
    23  * Modifications:
    24  * If applicable, add the following below the License Header, with the fields
    25  * enclosed by brackets [] replaced by your own identifying information:
    26  * "Portions Copyright [year] [name of copyright owner]"
    27  *
    28  * Contributor(s):
    29  * If you wish your version of this file to be governed by only the CDDL or
    30  * only the GPL Version 2, indicate your decision by adding "[Contributor]
    31  * elects to include this software in this distribution under the [CDDL or GPL
    32  * Version 2] license."  If you don't indicate a single choice of license, a
    33  * recipient has the option to distribute your version of this file under
    34  * either the CDDL, the GPL Version 2 or to extend the choice of license to
    35  * its licensees as provided above.  However, if you add GPL Version 2 code
    36  * and therefore, elected the GPL Version 2 license, then the option applies
    37  * only if the new code is made subject to such option by the copyright
    38  * holder.
    39  */
    40 package com.oracle.xmlns.internal.webservices.jaxws_databinding;
    41 import javax.xml.bind.annotation.XmlAccessType;
    42 import javax.xml.bind.annotation.XmlAccessorType;
    43 import javax.xml.bind.annotation.XmlAttribute;
    44 import javax.xml.bind.annotation.XmlRootElement;
    45 import javax.xml.bind.annotation.XmlType;
    46 import java.lang.annotation.Annotation;
    48 import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
    51 /**
    52  * This file was generated by JAXB-RI v2.2.6 and afterwards modified
    53  * to implement appropriate Annotation
    54  *
    55  * <p>Java class for anonymous complex type.
    56  *
    57  * <p>The following schema fragment specifies the expected content contained within this class.
    58  *
    59  * <pre>
    60  * &lt;complexType>
    61  *   &lt;complexContent>
    62  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    63  *       &lt;attribute name="endpoint-interface" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    64  *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    65  *       &lt;attribute name="port-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    66  *       &lt;attribute name="service-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    67  *       &lt;attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    68  *       &lt;attribute name="wsdl-location" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    69  *     &lt;/restriction>
    70  *   &lt;/complexContent>
    71  * &lt;/complexType>
    72  * </pre>
    73  *
    74  *
    75  */
    76 @XmlAccessorType(XmlAccessType.FIELD)
    77 @XmlType(name = "")
    78 @XmlRootElement(name = "web-service")
    79 public class XmlWebService implements javax.jws.WebService {
    81     @XmlAttribute(name = "endpoint-interface")
    82     protected String endpointInterface;
    83     @XmlAttribute(name = "name")
    84     protected String name;
    85     @XmlAttribute(name = "port-name")
    86     protected String portName;
    87     @XmlAttribute(name = "service-name")
    88     protected String serviceName;
    89     @XmlAttribute(name = "target-namespace")
    90     protected String targetNamespace;
    91     @XmlAttribute(name = "wsdl-location")
    92     protected String wsdlLocation;
    94     /**
    95      * Gets the value of the endpointInterface property.
    96      *
    97      * @return
    98      *     possible object is
    99      *     {@link String }
   100      *
   101      */
   102     public String getEndpointInterface() {
   103         if (endpointInterface == null) {
   104             return "";
   105         } else {
   106             return endpointInterface;
   107         }
   108     }
   110     /**
   111      * Sets the value of the endpointInterface property.
   112      *
   113      * @param value
   114      *     allowed object is
   115      *     {@link String }
   116      *
   117      */
   118     public void setEndpointInterface(String value) {
   119         this.endpointInterface = value;
   120     }
   122     /**
   123      * Gets the value of the name property.
   124      *
   125      * @return
   126      *     possible object is
   127      *     {@link String }
   128      *
   129      */
   130     public String getName() {
   131         if (name == null) {
   132             return "";
   133         } else {
   134             return name;
   135         }
   136     }
   138     /**
   139      * Sets the value of the name property.
   140      *
   141      * @param value
   142      *     allowed object is
   143      *     {@link String }
   144      *
   145      */
   146     public void setName(String value) {
   147         this.name = value;
   148     }
   150     /**
   151      * Gets the value of the portName property.
   152      *
   153      * @return
   154      *     possible object is
   155      *     {@link String }
   156      *
   157      */
   158     public String getPortName() {
   159         if (portName == null) {
   160             return "";
   161         } else {
   162             return portName;
   163         }
   164     }
   166     /**
   167      * Sets the value of the portName property.
   168      *
   169      * @param value
   170      *     allowed object is
   171      *     {@link String }
   172      *
   173      */
   174     public void setPortName(String value) {
   175         this.portName = value;
   176     }
   178     /**
   179      * Gets the value of the serviceName property.
   180      *
   181      * @return
   182      *     possible object is
   183      *     {@link String }
   184      *
   185      */
   186     public String getServiceName() {
   187         if (serviceName == null) {
   188             return "";
   189         } else {
   190             return serviceName;
   191         }
   192     }
   194     /**
   195      * Sets the value of the serviceName property.
   196      *
   197      * @param value
   198      *     allowed object is
   199      *     {@link String }
   200      *
   201      */
   202     public void setServiceName(String value) {
   203         this.serviceName = value;
   204     }
   206     /**
   207      * Gets the value of the targetNamespace property.
   208      *
   209      * @return
   210      *     possible object is
   211      *     {@link String }
   212      *
   213      */
   214     public String getTargetNamespace() {
   215         if (targetNamespace == null) {
   216             return "";
   217         } else {
   218             return targetNamespace;
   219         }
   220     }
   222     /**
   223      * Sets the value of the targetNamespace property.
   224      *
   225      * @param value
   226      *     allowed object is
   227      *     {@link String }
   228      *
   229      */
   230     public void setTargetNamespace(String value) {
   231         this.targetNamespace = value;
   232     }
   234     /**
   235      * Gets the value of the wsdlLocation property.
   236      *
   237      * @return
   238      *     possible object is
   239      *     {@link String }
   240      *
   241      */
   242     public String getWsdlLocation() {
   243         if (wsdlLocation == null) {
   244             return "";
   245         } else {
   246             return wsdlLocation;
   247         }
   248     }
   250     /**
   251      * Sets the value of the wsdlLocation property.
   252      *
   253      * @param value
   254      *     allowed object is
   255      *     {@link String }
   256      *
   257      */
   258     public void setWsdlLocation(String value) {
   259         this.wsdlLocation = value;
   260     }
   262     @Override
   263     public String name() {
   264         return nullSafe(name);
   265     }
   267     @Override
   268     public String targetNamespace() {
   269         return nullSafe(targetNamespace);
   270     }
   272     @Override
   273     public String serviceName() {
   274         return nullSafe(serviceName);
   275     }
   277     @Override
   278     public String portName() {
   279         return nullSafe(portName);
   280     }
   282     @Override
   283     public String wsdlLocation() {
   284         return nullSafe(wsdlLocation);
   285     }
   287     @Override
   288     public String endpointInterface() {
   289         return nullSafe(endpointInterface);
   290     }
   292     @Override
   293     public Class<? extends Annotation> annotationType() {
   294         return javax.jws.WebService.class;
   295     }
   296 }

mercurial