Wed, 27 Apr 2016 01:27:09 +0800
Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/jaxws/
changeset: 657:d47a47f961ee
tag: jdk8u25-b17
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="local-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
50 * <attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
51 * <attribute name="class-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
52 * <attribute name="part-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
53 * </restriction>
54 * </complexContent>
55 * </complexType>
56 * </pre>
57 */
58 @XmlAccessorType(XmlAccessType.FIELD)
59 @XmlType(name = "")
60 @XmlRootElement(name = "request-wrapper")
61 public class XmlRequestWrapper implements javax.xml.ws.RequestWrapper {
63 @XmlAttribute(name = "local-name")
64 protected String localName;
65 @XmlAttribute(name = "target-namespace")
66 protected String targetNamespace;
67 @XmlAttribute(name = "class-name")
68 protected String className;
69 @XmlAttribute(name = "part-name")
70 protected String partName;
72 /**
73 * Gets the value of the localName property.
74 *
75 * @return
76 * possible object is
77 * {@link String }
78 *
79 */
80 public String getLocalName() {
81 if (localName == null) {
82 return "";
83 } else {
84 return localName;
85 }
86 }
88 /**
89 * Sets the value of the localName property.
90 *
91 * @param value
92 * allowed object is
93 * {@link String }
94 *
95 */
96 public void setLocalName(String value) {
97 this.localName = value;
98 }
100 /**
101 * Gets the value of the targetNamespace property.
102 *
103 * @return
104 * possible object is
105 * {@link String }
106 *
107 */
108 public String getTargetNamespace() {
109 if (targetNamespace == null) {
110 return "";
111 } else {
112 return targetNamespace;
113 }
114 }
116 /**
117 * Sets the value of the targetNamespace property.
118 *
119 * @param value
120 * allowed object is
121 * {@link String }
122 *
123 */
124 public void setTargetNamespace(String value) {
125 this.targetNamespace = value;
126 }
128 /**
129 * Gets the value of the className property.
130 *
131 * @return
132 * possible object is
133 * {@link String }
134 *
135 */
136 public String getClassName() {
137 if (className == null) {
138 return "";
139 } else {
140 return className;
141 }
142 }
144 /**
145 * Sets the value of the className property.
146 *
147 * @param value
148 * allowed object is
149 * {@link String }
150 *
151 */
152 public void setClassName(String value) {
153 this.className = value;
154 }
156 public String getPartName() {
157 return partName;
158 }
160 public void setPartName(String partName) {
161 this.partName = partName;
162 }
164 @Override
165 public String localName() {
166 return nullSafe(localName);
167 }
169 @Override
170 public String targetNamespace() {
171 return nullSafe(targetNamespace);
172 }
174 @Override
175 public String className() {
176 return nullSafe(className);
177 }
179 @Override
180 public String partName() {
181 return nullSafe(partName);
182 }
184 @Override
185 public Class<? extends Annotation> annotationType() {
186 return javax.xml.ws.RequestWrapper.class;
187 }
188 }