001 /*
002 * XML Type: tPart
003 * Namespace: http://schemas.xmlsoap.org/wsdl/
004 * Java type: org.apache.geronimo.xbeans.wsdl.TPart
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.wsdl.impl;
009 /**
010 * An XML tPart(@http://schemas.xmlsoap.org/wsdl/).
011 *
012 * This is a complex type.
013 */
014 public class TPartImpl extends org.apache.geronimo.xbeans.wsdl.impl.TExtensibleAttributesDocumentedImpl implements org.apache.geronimo.xbeans.wsdl.TPart
015 {
016
017 public TPartImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName NAME$0 =
023 new javax.xml.namespace.QName("", "name");
024 private static final javax.xml.namespace.QName ELEMENT$2 =
025 new javax.xml.namespace.QName("", "element");
026 private static final javax.xml.namespace.QName TYPE$4 =
027 new javax.xml.namespace.QName("", "type");
028
029
030 /**
031 * Gets the "name" attribute
032 */
033 public java.lang.String getName()
034 {
035 synchronized (monitor())
036 {
037 check_orphaned();
038 org.apache.xmlbeans.SimpleValue target = null;
039 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
040 if (target == null)
041 {
042 return null;
043 }
044 return target.getStringValue();
045 }
046 }
047
048 /**
049 * Gets (as xml) the "name" attribute
050 */
051 public org.apache.xmlbeans.XmlNCName xgetName()
052 {
053 synchronized (monitor())
054 {
055 check_orphaned();
056 org.apache.xmlbeans.XmlNCName target = null;
057 target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
058 return target;
059 }
060 }
061
062 /**
063 * Sets the "name" attribute
064 */
065 public void setName(java.lang.String name)
066 {
067 synchronized (monitor())
068 {
069 check_orphaned();
070 org.apache.xmlbeans.SimpleValue target = null;
071 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
072 if (target == null)
073 {
074 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
075 }
076 target.setStringValue(name);
077 }
078 }
079
080 /**
081 * Sets (as xml) the "name" attribute
082 */
083 public void xsetName(org.apache.xmlbeans.XmlNCName name)
084 {
085 synchronized (monitor())
086 {
087 check_orphaned();
088 org.apache.xmlbeans.XmlNCName target = null;
089 target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
090 if (target == null)
091 {
092 target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
093 }
094 target.set(name);
095 }
096 }
097
098 /**
099 * Gets the "element" attribute
100 */
101 public javax.xml.namespace.QName getElement()
102 {
103 synchronized (monitor())
104 {
105 check_orphaned();
106 org.apache.xmlbeans.SimpleValue target = null;
107 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ELEMENT$2);
108 if (target == null)
109 {
110 return null;
111 }
112 return target.getQNameValue();
113 }
114 }
115
116 /**
117 * Gets (as xml) the "element" attribute
118 */
119 public org.apache.xmlbeans.XmlQName xgetElement()
120 {
121 synchronized (monitor())
122 {
123 check_orphaned();
124 org.apache.xmlbeans.XmlQName target = null;
125 target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(ELEMENT$2);
126 return target;
127 }
128 }
129
130 /**
131 * True if has "element" attribute
132 */
133 public boolean isSetElement()
134 {
135 synchronized (monitor())
136 {
137 check_orphaned();
138 return get_store().find_attribute_user(ELEMENT$2) != null;
139 }
140 }
141
142 /**
143 * Sets the "element" attribute
144 */
145 public void setElement(javax.xml.namespace.QName element)
146 {
147 synchronized (monitor())
148 {
149 check_orphaned();
150 org.apache.xmlbeans.SimpleValue target = null;
151 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ELEMENT$2);
152 if (target == null)
153 {
154 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ELEMENT$2);
155 }
156 target.setQNameValue(element);
157 }
158 }
159
160 /**
161 * Sets (as xml) the "element" attribute
162 */
163 public void xsetElement(org.apache.xmlbeans.XmlQName element)
164 {
165 synchronized (monitor())
166 {
167 check_orphaned();
168 org.apache.xmlbeans.XmlQName target = null;
169 target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(ELEMENT$2);
170 if (target == null)
171 {
172 target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(ELEMENT$2);
173 }
174 target.set(element);
175 }
176 }
177
178 /**
179 * Unsets the "element" attribute
180 */
181 public void unsetElement()
182 {
183 synchronized (monitor())
184 {
185 check_orphaned();
186 get_store().remove_attribute(ELEMENT$2);
187 }
188 }
189
190 /**
191 * Gets the "type" attribute
192 */
193 public javax.xml.namespace.QName getType()
194 {
195 synchronized (monitor())
196 {
197 check_orphaned();
198 org.apache.xmlbeans.SimpleValue target = null;
199 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$4);
200 if (target == null)
201 {
202 return null;
203 }
204 return target.getQNameValue();
205 }
206 }
207
208 /**
209 * Gets (as xml) the "type" attribute
210 */
211 public org.apache.xmlbeans.XmlQName xgetType()
212 {
213 synchronized (monitor())
214 {
215 check_orphaned();
216 org.apache.xmlbeans.XmlQName target = null;
217 target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(TYPE$4);
218 return target;
219 }
220 }
221
222 /**
223 * True if has "type" attribute
224 */
225 public boolean isSetType()
226 {
227 synchronized (monitor())
228 {
229 check_orphaned();
230 return get_store().find_attribute_user(TYPE$4) != null;
231 }
232 }
233
234 /**
235 * Sets the "type" attribute
236 */
237 public void setType(javax.xml.namespace.QName type)
238 {
239 synchronized (monitor())
240 {
241 check_orphaned();
242 org.apache.xmlbeans.SimpleValue target = null;
243 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$4);
244 if (target == null)
245 {
246 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$4);
247 }
248 target.setQNameValue(type);
249 }
250 }
251
252 /**
253 * Sets (as xml) the "type" attribute
254 */
255 public void xsetType(org.apache.xmlbeans.XmlQName type)
256 {
257 synchronized (monitor())
258 {
259 check_orphaned();
260 org.apache.xmlbeans.XmlQName target = null;
261 target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(TYPE$4);
262 if (target == null)
263 {
264 target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(TYPE$4);
265 }
266 target.set(type);
267 }
268 }
269
270 /**
271 * Unsets the "type" attribute
272 */
273 public void unsetType()
274 {
275 synchronized (monitor())
276 {
277 check_orphaned();
278 get_store().remove_attribute(TYPE$4);
279 }
280 }
281 }