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