001: /*
002: * XML Type: whereClauseDef
003: * Namespace: http://cbesb.bostechcorp.com/etl/dataSourceMap/1.0
004: * Java type: com.bostechcorp.cbesb.etl.dataSourceMap.x10.WhereClauseDef
005: *
006: * Automatically generated - do not modify.
007: */
008: package com.bostechcorp.cbesb.etl.dataSourceMap.x10.impl;
009:
010: /**
011: * An XML whereClauseDef(@http://cbesb.bostechcorp.com/etl/dataSourceMap/1.0).
012: *
013: * This is a complex type.
014: */
015: public class WhereClauseDefImpl extends
016: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
017: com.bostechcorp.cbesb.etl.dataSourceMap.x10.WhereClauseDef {
018:
019: public WhereClauseDefImpl(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:
033: /**
034: * Gets array of all "compare" elements
035: */
036: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef[] getCompareArray() {
037: synchronized (monitor()) {
038: check_orphaned();
039: java.util.List targetList = new java.util.ArrayList();
040: get_store().find_all_element_users(COMPARE$0, targetList);
041: com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef[] result = new com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef[targetList
042: .size()];
043: targetList.toArray(result);
044: return result;
045: }
046: }
047:
048: /**
049: * Gets ith "compare" element
050: */
051: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef getCompareArray(
052: int i) {
053: synchronized (monitor()) {
054: check_orphaned();
055: com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef target = null;
056: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef) get_store()
057: .find_element_user(COMPARE$0, i);
058: if (target == null) {
059: throw new IndexOutOfBoundsException();
060: }
061: return target;
062: }
063: }
064:
065: /**
066: * Returns number of "compare" element
067: */
068: public int sizeOfCompareArray() {
069: synchronized (monitor()) {
070: check_orphaned();
071: return get_store().count_elements(COMPARE$0);
072: }
073: }
074:
075: /**
076: * Sets array of all "compare" element
077: */
078: public void setCompareArray(
079: com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef[] compareArray) {
080: synchronized (monitor()) {
081: check_orphaned();
082: arraySetterHelper(compareArray, COMPARE$0);
083: }
084: }
085:
086: /**
087: * Sets ith "compare" element
088: */
089: public void setCompareArray(
090: int i,
091: com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef compare) {
092: synchronized (monitor()) {
093: check_orphaned();
094: com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef target = null;
095: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef) get_store()
096: .find_element_user(COMPARE$0, i);
097: if (target == null) {
098: throw new IndexOutOfBoundsException();
099: }
100: target.set(compare);
101: }
102: }
103:
104: /**
105: * Inserts and returns a new empty value (as xml) as the ith "compare" element
106: */
107: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef insertNewCompare(
108: int i) {
109: synchronized (monitor()) {
110: check_orphaned();
111: com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef target = null;
112: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef) get_store()
113: .insert_element_user(COMPARE$0, i);
114: return target;
115: }
116: }
117:
118: /**
119: * Appends and returns a new empty value (as xml) as the last "compare" element
120: */
121: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef addNewCompare() {
122: synchronized (monitor()) {
123: check_orphaned();
124: com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef target = null;
125: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.CompareDef) get_store()
126: .add_element_user(COMPARE$0);
127: return target;
128: }
129: }
130:
131: /**
132: * Removes the ith "compare" element
133: */
134: public void removeCompare(int i) {
135: synchronized (monitor()) {
136: check_orphaned();
137: get_store().remove_element(COMPARE$0, i);
138: }
139: }
140:
141: /**
142: * Gets array of all "parentheses" elements
143: */
144: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef[] getParenthesesArray() {
145: synchronized (monitor()) {
146: check_orphaned();
147: java.util.List targetList = new java.util.ArrayList();
148: get_store().find_all_element_users(PARENTHESES$2,
149: targetList);
150: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef[] result = new com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef[targetList
151: .size()];
152: targetList.toArray(result);
153: return result;
154: }
155: }
156:
157: /**
158: * Gets ith "parentheses" element
159: */
160: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef getParenthesesArray(
161: int i) {
162: synchronized (monitor()) {
163: check_orphaned();
164: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef target = null;
165: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef) get_store()
166: .find_element_user(PARENTHESES$2, i);
167: if (target == null) {
168: throw new IndexOutOfBoundsException();
169: }
170: return target;
171: }
172: }
173:
174: /**
175: * Returns number of "parentheses" element
176: */
177: public int sizeOfParenthesesArray() {
178: synchronized (monitor()) {
179: check_orphaned();
180: return get_store().count_elements(PARENTHESES$2);
181: }
182: }
183:
184: /**
185: * Sets array of all "parentheses" element
186: */
187: public void setParenthesesArray(
188: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef[] parenthesesArray) {
189: synchronized (monitor()) {
190: check_orphaned();
191: arraySetterHelper(parenthesesArray, PARENTHESES$2);
192: }
193: }
194:
195: /**
196: * Sets ith "parentheses" element
197: */
198: public void setParenthesesArray(
199: int i,
200: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef parentheses) {
201: synchronized (monitor()) {
202: check_orphaned();
203: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef target = null;
204: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef) get_store()
205: .find_element_user(PARENTHESES$2, i);
206: if (target == null) {
207: throw new IndexOutOfBoundsException();
208: }
209: target.set(parentheses);
210: }
211: }
212:
213: /**
214: * Inserts and returns a new empty value (as xml) as the ith "parentheses" element
215: */
216: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef insertNewParentheses(
217: int i) {
218: synchronized (monitor()) {
219: check_orphaned();
220: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef target = null;
221: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef) get_store()
222: .insert_element_user(PARENTHESES$2, i);
223: return target;
224: }
225: }
226:
227: /**
228: * Appends and returns a new empty value (as xml) as the last "parentheses" element
229: */
230: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef addNewParentheses() {
231: synchronized (monitor()) {
232: check_orphaned();
233: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef target = null;
234: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.ParenthesesDef) get_store()
235: .add_element_user(PARENTHESES$2);
236: return target;
237: }
238: }
239:
240: /**
241: * Removes the ith "parentheses" element
242: */
243: public void removeParentheses(int i) {
244: synchronized (monitor()) {
245: check_orphaned();
246: get_store().remove_element(PARENTHESES$2, i);
247: }
248: }
249:
250: /**
251: * Gets the "table" element
252: */
253: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.TableDef getTable() {
254: synchronized (monitor()) {
255: check_orphaned();
256: com.bostechcorp.cbesb.etl.dataSourceMap.x10.TableDef target = null;
257: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.TableDef) get_store()
258: .find_element_user(TABLE$4, 0);
259: if (target == null) {
260: return null;
261: }
262: return target;
263: }
264: }
265:
266: /**
267: * True if has "table" element
268: */
269: public boolean isSetTable() {
270: synchronized (monitor()) {
271: check_orphaned();
272: return get_store().count_elements(TABLE$4) != 0;
273: }
274: }
275:
276: /**
277: * Sets the "table" element
278: */
279: public void setTable(
280: com.bostechcorp.cbesb.etl.dataSourceMap.x10.TableDef table) {
281: synchronized (monitor()) {
282: check_orphaned();
283: com.bostechcorp.cbesb.etl.dataSourceMap.x10.TableDef target = null;
284: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.TableDef) get_store()
285: .find_element_user(TABLE$4, 0);
286: if (target == null) {
287: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.TableDef) get_store()
288: .add_element_user(TABLE$4);
289: }
290: target.set(table);
291: }
292: }
293:
294: /**
295: * Appends and returns a new empty "table" element
296: */
297: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.TableDef addNewTable() {
298: synchronized (monitor()) {
299: check_orphaned();
300: com.bostechcorp.cbesb.etl.dataSourceMap.x10.TableDef target = null;
301: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.TableDef) get_store()
302: .add_element_user(TABLE$4);
303: return target;
304: }
305: }
306:
307: /**
308: * Unsets the "table" element
309: */
310: public void unsetTable() {
311: synchronized (monitor()) {
312: check_orphaned();
313: get_store().remove_element(TABLE$4, 0);
314: }
315: }
316: }
|