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="local-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
50 *       &lt;attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
51 *       &lt;attribute name="class-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
52 *       &lt;attribute name="part-name" 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 = "request-wrapper")
61public class XmlRequestWrapper implements javax.xml.ws.RequestWrapper {
62
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;
71
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    }
87
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    }
99
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    }
115
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    }
127
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    }
143
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    }
155
156    public String getPartName() {
157        return partName;
158    }
159
160    public void setPartName(String partName) {
161        this.partName = partName;
162    }
163
164    @Override
165    public String localName() {
166        return nullSafe(localName);
167    }
168
169    @Override
170    public String targetNamespace() {
171        return nullSafe(targetNamespace);
172    }
173
174    @Override
175    public String className() {
176        return nullSafe(className);
177    }
178
179    @Override
180    public String partName() {
181        return nullSafe(partName);
182    }
183
184    @Override
185    public Class<? extends Annotation> annotationType() {
186        return javax.xml.ws.RequestWrapper.class;
187    }
188}
189