src/share/jaxws_classes/com/oracle/xmlns/internal/webservices/jaxws_databinding/XmlRequestWrapper.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  */
    41 package com.oracle.xmlns.internal.webservices.jaxws_databinding;
    42 import javax.xml.bind.annotation.XmlAccessType;
    43 import javax.xml.bind.annotation.XmlAccessorType;
    44 import javax.xml.bind.annotation.XmlAttribute;
    45 import javax.xml.bind.annotation.XmlRootElement;
    46 import javax.xml.bind.annotation.XmlType;
    47 import java.lang.annotation.Annotation;
    49 import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
    52 /**
    53  * This file was generated by JAXB-RI v2.2.6 and afterwards modified
    54  * to implement appropriate Annotation
    55  *
    56  * <p>Java class for anonymous complex type.
    57  *
    58  * <p>The following schema fragment specifies the expected content contained within this class.
    59  *
    60  * <pre>
    61  * &lt;complexType>
    62  *   &lt;complexContent>
    63  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    64  *       &lt;attribute name="local-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    65  *       &lt;attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    66  *       &lt;attribute name="class-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    67  *       &lt;attribute name="part-name" 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 = "request-wrapper")
    76 public class XmlRequestWrapper implements javax.xml.ws.RequestWrapper {
    78     @XmlAttribute(name = "local-name")
    79     protected String localName;
    80     @XmlAttribute(name = "target-namespace")
    81     protected String targetNamespace;
    82     @XmlAttribute(name = "class-name")
    83     protected String className;
    84     @XmlAttribute(name = "part-name")
    85     protected String partName;
    87     /**
    88      * Gets the value of the localName property.
    89      *
    90      * @return
    91      *     possible object is
    92      *     {@link String }
    93      *
    94      */
    95     public String getLocalName() {
    96         if (localName == null) {
    97             return "";
    98         } else {
    99             return localName;
   100         }
   101     }
   103     /**
   104      * Sets the value of the localName property.
   105      *
   106      * @param value
   107      *     allowed object is
   108      *     {@link String }
   109      *
   110      */
   111     public void setLocalName(String value) {
   112         this.localName = value;
   113     }
   115     /**
   116      * Gets the value of the targetNamespace property.
   117      *
   118      * @return
   119      *     possible object is
   120      *     {@link String }
   121      *
   122      */
   123     public String getTargetNamespace() {
   124         if (targetNamespace == null) {
   125             return "";
   126         } else {
   127             return targetNamespace;
   128         }
   129     }
   131     /**
   132      * Sets the value of the targetNamespace property.
   133      *
   134      * @param value
   135      *     allowed object is
   136      *     {@link String }
   137      *
   138      */
   139     public void setTargetNamespace(String value) {
   140         this.targetNamespace = value;
   141     }
   143     /**
   144      * Gets the value of the className property.
   145      *
   146      * @return
   147      *     possible object is
   148      *     {@link String }
   149      *
   150      */
   151     public String getClassName() {
   152         if (className == null) {
   153             return "";
   154         } else {
   155             return className;
   156         }
   157     }
   159     /**
   160      * Sets the value of the className property.
   161      *
   162      * @param value
   163      *     allowed object is
   164      *     {@link String }
   165      *
   166      */
   167     public void setClassName(String value) {
   168         this.className = value;
   169     }
   171     public String getPartName() {
   172         return partName;
   173     }
   175     public void setPartName(String partName) {
   176         this.partName = partName;
   177     }
   179     @Override
   180     public String localName() {
   181         return nullSafe(localName);
   182     }
   184     @Override
   185     public String targetNamespace() {
   186         return nullSafe(targetNamespace);
   187     }
   189     @Override
   190     public String className() {
   191         return nullSafe(className);
   192     }
   194     @Override
   195     public String partName() {
   196         return nullSafe(partName);
   197     }
   199     @Override
   200     public Class<? extends Annotation> annotationType() {
   201         return javax.xml.ws.RequestWrapper.class;
   202     }
   203 }

mercurial