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

Tue, 23 Apr 2013 18:33:20 -0700

author
katleman
date
Tue, 23 Apr 2013 18:33:20 -0700
changeset 374
72e03566f0a6
parent 368
0989ad8c0860
child 637
9c07ef4934dd
permissions
-rw-r--r--

8012643: JDK8 b86 source with GPL header errors
Reviewed-by: dholmes, alanb

     1 /*
     2  * Copyright (c) 2012, 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  */
    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;
    34 import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
    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  * &lt;complexType>
    47  *   &lt;complexContent>
    48  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    49  *       &lt;attribute name="header" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
    50  *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    51  *       &lt;attribute name="part-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    52  *       &lt;attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    53  *     &lt;/restriction>
    54  *   &lt;/complexContent>
    55  * &lt;/complexType>
    56  * </pre>
    57  */
    58 @XmlAccessorType(XmlAccessType.FIELD)
    59 @XmlType(name = "")
    60 @XmlRootElement(name = "web-result")
    61 public class XmlWebResult implements javax.jws.WebResult {
    63     @XmlAttribute(name = "header")
    64     protected Boolean header;
    65     @XmlAttribute(name = "name")
    66     protected String name;
    67     @XmlAttribute(name = "part-name")
    68     protected String partName;
    69     @XmlAttribute(name = "target-namespace")
    70     protected String targetNamespace;
    72     /**
    73      * Gets the value of the header property.
    74      *
    75      * @return
    76      *     possible object is
    77      *     {@link Boolean }
    78      *
    79      */
    80     public boolean isHeader() {
    81         if (header == null) {
    82             return false;
    83         } else {
    84             return header;
    85         }
    86     }
    88     /**
    89      * Sets the value of the header property.
    90      *
    91      * @param value
    92      *     allowed object is
    93      *     {@link Boolean }
    94      *
    95      */
    96     public void setHeader(Boolean value) {
    97         this.header = value;
    98     }
   100     /**
   101      * Gets the value of the name property.
   102      *
   103      * @return
   104      *     possible object is
   105      *     {@link String }
   106      *
   107      */
   108     public String getName() {
   109         if (name == null) {
   110             return "";
   111         } else {
   112             return name;
   113         }
   114     }
   116     /**
   117      * Sets the value of the name property.
   118      *
   119      * @param value
   120      *     allowed object is
   121      *     {@link String }
   122      *
   123      */
   124     public void setName(String value) {
   125         this.name = value;
   126     }
   128     /**
   129      * Gets the value of the partName property.
   130      *
   131      * @return
   132      *     possible object is
   133      *     {@link String }
   134      *
   135      */
   136     public String getPartName() {
   137         if (partName == null) {
   138             return "";
   139         } else {
   140             return partName;
   141         }
   142     }
   144     /**
   145      * Sets the value of the partName property.
   146      *
   147      * @param value
   148      *     allowed object is
   149      *     {@link String }
   150      *
   151      */
   152     public void setPartName(String value) {
   153         this.partName = value;
   154     }
   156     /**
   157      * Gets the value of the targetNamespace property.
   158      *
   159      * @return
   160      *     possible object is
   161      *     {@link String }
   162      *
   163      */
   164     public String getTargetNamespace() {
   165         if (targetNamespace == null) {
   166             return "";
   167         } else {
   168             return targetNamespace;
   169         }
   170     }
   172     /**
   173      * Sets the value of the targetNamespace property.
   174      *
   175      * @param value
   176      *     allowed object is
   177      *     {@link String }
   178      *
   179      */
   180     public void setTargetNamespace(String value) {
   181         this.targetNamespace = value;
   182     }
   184     @Override
   185     public String name() {
   186         return nullSafe(name);
   187     }
   189     @Override
   190     public String partName() {
   191         return nullSafe(partName);
   192     }
   194     @Override
   195     public String targetNamespace() {
   196         return nullSafe(targetNamespace);
   197     }
   199     @Override
   200     public boolean header() {
   201         return nullSafe(header, false);
   202     }
   204     @Override
   205     public Class<? extends Annotation> annotationType() {
   206         return javax.jws.WebResult.class;
   207     }
   208 }

mercurial