src/share/jaxws_classes/com/oracle/xmlns/internal/webservices/jaxws_databinding/XmlWebParam.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="header" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
    64  *       &lt;attribute name="mode" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}web-param-mode" default="IN" />
    65  *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    66  *       &lt;attribute name="part-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;/restriction>
    69  *   &lt;/complexContent>
    70  * &lt;/complexType>
    71  * </pre>
    72  */
    73 @XmlAccessorType(XmlAccessType.FIELD)
    74 @XmlType(name = "")
    75 @XmlRootElement(name = "web-param")
    76 public class XmlWebParam implements javax.jws.WebParam {
    78     @XmlAttribute(name = "header")
    79     protected Boolean header;
    80     @XmlAttribute(name = "mode")
    81     protected WebParamMode mode;
    82     @XmlAttribute(name = "name")
    83     protected String name;
    84     @XmlAttribute(name = "part-name")
    85     protected String partName;
    86     @XmlAttribute(name = "target-namespace")
    87     protected String targetNamespace;
    89     /**
    90      * Gets the value of the header property.
    91      *
    92      * @return
    93      *     possible object is
    94      *     {@link Boolean }
    95      *
    96      */
    97     public boolean isHeader() {
    98         if (header == null) {
    99             return false;
   100         } else {
   101             return header;
   102         }
   103     }
   105     /**
   106      * Sets the value of the header property.
   107      *
   108      * @param value
   109      *     allowed object is
   110      *     {@link Boolean }
   111      *
   112      */
   113     public void setHeader(Boolean value) {
   114         this.header = value;
   115     }
   117     /**
   118      * Gets the value of the mode property.
   119      *
   120      * @return
   121      *     possible object is
   122      *     {@link WebParamMode }
   123      *
   124      */
   125     public WebParamMode getMode() {
   126         if (mode == null) {
   127             return WebParamMode.IN;
   128         } else {
   129             return mode;
   130         }
   131     }
   133     /**
   134      * Sets the value of the mode property.
   135      *
   136      * @param value
   137      *     allowed object is
   138      *     {@link WebParamMode }
   139      *
   140      */
   141     public void setMode(WebParamMode value) {
   142         this.mode = value;
   143     }
   145     /**
   146      * Gets the value of the name property.
   147      *
   148      * @return
   149      *     possible object is
   150      *     {@link String }
   151      *
   152      */
   153     public String getName() {
   154         if (name == null) {
   155             return "";
   156         } else {
   157             return name;
   158         }
   159     }
   161     /**
   162      * Sets the value of the name property.
   163      *
   164      * @param value
   165      *     allowed object is
   166      *     {@link String }
   167      *
   168      */
   169     public void setName(String value) {
   170         this.name = value;
   171     }
   173     /**
   174      * Gets the value of the partName property.
   175      *
   176      * @return
   177      *     possible object is
   178      *     {@link String }
   179      *
   180      */
   181     public String getPartName() {
   182         if (partName == null) {
   183             return "";
   184         } else {
   185             return partName;
   186         }
   187     }
   189     /**
   190      * Sets the value of the partName property.
   191      *
   192      * @param value
   193      *     allowed object is
   194      *     {@link String }
   195      *
   196      */
   197     public void setPartName(String value) {
   198         this.partName = value;
   199     }
   201     /**
   202      * Gets the value of the targetNamespace property.
   203      *
   204      * @return
   205      *     possible object is
   206      *     {@link String }
   207      *
   208      */
   209     public String getTargetNamespace() {
   210         if (targetNamespace == null) {
   211             return "";
   212         } else {
   213             return targetNamespace;
   214         }
   215     }
   217     /**
   218      * Sets the value of the targetNamespace property.
   219      *
   220      * @param value
   221      *     allowed object is
   222      *     {@link String }
   223      *
   224      */
   225     public void setTargetNamespace(String value) {
   226         this.targetNamespace = value;
   227     }
   229     @Override
   230     public String name() {
   231         return nullSafe(name);
   232     }
   234     @Override
   235     public String partName() {
   236         return nullSafe(partName);
   237     }
   239     @Override
   240     public String targetNamespace() {
   241         return nullSafe(targetNamespace);
   242     }
   244     @Override
   245     public Mode mode() {
   246         return nullSafe(mode, Mode.IN);
   247     }
   249     @Override
   250     public boolean header() {
   251         return nullSafe(header, false);
   252     }
   254     @Override
   255     public Class<? extends Annotation> annotationType() {
   256         return javax.jws.WebParam.class;
   257     }
   258 }

mercurial