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

Thu, 31 Aug 2017 15:18:52 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:18:52 +0800
changeset 637
9c07ef4934dd
parent 374
72e03566f0a6
parent 0
373ffda63c9a
permissions
-rw-r--r--

merge

     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;
    28 import javax.xml.bind.annotation.XmlAccessType;
    29 import javax.xml.bind.annotation.XmlAccessorType;
    30 import javax.xml.bind.annotation.XmlAttribute;
    31 import javax.xml.bind.annotation.XmlElement;
    32 import javax.xml.bind.annotation.XmlRootElement;
    33 import javax.xml.bind.annotation.XmlType;
    34 import java.lang.annotation.Annotation;
    35 import java.util.ArrayList;
    36 import java.util.List;
    38 import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
    41 /**
    42  * This file was generated by JAXB-RI v2.2.6 and afterwards modified
    43  * to implement appropriate Annotation
    44  *
    45  * <p>Java class for anonymous complex type.
    46  *
    47  * <p>The following schema fragment specifies the expected content contained within this class.
    48  *
    49  * <pre>
    50  * &lt;complexType>
    51  *   &lt;complexContent>
    52  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    53  *       &lt;sequence>
    54  *         &lt;element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}fault-action" maxOccurs="unbounded" minOccurs="0"/>
    55  *       &lt;/sequence>
    56  *       &lt;attribute name="input" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    57  *       &lt;attribute name="output" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
    58  *     &lt;/restriction>
    59  *   &lt;/complexContent>
    60  * &lt;/complexType>
    61  * </pre>
    62  */
    63 @XmlAccessorType(XmlAccessType.FIELD)
    64 @XmlType(name = "", propOrder = {
    65     "faultAction"
    66 })
    67 @XmlRootElement(name = "action")
    68 public class XmlAction implements javax.xml.ws.Action {
    70     @XmlElement(name = "fault-action")
    71     protected List<XmlFaultAction> faultAction;
    72     @XmlAttribute(name = "input")
    73     protected String input;
    74     @XmlAttribute(name = "output")
    75     protected String output;
    77     /**
    78      * Gets the value of the faultAction property.
    79      *
    80      * <p>
    81      * This accessor method returns a reference to the live list,
    82      * not a snapshot. Therefore any modification you make to the
    83      * returned list will be present inside the JAXB object.
    84      * This is why there is not a <CODE>set</CODE> method for the faultAction property.
    85      *
    86      * <p>
    87      * For example, to add a new item, do as follows:
    88      * <pre>
    89      *    getFaultAction().add(newItem);
    90      * </pre>
    91      *
    92      *
    93      * <p>
    94      * Objects of the following type(s) are allowed in the list
    95      * {@link XmlFaultAction }
    96      *
    97      *
    98      */
    99     public List<XmlFaultAction> getFaultAction() {
   100         if (faultAction == null) {
   101             faultAction = new ArrayList<XmlFaultAction>();
   102         }
   103         return this.faultAction;
   104     }
   106     /**
   107      * Gets the value of the input property.
   108      *
   109      * @return
   110      *     possible object is
   111      *     {@link String }
   112      *
   113      */
   114     public String getInput() {
   115         return nullSafe(input);
   116     }
   118     /**
   119      * Sets the value of the input property.
   120      *
   121      * @param value
   122      *     allowed object is
   123      *     {@link String }
   124      *
   125      */
   126     public void setInput(String value) {
   127         this.input = value;
   128     }
   130     /**
   131      * Gets the value of the output property.
   132      *
   133      * @return
   134      *     possible object is
   135      *     {@link String }
   136      *
   137      */
   138     public String getOutput() {
   139         return nullSafe(output);
   140     }
   142     /**
   143      * Sets the value of the output property.
   144      *
   145      * @param value
   146      *     allowed object is
   147      *     {@link String }
   148      *
   149      */
   150     public void setOutput(String value) {
   151         this.output = value;
   152     }
   154     @Override
   155     public String input() {
   156         return nullSafe(input);
   157     }
   159     @Override
   160     public String output() {
   161         return nullSafe(output);
   162     }
   164     @Override
   165     public javax.xml.ws.FaultAction[] fault() {
   166         return new javax.xml.ws.FaultAction[0];
   167     }
   169     @Override
   170     public Class<? extends Annotation> annotationType() {
   171         return javax.xml.ws.Action.class;
   172     }
   173 }

mercurial