001 /*
002 * XML Type: tOperation
003 * Namespace: http://schemas.xmlsoap.org/wsdl/
004 * Java type: org.apache.geronimo.xbeans.wsdl.TOperation
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.wsdl.impl;
009 /**
010 * An XML tOperation(@http://schemas.xmlsoap.org/wsdl/).
011 *
012 * This is a complex type.
013 */
014 public class TOperationImpl extends org.apache.geronimo.xbeans.wsdl.impl.TExtensibleDocumentedImpl implements org.apache.geronimo.xbeans.wsdl.TOperation
015 {
016
017 public TOperationImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName INPUT$0 =
023 new javax.xml.namespace.QName("http://schemas.xmlsoap.org/wsdl/", "input");
024 private static final javax.xml.namespace.QName OUTPUT$2 =
025 new javax.xml.namespace.QName("http://schemas.xmlsoap.org/wsdl/", "output");
026 private static final javax.xml.namespace.QName FAULT$4 =
027 new javax.xml.namespace.QName("http://schemas.xmlsoap.org/wsdl/", "fault");
028 private static final javax.xml.namespace.QName NAME$6 =
029 new javax.xml.namespace.QName("", "name");
030 private static final javax.xml.namespace.QName PARAMETERORDER$8 =
031 new javax.xml.namespace.QName("", "parameterOrder");
032
033
034 /**
035 * Gets the "input" element
036 */
037 public org.apache.geronimo.xbeans.wsdl.TParam getInput()
038 {
039 synchronized (monitor())
040 {
041 check_orphaned();
042 org.apache.geronimo.xbeans.wsdl.TParam target = null;
043 target = (org.apache.geronimo.xbeans.wsdl.TParam)get_store().find_element_user(INPUT$0, 0);
044 if (target == null)
045 {
046 return null;
047 }
048 return target;
049 }
050 }
051
052 /**
053 * True if has "input" element
054 */
055 public boolean isSetInput()
056 {
057 synchronized (monitor())
058 {
059 check_orphaned();
060 return get_store().count_elements(INPUT$0) != 0;
061 }
062 }
063
064 /**
065 * Sets the "input" element
066 */
067 public void setInput(org.apache.geronimo.xbeans.wsdl.TParam input)
068 {
069 synchronized (monitor())
070 {
071 check_orphaned();
072 org.apache.geronimo.xbeans.wsdl.TParam target = null;
073 target = (org.apache.geronimo.xbeans.wsdl.TParam)get_store().find_element_user(INPUT$0, 0);
074 if (target == null)
075 {
076 target = (org.apache.geronimo.xbeans.wsdl.TParam)get_store().add_element_user(INPUT$0);
077 }
078 target.set(input);
079 }
080 }
081
082 /**
083 * Appends and returns a new empty "input" element
084 */
085 public org.apache.geronimo.xbeans.wsdl.TParam addNewInput()
086 {
087 synchronized (monitor())
088 {
089 check_orphaned();
090 org.apache.geronimo.xbeans.wsdl.TParam target = null;
091 target = (org.apache.geronimo.xbeans.wsdl.TParam)get_store().add_element_user(INPUT$0);
092 return target;
093 }
094 }
095
096 /**
097 * Unsets the "input" element
098 */
099 public void unsetInput()
100 {
101 synchronized (monitor())
102 {
103 check_orphaned();
104 get_store().remove_element(INPUT$0, 0);
105 }
106 }
107
108 /**
109 * Gets the "output" element
110 */
111 public org.apache.geronimo.xbeans.wsdl.TParam getOutput()
112 {
113 synchronized (monitor())
114 {
115 check_orphaned();
116 org.apache.geronimo.xbeans.wsdl.TParam target = null;
117 target = (org.apache.geronimo.xbeans.wsdl.TParam)get_store().find_element_user(OUTPUT$2, 0);
118 if (target == null)
119 {
120 return null;
121 }
122 return target;
123 }
124 }
125
126 /**
127 * True if has "output" element
128 */
129 public boolean isSetOutput()
130 {
131 synchronized (monitor())
132 {
133 check_orphaned();
134 return get_store().count_elements(OUTPUT$2) != 0;
135 }
136 }
137
138 /**
139 * Sets the "output" element
140 */
141 public void setOutput(org.apache.geronimo.xbeans.wsdl.TParam output)
142 {
143 synchronized (monitor())
144 {
145 check_orphaned();
146 org.apache.geronimo.xbeans.wsdl.TParam target = null;
147 target = (org.apache.geronimo.xbeans.wsdl.TParam)get_store().find_element_user(OUTPUT$2, 0);
148 if (target == null)
149 {
150 target = (org.apache.geronimo.xbeans.wsdl.TParam)get_store().add_element_user(OUTPUT$2);
151 }
152 target.set(output);
153 }
154 }
155
156 /**
157 * Appends and returns a new empty "output" element
158 */
159 public org.apache.geronimo.xbeans.wsdl.TParam addNewOutput()
160 {
161 synchronized (monitor())
162 {
163 check_orphaned();
164 org.apache.geronimo.xbeans.wsdl.TParam target = null;
165 target = (org.apache.geronimo.xbeans.wsdl.TParam)get_store().add_element_user(OUTPUT$2);
166 return target;
167 }
168 }
169
170 /**
171 * Unsets the "output" element
172 */
173 public void unsetOutput()
174 {
175 synchronized (monitor())
176 {
177 check_orphaned();
178 get_store().remove_element(OUTPUT$2, 0);
179 }
180 }
181
182 /**
183 * Gets array of all "fault" elements
184 */
185 public org.apache.geronimo.xbeans.wsdl.TFault[] getFaultArray()
186 {
187 synchronized (monitor())
188 {
189 check_orphaned();
190 java.util.List targetList = new java.util.ArrayList();
191 get_store().find_all_element_users(FAULT$4, targetList);
192 org.apache.geronimo.xbeans.wsdl.TFault[] result = new org.apache.geronimo.xbeans.wsdl.TFault[targetList.size()];
193 targetList.toArray(result);
194 return result;
195 }
196 }
197
198 /**
199 * Gets ith "fault" element
200 */
201 public org.apache.geronimo.xbeans.wsdl.TFault getFaultArray(int i)
202 {
203 synchronized (monitor())
204 {
205 check_orphaned();
206 org.apache.geronimo.xbeans.wsdl.TFault target = null;
207 target = (org.apache.geronimo.xbeans.wsdl.TFault)get_store().find_element_user(FAULT$4, i);
208 if (target == null)
209 {
210 throw new IndexOutOfBoundsException();
211 }
212 return target;
213 }
214 }
215
216 /**
217 * Returns number of "fault" element
218 */
219 public int sizeOfFaultArray()
220 {
221 synchronized (monitor())
222 {
223 check_orphaned();
224 return get_store().count_elements(FAULT$4);
225 }
226 }
227
228 /**
229 * Sets array of all "fault" element
230 */
231 public void setFaultArray(org.apache.geronimo.xbeans.wsdl.TFault[] faultArray)
232 {
233 synchronized (monitor())
234 {
235 check_orphaned();
236 arraySetterHelper(faultArray, FAULT$4);
237 }
238 }
239
240 /**
241 * Sets ith "fault" element
242 */
243 public void setFaultArray(int i, org.apache.geronimo.xbeans.wsdl.TFault fault)
244 {
245 synchronized (monitor())
246 {
247 check_orphaned();
248 org.apache.geronimo.xbeans.wsdl.TFault target = null;
249 target = (org.apache.geronimo.xbeans.wsdl.TFault)get_store().find_element_user(FAULT$4, i);
250 if (target == null)
251 {
252 throw new IndexOutOfBoundsException();
253 }
254 target.set(fault);
255 }
256 }
257
258 /**
259 * Inserts and returns a new empty value (as xml) as the ith "fault" element
260 */
261 public org.apache.geronimo.xbeans.wsdl.TFault insertNewFault(int i)
262 {
263 synchronized (monitor())
264 {
265 check_orphaned();
266 org.apache.geronimo.xbeans.wsdl.TFault target = null;
267 target = (org.apache.geronimo.xbeans.wsdl.TFault)get_store().insert_element_user(FAULT$4, i);
268 return target;
269 }
270 }
271
272 /**
273 * Appends and returns a new empty value (as xml) as the last "fault" element
274 */
275 public org.apache.geronimo.xbeans.wsdl.TFault addNewFault()
276 {
277 synchronized (monitor())
278 {
279 check_orphaned();
280 org.apache.geronimo.xbeans.wsdl.TFault target = null;
281 target = (org.apache.geronimo.xbeans.wsdl.TFault)get_store().add_element_user(FAULT$4);
282 return target;
283 }
284 }
285
286 /**
287 * Removes the ith "fault" element
288 */
289 public void removeFault(int i)
290 {
291 synchronized (monitor())
292 {
293 check_orphaned();
294 get_store().remove_element(FAULT$4, i);
295 }
296 }
297
298 /**
299 * Gets the "name" attribute
300 */
301 public java.lang.String getName()
302 {
303 synchronized (monitor())
304 {
305 check_orphaned();
306 org.apache.xmlbeans.SimpleValue target = null;
307 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);
308 if (target == null)
309 {
310 return null;
311 }
312 return target.getStringValue();
313 }
314 }
315
316 /**
317 * Gets (as xml) the "name" attribute
318 */
319 public org.apache.xmlbeans.XmlNCName xgetName()
320 {
321 synchronized (monitor())
322 {
323 check_orphaned();
324 org.apache.xmlbeans.XmlNCName target = null;
325 target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$6);
326 return target;
327 }
328 }
329
330 /**
331 * Sets the "name" attribute
332 */
333 public void setName(java.lang.String name)
334 {
335 synchronized (monitor())
336 {
337 check_orphaned();
338 org.apache.xmlbeans.SimpleValue target = null;
339 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);
340 if (target == null)
341 {
342 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$6);
343 }
344 target.setStringValue(name);
345 }
346 }
347
348 /**
349 * Sets (as xml) the "name" attribute
350 */
351 public void xsetName(org.apache.xmlbeans.XmlNCName name)
352 {
353 synchronized (monitor())
354 {
355 check_orphaned();
356 org.apache.xmlbeans.XmlNCName target = null;
357 target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$6);
358 if (target == null)
359 {
360 target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$6);
361 }
362 target.set(name);
363 }
364 }
365
366 /**
367 * Gets the "parameterOrder" attribute
368 */
369 public java.util.List getParameterOrder()
370 {
371 synchronized (monitor())
372 {
373 check_orphaned();
374 org.apache.xmlbeans.SimpleValue target = null;
375 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PARAMETERORDER$8);
376 if (target == null)
377 {
378 return null;
379 }
380 return target.getListValue();
381 }
382 }
383
384 /**
385 * Gets (as xml) the "parameterOrder" attribute
386 */
387 public org.apache.xmlbeans.XmlNMTOKENS xgetParameterOrder()
388 {
389 synchronized (monitor())
390 {
391 check_orphaned();
392 org.apache.xmlbeans.XmlNMTOKENS target = null;
393 target = (org.apache.xmlbeans.XmlNMTOKENS)get_store().find_attribute_user(PARAMETERORDER$8);
394 return target;
395 }
396 }
397
398 /**
399 * True if has "parameterOrder" attribute
400 */
401 public boolean isSetParameterOrder()
402 {
403 synchronized (monitor())
404 {
405 check_orphaned();
406 return get_store().find_attribute_user(PARAMETERORDER$8) != null;
407 }
408 }
409
410 /**
411 * Sets the "parameterOrder" attribute
412 */
413 public void setParameterOrder(java.util.List parameterOrder)
414 {
415 synchronized (monitor())
416 {
417 check_orphaned();
418 org.apache.xmlbeans.SimpleValue target = null;
419 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PARAMETERORDER$8);
420 if (target == null)
421 {
422 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PARAMETERORDER$8);
423 }
424 target.setListValue(parameterOrder);
425 }
426 }
427
428 /**
429 * Sets (as xml) the "parameterOrder" attribute
430 */
431 public void xsetParameterOrder(org.apache.xmlbeans.XmlNMTOKENS parameterOrder)
432 {
433 synchronized (monitor())
434 {
435 check_orphaned();
436 org.apache.xmlbeans.XmlNMTOKENS target = null;
437 target = (org.apache.xmlbeans.XmlNMTOKENS)get_store().find_attribute_user(PARAMETERORDER$8);
438 if (target == null)
439 {
440 target = (org.apache.xmlbeans.XmlNMTOKENS)get_store().add_attribute_user(PARAMETERORDER$8);
441 }
442 target.set(parameterOrder);
443 }
444 }
445
446 /**
447 * Unsets the "parameterOrder" attribute
448 */
449 public void unsetParameterOrder()
450 {
451 synchronized (monitor())
452 {
453 check_orphaned();
454 get_store().remove_attribute(PARAMETERORDER$8);
455 }
456 }
457 }