001: /*
002: * XML Type: BindingOperationType
003: * Namespace: http://www.w3.org/ns/wsdl
004: * Java type: org.w3.ns.wsdl.BindingOperationType
005: *
006: * Automatically generated - do not modify.
007: */
008: package org.w3.ns.wsdl.impl;
009:
010: /**
011: * An XML BindingOperationType(@http://www.w3.org/ns/wsdl).
012: *
013: * This is a complex type.
014: */
015: public class BindingOperationTypeImpl extends
016: org.w3.ns.wsdl.impl.ExtensibleDocumentedTypeImpl implements
017: org.w3.ns.wsdl.BindingOperationType {
018:
019: public BindingOperationTypeImpl(org.apache.xmlbeans.SchemaType sType) {
020: super (sType);
021: }
022:
023: private static final javax.xml.namespace.QName INPUT$0 = new javax.xml.namespace.QName(
024: "http://www.w3.org/ns/wsdl", "input");
025: private static final javax.xml.namespace.QName OUTPUT$2 = new javax.xml.namespace.QName(
026: "http://www.w3.org/ns/wsdl", "output");
027: private static final javax.xml.namespace.QName INFAULT$4 = new javax.xml.namespace.QName(
028: "http://www.w3.org/ns/wsdl", "infault");
029: private static final javax.xml.namespace.QName OUTFAULT$6 = new javax.xml.namespace.QName(
030: "http://www.w3.org/ns/wsdl", "outfault");
031: private static final javax.xml.namespace.QName REF$8 = new javax.xml.namespace.QName(
032: "", "ref");
033:
034: /**
035: * Gets array of all "input" elements
036: */
037: public org.w3.ns.wsdl.BindingOperationMessageType[] getInputArray() {
038: synchronized (monitor()) {
039: check_orphaned();
040: java.util.List targetList = new java.util.ArrayList();
041: get_store().find_all_element_users(INPUT$0, targetList);
042: org.w3.ns.wsdl.BindingOperationMessageType[] result = new org.w3.ns.wsdl.BindingOperationMessageType[targetList
043: .size()];
044: targetList.toArray(result);
045: return result;
046: }
047: }
048:
049: /**
050: * Gets ith "input" element
051: */
052: public org.w3.ns.wsdl.BindingOperationMessageType getInputArray(
053: int i) {
054: synchronized (monitor()) {
055: check_orphaned();
056: org.w3.ns.wsdl.BindingOperationMessageType target = null;
057: target = (org.w3.ns.wsdl.BindingOperationMessageType) get_store()
058: .find_element_user(INPUT$0, i);
059: if (target == null) {
060: throw new IndexOutOfBoundsException();
061: }
062: return target;
063: }
064: }
065:
066: /**
067: * Returns number of "input" element
068: */
069: public int sizeOfInputArray() {
070: synchronized (monitor()) {
071: check_orphaned();
072: return get_store().count_elements(INPUT$0);
073: }
074: }
075:
076: /**
077: * Sets array of all "input" element
078: */
079: public void setInputArray(
080: org.w3.ns.wsdl.BindingOperationMessageType[] inputArray) {
081: synchronized (monitor()) {
082: check_orphaned();
083: arraySetterHelper(inputArray, INPUT$0);
084: }
085: }
086:
087: /**
088: * Sets ith "input" element
089: */
090: public void setInputArray(int i,
091: org.w3.ns.wsdl.BindingOperationMessageType input) {
092: synchronized (monitor()) {
093: check_orphaned();
094: org.w3.ns.wsdl.BindingOperationMessageType target = null;
095: target = (org.w3.ns.wsdl.BindingOperationMessageType) get_store()
096: .find_element_user(INPUT$0, i);
097: if (target == null) {
098: throw new IndexOutOfBoundsException();
099: }
100: target.set(input);
101: }
102: }
103:
104: /**
105: * Inserts and returns a new empty value (as xml) as the ith "input" element
106: */
107: public org.w3.ns.wsdl.BindingOperationMessageType insertNewInput(
108: int i) {
109: synchronized (monitor()) {
110: check_orphaned();
111: org.w3.ns.wsdl.BindingOperationMessageType target = null;
112: target = (org.w3.ns.wsdl.BindingOperationMessageType) get_store()
113: .insert_element_user(INPUT$0, i);
114: return target;
115: }
116: }
117:
118: /**
119: * Appends and returns a new empty value (as xml) as the last "input" element
120: */
121: public org.w3.ns.wsdl.BindingOperationMessageType addNewInput() {
122: synchronized (monitor()) {
123: check_orphaned();
124: org.w3.ns.wsdl.BindingOperationMessageType target = null;
125: target = (org.w3.ns.wsdl.BindingOperationMessageType) get_store()
126: .add_element_user(INPUT$0);
127: return target;
128: }
129: }
130:
131: /**
132: * Removes the ith "input" element
133: */
134: public void removeInput(int i) {
135: synchronized (monitor()) {
136: check_orphaned();
137: get_store().remove_element(INPUT$0, i);
138: }
139: }
140:
141: /**
142: * Gets array of all "output" elements
143: */
144: public org.w3.ns.wsdl.BindingOperationMessageType[] getOutputArray() {
145: synchronized (monitor()) {
146: check_orphaned();
147: java.util.List targetList = new java.util.ArrayList();
148: get_store().find_all_element_users(OUTPUT$2, targetList);
149: org.w3.ns.wsdl.BindingOperationMessageType[] result = new org.w3.ns.wsdl.BindingOperationMessageType[targetList
150: .size()];
151: targetList.toArray(result);
152: return result;
153: }
154: }
155:
156: /**
157: * Gets ith "output" element
158: */
159: public org.w3.ns.wsdl.BindingOperationMessageType getOutputArray(
160: int i) {
161: synchronized (monitor()) {
162: check_orphaned();
163: org.w3.ns.wsdl.BindingOperationMessageType target = null;
164: target = (org.w3.ns.wsdl.BindingOperationMessageType) get_store()
165: .find_element_user(OUTPUT$2, i);
166: if (target == null) {
167: throw new IndexOutOfBoundsException();
168: }
169: return target;
170: }
171: }
172:
173: /**
174: * Returns number of "output" element
175: */
176: public int sizeOfOutputArray() {
177: synchronized (monitor()) {
178: check_orphaned();
179: return get_store().count_elements(OUTPUT$2);
180: }
181: }
182:
183: /**
184: * Sets array of all "output" element
185: */
186: public void setOutputArray(
187: org.w3.ns.wsdl.BindingOperationMessageType[] outputArray) {
188: synchronized (monitor()) {
189: check_orphaned();
190: arraySetterHelper(outputArray, OUTPUT$2);
191: }
192: }
193:
194: /**
195: * Sets ith "output" element
196: */
197: public void setOutputArray(int i,
198: org.w3.ns.wsdl.BindingOperationMessageType output) {
199: synchronized (monitor()) {
200: check_orphaned();
201: org.w3.ns.wsdl.BindingOperationMessageType target = null;
202: target = (org.w3.ns.wsdl.BindingOperationMessageType) get_store()
203: .find_element_user(OUTPUT$2, i);
204: if (target == null) {
205: throw new IndexOutOfBoundsException();
206: }
207: target.set(output);
208: }
209: }
210:
211: /**
212: * Inserts and returns a new empty value (as xml) as the ith "output" element
213: */
214: public org.w3.ns.wsdl.BindingOperationMessageType insertNewOutput(
215: int i) {
216: synchronized (monitor()) {
217: check_orphaned();
218: org.w3.ns.wsdl.BindingOperationMessageType target = null;
219: target = (org.w3.ns.wsdl.BindingOperationMessageType) get_store()
220: .insert_element_user(OUTPUT$2, i);
221: return target;
222: }
223: }
224:
225: /**
226: * Appends and returns a new empty value (as xml) as the last "output" element
227: */
228: public org.w3.ns.wsdl.BindingOperationMessageType addNewOutput() {
229: synchronized (monitor()) {
230: check_orphaned();
231: org.w3.ns.wsdl.BindingOperationMessageType target = null;
232: target = (org.w3.ns.wsdl.BindingOperationMessageType) get_store()
233: .add_element_user(OUTPUT$2);
234: return target;
235: }
236: }
237:
238: /**
239: * Removes the ith "output" element
240: */
241: public void removeOutput(int i) {
242: synchronized (monitor()) {
243: check_orphaned();
244: get_store().remove_element(OUTPUT$2, i);
245: }
246: }
247:
248: /**
249: * Gets array of all "infault" elements
250: */
251: public org.w3.ns.wsdl.BindingOperationFaultType[] getInfaultArray() {
252: synchronized (monitor()) {
253: check_orphaned();
254: java.util.List targetList = new java.util.ArrayList();
255: get_store().find_all_element_users(INFAULT$4, targetList);
256: org.w3.ns.wsdl.BindingOperationFaultType[] result = new org.w3.ns.wsdl.BindingOperationFaultType[targetList
257: .size()];
258: targetList.toArray(result);
259: return result;
260: }
261: }
262:
263: /**
264: * Gets ith "infault" element
265: */
266: public org.w3.ns.wsdl.BindingOperationFaultType getInfaultArray(
267: int i) {
268: synchronized (monitor()) {
269: check_orphaned();
270: org.w3.ns.wsdl.BindingOperationFaultType target = null;
271: target = (org.w3.ns.wsdl.BindingOperationFaultType) get_store()
272: .find_element_user(INFAULT$4, i);
273: if (target == null) {
274: throw new IndexOutOfBoundsException();
275: }
276: return target;
277: }
278: }
279:
280: /**
281: * Returns number of "infault" element
282: */
283: public int sizeOfInfaultArray() {
284: synchronized (monitor()) {
285: check_orphaned();
286: return get_store().count_elements(INFAULT$4);
287: }
288: }
289:
290: /**
291: * Sets array of all "infault" element
292: */
293: public void setInfaultArray(
294: org.w3.ns.wsdl.BindingOperationFaultType[] infaultArray) {
295: synchronized (monitor()) {
296: check_orphaned();
297: arraySetterHelper(infaultArray, INFAULT$4);
298: }
299: }
300:
301: /**
302: * Sets ith "infault" element
303: */
304: public void setInfaultArray(int i,
305: org.w3.ns.wsdl.BindingOperationFaultType infault) {
306: synchronized (monitor()) {
307: check_orphaned();
308: org.w3.ns.wsdl.BindingOperationFaultType target = null;
309: target = (org.w3.ns.wsdl.BindingOperationFaultType) get_store()
310: .find_element_user(INFAULT$4, i);
311: if (target == null) {
312: throw new IndexOutOfBoundsException();
313: }
314: target.set(infault);
315: }
316: }
317:
318: /**
319: * Inserts and returns a new empty value (as xml) as the ith "infault" element
320: */
321: public org.w3.ns.wsdl.BindingOperationFaultType insertNewInfault(
322: int i) {
323: synchronized (monitor()) {
324: check_orphaned();
325: org.w3.ns.wsdl.BindingOperationFaultType target = null;
326: target = (org.w3.ns.wsdl.BindingOperationFaultType) get_store()
327: .insert_element_user(INFAULT$4, i);
328: return target;
329: }
330: }
331:
332: /**
333: * Appends and returns a new empty value (as xml) as the last "infault" element
334: */
335: public org.w3.ns.wsdl.BindingOperationFaultType addNewInfault() {
336: synchronized (monitor()) {
337: check_orphaned();
338: org.w3.ns.wsdl.BindingOperationFaultType target = null;
339: target = (org.w3.ns.wsdl.BindingOperationFaultType) get_store()
340: .add_element_user(INFAULT$4);
341: return target;
342: }
343: }
344:
345: /**
346: * Removes the ith "infault" element
347: */
348: public void removeInfault(int i) {
349: synchronized (monitor()) {
350: check_orphaned();
351: get_store().remove_element(INFAULT$4, i);
352: }
353: }
354:
355: /**
356: * Gets array of all "outfault" elements
357: */
358: public org.w3.ns.wsdl.BindingOperationFaultType[] getOutfaultArray() {
359: synchronized (monitor()) {
360: check_orphaned();
361: java.util.List targetList = new java.util.ArrayList();
362: get_store().find_all_element_users(OUTFAULT$6, targetList);
363: org.w3.ns.wsdl.BindingOperationFaultType[] result = new org.w3.ns.wsdl.BindingOperationFaultType[targetList
364: .size()];
365: targetList.toArray(result);
366: return result;
367: }
368: }
369:
370: /**
371: * Gets ith "outfault" element
372: */
373: public org.w3.ns.wsdl.BindingOperationFaultType getOutfaultArray(
374: int i) {
375: synchronized (monitor()) {
376: check_orphaned();
377: org.w3.ns.wsdl.BindingOperationFaultType target = null;
378: target = (org.w3.ns.wsdl.BindingOperationFaultType) get_store()
379: .find_element_user(OUTFAULT$6, i);
380: if (target == null) {
381: throw new IndexOutOfBoundsException();
382: }
383: return target;
384: }
385: }
386:
387: /**
388: * Returns number of "outfault" element
389: */
390: public int sizeOfOutfaultArray() {
391: synchronized (monitor()) {
392: check_orphaned();
393: return get_store().count_elements(OUTFAULT$6);
394: }
395: }
396:
397: /**
398: * Sets array of all "outfault" element
399: */
400: public void setOutfaultArray(
401: org.w3.ns.wsdl.BindingOperationFaultType[] outfaultArray) {
402: synchronized (monitor()) {
403: check_orphaned();
404: arraySetterHelper(outfaultArray, OUTFAULT$6);
405: }
406: }
407:
408: /**
409: * Sets ith "outfault" element
410: */
411: public void setOutfaultArray(int i,
412: org.w3.ns.wsdl.BindingOperationFaultType outfault) {
413: synchronized (monitor()) {
414: check_orphaned();
415: org.w3.ns.wsdl.BindingOperationFaultType target = null;
416: target = (org.w3.ns.wsdl.BindingOperationFaultType) get_store()
417: .find_element_user(OUTFAULT$6, i);
418: if (target == null) {
419: throw new IndexOutOfBoundsException();
420: }
421: target.set(outfault);
422: }
423: }
424:
425: /**
426: * Inserts and returns a new empty value (as xml) as the ith "outfault" element
427: */
428: public org.w3.ns.wsdl.BindingOperationFaultType insertNewOutfault(
429: int i) {
430: synchronized (monitor()) {
431: check_orphaned();
432: org.w3.ns.wsdl.BindingOperationFaultType target = null;
433: target = (org.w3.ns.wsdl.BindingOperationFaultType) get_store()
434: .insert_element_user(OUTFAULT$6, i);
435: return target;
436: }
437: }
438:
439: /**
440: * Appends and returns a new empty value (as xml) as the last "outfault" element
441: */
442: public org.w3.ns.wsdl.BindingOperationFaultType addNewOutfault() {
443: synchronized (monitor()) {
444: check_orphaned();
445: org.w3.ns.wsdl.BindingOperationFaultType target = null;
446: target = (org.w3.ns.wsdl.BindingOperationFaultType) get_store()
447: .add_element_user(OUTFAULT$6);
448: return target;
449: }
450: }
451:
452: /**
453: * Removes the ith "outfault" element
454: */
455: public void removeOutfault(int i) {
456: synchronized (monitor()) {
457: check_orphaned();
458: get_store().remove_element(OUTFAULT$6, i);
459: }
460: }
461:
462: /**
463: * Gets the "ref" attribute
464: */
465: public javax.xml.namespace.QName getRef() {
466: synchronized (monitor()) {
467: check_orphaned();
468: org.apache.xmlbeans.SimpleValue target = null;
469: target = (org.apache.xmlbeans.SimpleValue) get_store()
470: .find_attribute_user(REF$8);
471: if (target == null) {
472: return null;
473: }
474: return target.getQNameValue();
475: }
476: }
477:
478: /**
479: * Gets (as xml) the "ref" attribute
480: */
481: public org.apache.xmlbeans.XmlQName xgetRef() {
482: synchronized (monitor()) {
483: check_orphaned();
484: org.apache.xmlbeans.XmlQName target = null;
485: target = (org.apache.xmlbeans.XmlQName) get_store()
486: .find_attribute_user(REF$8);
487: return target;
488: }
489: }
490:
491: /**
492: * Sets the "ref" attribute
493: */
494: public void setRef(javax.xml.namespace.QName ref) {
495: synchronized (monitor()) {
496: check_orphaned();
497: org.apache.xmlbeans.SimpleValue target = null;
498: target = (org.apache.xmlbeans.SimpleValue) get_store()
499: .find_attribute_user(REF$8);
500: if (target == null) {
501: target = (org.apache.xmlbeans.SimpleValue) get_store()
502: .add_attribute_user(REF$8);
503: }
504: target.setQNameValue(ref);
505: }
506: }
507:
508: /**
509: * Sets (as xml) the "ref" attribute
510: */
511: public void xsetRef(org.apache.xmlbeans.XmlQName ref) {
512: synchronized (monitor()) {
513: check_orphaned();
514: org.apache.xmlbeans.XmlQName target = null;
515: target = (org.apache.xmlbeans.XmlQName) get_store()
516: .find_attribute_user(REF$8);
517: if (target == null) {
518: target = (org.apache.xmlbeans.XmlQName) get_store()
519: .add_attribute_user(REF$8);
520: }
521: target.set(ref);
522: }
523: }
524: }
|