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