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