Thu, 31 Aug 2017 15:18:52 +0800
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;
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 * <complexType>
47 * <complexContent>
48 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
49 * <attribute name="action" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
50 * <attribute name="exclude" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
51 * <attribute name="operation-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
52 * </restriction>
53 * </complexContent>
54 * </complexType>
55 * </pre>
56 */
57 @XmlAccessorType(XmlAccessType.FIELD)
58 @XmlType(name = "")
59 @XmlRootElement(name = "web-method")
60 public class XmlWebMethod implements javax.jws.WebMethod {
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;
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 }
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 }
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 }
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 }
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 }
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 }
153 @Override
154 public String operationName() {
155 return nullSafe(operationName);
156 }
158 @Override
159 public String action() {
160 return nullSafe(action);
161 }
163 @Override
164 public boolean exclude() {
165 return nullSafe(exclude, false);
166 }
168 @Override
169 public Class<? extends Annotation> annotationType() {
170 return javax.jws.WebMethod.class;
171 }
172 }