1/*
2 * Copyright (c) 2012, 2013, 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 */
25
26package com.oracle.xmlns.internal.webservices.jaxws_databinding;
27import javax.xml.bind.annotation.XmlAccessType;
28import javax.xml.bind.annotation.XmlAccessorType;
29import javax.xml.bind.annotation.XmlAttribute;
30import javax.xml.bind.annotation.XmlRootElement;
31import javax.xml.bind.annotation.XmlType;
32import java.lang.annotation.Annotation;
33
34import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
35
36
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="action" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
50 *       &lt;attribute name="exclude" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
51 *       &lt;attribute name="operation-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
52 *     &lt;/restriction>
53 *   &lt;/complexContent>
54 * &lt;/complexType>
55 * </pre>
56 */
57@XmlAccessorType(XmlAccessType.FIELD)
58@XmlType(name = "")
59@XmlRootElement(name = "web-method")
60public class XmlWebMethod implements javax.jws.WebMethod {
61
62    @XmlAttribute(name = "action")
63    protected String action;
64    @XmlAttribute(name = "exclude")
65    protected Boolean exclude;
66    @XmlAttribute(name = "operation-name")
67    protected String operationName;
68
69    /**
70     * Gets the value of the action property.
71     *
72     * @return
73     *     possible object is
74     *     {@link String }
75     *
76     */
77    public String getAction() {
78        if (action == null) {
79            return "";
80        } else {
81            return action;
82        }
83    }
84
85    /**
86     * Sets the value of the action property.
87     *
88     * @param value
89     *     allowed object is
90     *     {@link String }
91     *
92     */
93    public void setAction(String value) {
94        this.action = value;
95    }
96
97    /**
98     * Gets the value of the exclude property.
99     *
100     * @return
101     *     possible object is
102     *     {@link Boolean }
103     *
104     */
105    public boolean isExclude() {
106        if (exclude == null) {
107            return false;
108        } else {
109            return exclude;
110        }
111    }
112
113    /**
114     * Sets the value of the exclude property.
115     *
116     * @param value
117     *     allowed object is
118     *     {@link Boolean }
119     *
120     */
121    public void setExclude(Boolean value) {
122        this.exclude = value;
123    }
124
125    /**
126     * Gets the value of the operationName property.
127     *
128     * @return
129     *     possible object is
130     *     {@link String }
131     *
132     */
133    public String getOperationName() {
134        if (operationName == null) {
135            return "";
136        } else {
137            return operationName;
138        }
139    }
140
141    /**
142     * Sets the value of the operationName property.
143     *
144     * @param value
145     *     allowed object is
146     *     {@link String }
147     *
148     */
149    public void setOperationName(String value) {
150        this.operationName = value;
151    }
152
153    @Override
154    public String operationName() {
155        return nullSafe(operationName);
156    }
157
158    @Override
159    public String action() {
160        return nullSafe(action);
161    }
162
163    @Override
164    public boolean exclude() {
165        return nullSafe(exclude, false);
166    }
167
168    @Override
169    public Class<? extends Annotation> annotationType() {
170        return javax.jws.WebMethod.class;
171    }
172}
173