001: /*
002: * XML Type: elementDef
003: * Namespace: http://cbesb.bostechcorp.com/etl/dataSourceMap/1.0
004: * Java type: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef
005: *
006: * Automatically generated - do not modify.
007: */
008: package com.bostechcorp.cbesb.etl.dataSourceMap.x10.impl;
009:
010: /**
011: * An XML elementDef(@http://cbesb.bostechcorp.com/etl/dataSourceMap/1.0).
012: *
013: * This is a complex type.
014: */
015: public class ElementDefImpl extends
016: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
017: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef {
018:
019: public ElementDefImpl(org.apache.xmlbeans.SchemaType sType) {
020: super (sType);
021: }
022:
023: private static final javax.xml.namespace.QName ELEMENT$0 = new javax.xml.namespace.QName(
024: "http://cbesb.bostechcorp.com/etl/dataSourceMap/1.0",
025: "element");
026: private static final javax.xml.namespace.QName NAME$2 = new javax.xml.namespace.QName(
027: "", "name");
028: private static final javax.xml.namespace.QName TYPE$4 = new javax.xml.namespace.QName(
029: "", "type");
030: private static final javax.xml.namespace.QName MAP$6 = new javax.xml.namespace.QName(
031: "", "map");
032: private static final javax.xml.namespace.QName CHECKFLAG$8 = new javax.xml.namespace.QName(
033: "", "checkFlag");
034: private static final javax.xml.namespace.QName ISPK$10 = new javax.xml.namespace.QName(
035: "", "isPK");
036: private static final javax.xml.namespace.QName REFERENCINGFK$12 = new javax.xml.namespace.QName(
037: "", "referencingFK");
038:
039: /**
040: * Gets array of all "element" elements
041: */
042: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef[] getElementArray() {
043: synchronized (monitor()) {
044: check_orphaned();
045: java.util.List targetList = new java.util.ArrayList();
046: get_store().find_all_element_users(ELEMENT$0, targetList);
047: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef[] result = new com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef[targetList
048: .size()];
049: targetList.toArray(result);
050: return result;
051: }
052: }
053:
054: /**
055: * Gets ith "element" element
056: */
057: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef getElementArray(
058: int i) {
059: synchronized (monitor()) {
060: check_orphaned();
061: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef target = null;
062: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef) get_store()
063: .find_element_user(ELEMENT$0, i);
064: if (target == null) {
065: throw new IndexOutOfBoundsException();
066: }
067: return target;
068: }
069: }
070:
071: /**
072: * Returns number of "element" element
073: */
074: public int sizeOfElementArray() {
075: synchronized (monitor()) {
076: check_orphaned();
077: return get_store().count_elements(ELEMENT$0);
078: }
079: }
080:
081: /**
082: * Sets array of all "element" element
083: */
084: public void setElementArray(
085: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef[] elementArray) {
086: synchronized (monitor()) {
087: check_orphaned();
088: arraySetterHelper(elementArray, ELEMENT$0);
089: }
090: }
091:
092: /**
093: * Sets ith "element" element
094: */
095: public void setElementArray(
096: int i,
097: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef element) {
098: synchronized (monitor()) {
099: check_orphaned();
100: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef target = null;
101: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef) get_store()
102: .find_element_user(ELEMENT$0, i);
103: if (target == null) {
104: throw new IndexOutOfBoundsException();
105: }
106: target.set(element);
107: }
108: }
109:
110: /**
111: * Inserts and returns a new empty value (as xml) as the ith "element" element
112: */
113: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef insertNewElement(
114: int i) {
115: synchronized (monitor()) {
116: check_orphaned();
117: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef target = null;
118: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef) get_store()
119: .insert_element_user(ELEMENT$0, i);
120: return target;
121: }
122: }
123:
124: /**
125: * Appends and returns a new empty value (as xml) as the last "element" element
126: */
127: public com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef addNewElement() {
128: synchronized (monitor()) {
129: check_orphaned();
130: com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef target = null;
131: target = (com.bostechcorp.cbesb.etl.dataSourceMap.x10.ElementDef) get_store()
132: .add_element_user(ELEMENT$0);
133: return target;
134: }
135: }
136:
137: /**
138: * Removes the ith "element" element
139: */
140: public void removeElement(int i) {
141: synchronized (monitor()) {
142: check_orphaned();
143: get_store().remove_element(ELEMENT$0, i);
144: }
145: }
146:
147: /**
148: * Gets the "name" attribute
149: */
150: public java.lang.String getName() {
151: synchronized (monitor()) {
152: check_orphaned();
153: org.apache.xmlbeans.SimpleValue target = null;
154: target = (org.apache.xmlbeans.SimpleValue) get_store()
155: .find_attribute_user(NAME$2);
156: if (target == null) {
157: return null;
158: }
159: return target.getStringValue();
160: }
161: }
162:
163: /**
164: * Gets (as xml) the "name" attribute
165: */
166: public org.apache.xmlbeans.XmlString xgetName() {
167: synchronized (monitor()) {
168: check_orphaned();
169: org.apache.xmlbeans.XmlString target = null;
170: target = (org.apache.xmlbeans.XmlString) get_store()
171: .find_attribute_user(NAME$2);
172: return target;
173: }
174: }
175:
176: /**
177: * Sets the "name" attribute
178: */
179: public void setName(java.lang.String name) {
180: synchronized (monitor()) {
181: check_orphaned();
182: org.apache.xmlbeans.SimpleValue target = null;
183: target = (org.apache.xmlbeans.SimpleValue) get_store()
184: .find_attribute_user(NAME$2);
185: if (target == null) {
186: target = (org.apache.xmlbeans.SimpleValue) get_store()
187: .add_attribute_user(NAME$2);
188: }
189: target.setStringValue(name);
190: }
191: }
192:
193: /**
194: * Sets (as xml) the "name" attribute
195: */
196: public void xsetName(org.apache.xmlbeans.XmlString name) {
197: synchronized (monitor()) {
198: check_orphaned();
199: org.apache.xmlbeans.XmlString target = null;
200: target = (org.apache.xmlbeans.XmlString) get_store()
201: .find_attribute_user(NAME$2);
202: if (target == null) {
203: target = (org.apache.xmlbeans.XmlString) get_store()
204: .add_attribute_user(NAME$2);
205: }
206: target.set(name);
207: }
208: }
209:
210: /**
211: * Gets the "type" attribute
212: */
213: public java.lang.String getType() {
214: synchronized (monitor()) {
215: check_orphaned();
216: org.apache.xmlbeans.SimpleValue target = null;
217: target = (org.apache.xmlbeans.SimpleValue) get_store()
218: .find_attribute_user(TYPE$4);
219: if (target == null) {
220: return null;
221: }
222: return target.getStringValue();
223: }
224: }
225:
226: /**
227: * Gets (as xml) the "type" attribute
228: */
229: public org.apache.xmlbeans.XmlString xgetType() {
230: synchronized (monitor()) {
231: check_orphaned();
232: org.apache.xmlbeans.XmlString target = null;
233: target = (org.apache.xmlbeans.XmlString) get_store()
234: .find_attribute_user(TYPE$4);
235: return target;
236: }
237: }
238:
239: /**
240: * Sets the "type" attribute
241: */
242: public void setType(java.lang.String type) {
243: synchronized (monitor()) {
244: check_orphaned();
245: org.apache.xmlbeans.SimpleValue target = null;
246: target = (org.apache.xmlbeans.SimpleValue) get_store()
247: .find_attribute_user(TYPE$4);
248: if (target == null) {
249: target = (org.apache.xmlbeans.SimpleValue) get_store()
250: .add_attribute_user(TYPE$4);
251: }
252: target.setStringValue(type);
253: }
254: }
255:
256: /**
257: * Sets (as xml) the "type" attribute
258: */
259: public void xsetType(org.apache.xmlbeans.XmlString type) {
260: synchronized (monitor()) {
261: check_orphaned();
262: org.apache.xmlbeans.XmlString target = null;
263: target = (org.apache.xmlbeans.XmlString) get_store()
264: .find_attribute_user(TYPE$4);
265: if (target == null) {
266: target = (org.apache.xmlbeans.XmlString) get_store()
267: .add_attribute_user(TYPE$4);
268: }
269: target.set(type);
270: }
271: }
272:
273: /**
274: * Gets the "map" attribute
275: */
276: public java.lang.String getMap() {
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(MAP$6);
282: if (target == null) {
283: return null;
284: }
285: return target.getStringValue();
286: }
287: }
288:
289: /**
290: * Gets (as xml) the "map" attribute
291: */
292: public org.apache.xmlbeans.XmlString xgetMap() {
293: synchronized (monitor()) {
294: check_orphaned();
295: org.apache.xmlbeans.XmlString target = null;
296: target = (org.apache.xmlbeans.XmlString) get_store()
297: .find_attribute_user(MAP$6);
298: return target;
299: }
300: }
301:
302: /**
303: * True if has "map" attribute
304: */
305: public boolean isSetMap() {
306: synchronized (monitor()) {
307: check_orphaned();
308: return get_store().find_attribute_user(MAP$6) != null;
309: }
310: }
311:
312: /**
313: * Sets the "map" attribute
314: */
315: public void setMap(java.lang.String map) {
316: synchronized (monitor()) {
317: check_orphaned();
318: org.apache.xmlbeans.SimpleValue target = null;
319: target = (org.apache.xmlbeans.SimpleValue) get_store()
320: .find_attribute_user(MAP$6);
321: if (target == null) {
322: target = (org.apache.xmlbeans.SimpleValue) get_store()
323: .add_attribute_user(MAP$6);
324: }
325: target.setStringValue(map);
326: }
327: }
328:
329: /**
330: * Sets (as xml) the "map" attribute
331: */
332: public void xsetMap(org.apache.xmlbeans.XmlString map) {
333: synchronized (monitor()) {
334: check_orphaned();
335: org.apache.xmlbeans.XmlString target = null;
336: target = (org.apache.xmlbeans.XmlString) get_store()
337: .find_attribute_user(MAP$6);
338: if (target == null) {
339: target = (org.apache.xmlbeans.XmlString) get_store()
340: .add_attribute_user(MAP$6);
341: }
342: target.set(map);
343: }
344: }
345:
346: /**
347: * Unsets the "map" attribute
348: */
349: public void unsetMap() {
350: synchronized (monitor()) {
351: check_orphaned();
352: get_store().remove_attribute(MAP$6);
353: }
354: }
355:
356: /**
357: * Gets the "checkFlag" attribute
358: */
359: public boolean getCheckFlag() {
360: synchronized (monitor()) {
361: check_orphaned();
362: org.apache.xmlbeans.SimpleValue target = null;
363: target = (org.apache.xmlbeans.SimpleValue) get_store()
364: .find_attribute_user(CHECKFLAG$8);
365: if (target == null) {
366: return false;
367: }
368: return target.getBooleanValue();
369: }
370: }
371:
372: /**
373: * Gets (as xml) the "checkFlag" attribute
374: */
375: public org.apache.xmlbeans.XmlBoolean xgetCheckFlag() {
376: synchronized (monitor()) {
377: check_orphaned();
378: org.apache.xmlbeans.XmlBoolean target = null;
379: target = (org.apache.xmlbeans.XmlBoolean) get_store()
380: .find_attribute_user(CHECKFLAG$8);
381: return target;
382: }
383: }
384:
385: /**
386: * True if has "checkFlag" attribute
387: */
388: public boolean isSetCheckFlag() {
389: synchronized (monitor()) {
390: check_orphaned();
391: return get_store().find_attribute_user(CHECKFLAG$8) != null;
392: }
393: }
394:
395: /**
396: * Sets the "checkFlag" attribute
397: */
398: public void setCheckFlag(boolean checkFlag) {
399: synchronized (monitor()) {
400: check_orphaned();
401: org.apache.xmlbeans.SimpleValue target = null;
402: target = (org.apache.xmlbeans.SimpleValue) get_store()
403: .find_attribute_user(CHECKFLAG$8);
404: if (target == null) {
405: target = (org.apache.xmlbeans.SimpleValue) get_store()
406: .add_attribute_user(CHECKFLAG$8);
407: }
408: target.setBooleanValue(checkFlag);
409: }
410: }
411:
412: /**
413: * Sets (as xml) the "checkFlag" attribute
414: */
415: public void xsetCheckFlag(org.apache.xmlbeans.XmlBoolean checkFlag) {
416: synchronized (monitor()) {
417: check_orphaned();
418: org.apache.xmlbeans.XmlBoolean target = null;
419: target = (org.apache.xmlbeans.XmlBoolean) get_store()
420: .find_attribute_user(CHECKFLAG$8);
421: if (target == null) {
422: target = (org.apache.xmlbeans.XmlBoolean) get_store()
423: .add_attribute_user(CHECKFLAG$8);
424: }
425: target.set(checkFlag);
426: }
427: }
428:
429: /**
430: * Unsets the "checkFlag" attribute
431: */
432: public void unsetCheckFlag() {
433: synchronized (monitor()) {
434: check_orphaned();
435: get_store().remove_attribute(CHECKFLAG$8);
436: }
437: }
438:
439: /**
440: * Gets the "isPK" attribute
441: */
442: public boolean getIsPK() {
443: synchronized (monitor()) {
444: check_orphaned();
445: org.apache.xmlbeans.SimpleValue target = null;
446: target = (org.apache.xmlbeans.SimpleValue) get_store()
447: .find_attribute_user(ISPK$10);
448: if (target == null) {
449: return false;
450: }
451: return target.getBooleanValue();
452: }
453: }
454:
455: /**
456: * Gets (as xml) the "isPK" attribute
457: */
458: public org.apache.xmlbeans.XmlBoolean xgetIsPK() {
459: synchronized (monitor()) {
460: check_orphaned();
461: org.apache.xmlbeans.XmlBoolean target = null;
462: target = (org.apache.xmlbeans.XmlBoolean) get_store()
463: .find_attribute_user(ISPK$10);
464: return target;
465: }
466: }
467:
468: /**
469: * True if has "isPK" attribute
470: */
471: public boolean isSetIsPK() {
472: synchronized (monitor()) {
473: check_orphaned();
474: return get_store().find_attribute_user(ISPK$10) != null;
475: }
476: }
477:
478: /**
479: * Sets the "isPK" attribute
480: */
481: public void setIsPK(boolean isPK) {
482: synchronized (monitor()) {
483: check_orphaned();
484: org.apache.xmlbeans.SimpleValue target = null;
485: target = (org.apache.xmlbeans.SimpleValue) get_store()
486: .find_attribute_user(ISPK$10);
487: if (target == null) {
488: target = (org.apache.xmlbeans.SimpleValue) get_store()
489: .add_attribute_user(ISPK$10);
490: }
491: target.setBooleanValue(isPK);
492: }
493: }
494:
495: /**
496: * Sets (as xml) the "isPK" attribute
497: */
498: public void xsetIsPK(org.apache.xmlbeans.XmlBoolean isPK) {
499: synchronized (monitor()) {
500: check_orphaned();
501: org.apache.xmlbeans.XmlBoolean target = null;
502: target = (org.apache.xmlbeans.XmlBoolean) get_store()
503: .find_attribute_user(ISPK$10);
504: if (target == null) {
505: target = (org.apache.xmlbeans.XmlBoolean) get_store()
506: .add_attribute_user(ISPK$10);
507: }
508: target.set(isPK);
509: }
510: }
511:
512: /**
513: * Unsets the "isPK" attribute
514: */
515: public void unsetIsPK() {
516: synchronized (monitor()) {
517: check_orphaned();
518: get_store().remove_attribute(ISPK$10);
519: }
520: }
521:
522: /**
523: * Gets the "referencingFK" attribute
524: */
525: public java.lang.String getReferencingFK() {
526: synchronized (monitor()) {
527: check_orphaned();
528: org.apache.xmlbeans.SimpleValue target = null;
529: target = (org.apache.xmlbeans.SimpleValue) get_store()
530: .find_attribute_user(REFERENCINGFK$12);
531: if (target == null) {
532: return null;
533: }
534: return target.getStringValue();
535: }
536: }
537:
538: /**
539: * Gets (as xml) the "referencingFK" attribute
540: */
541: public org.apache.xmlbeans.XmlString xgetReferencingFK() {
542: synchronized (monitor()) {
543: check_orphaned();
544: org.apache.xmlbeans.XmlString target = null;
545: target = (org.apache.xmlbeans.XmlString) get_store()
546: .find_attribute_user(REFERENCINGFK$12);
547: return target;
548: }
549: }
550:
551: /**
552: * True if has "referencingFK" attribute
553: */
554: public boolean isSetReferencingFK() {
555: synchronized (monitor()) {
556: check_orphaned();
557: return get_store().find_attribute_user(REFERENCINGFK$12) != null;
558: }
559: }
560:
561: /**
562: * Sets the "referencingFK" attribute
563: */
564: public void setReferencingFK(java.lang.String referencingFK) {
565: synchronized (monitor()) {
566: check_orphaned();
567: org.apache.xmlbeans.SimpleValue target = null;
568: target = (org.apache.xmlbeans.SimpleValue) get_store()
569: .find_attribute_user(REFERENCINGFK$12);
570: if (target == null) {
571: target = (org.apache.xmlbeans.SimpleValue) get_store()
572: .add_attribute_user(REFERENCINGFK$12);
573: }
574: target.setStringValue(referencingFK);
575: }
576: }
577:
578: /**
579: * Sets (as xml) the "referencingFK" attribute
580: */
581: public void xsetReferencingFK(
582: org.apache.xmlbeans.XmlString referencingFK) {
583: synchronized (monitor()) {
584: check_orphaned();
585: org.apache.xmlbeans.XmlString target = null;
586: target = (org.apache.xmlbeans.XmlString) get_store()
587: .find_attribute_user(REFERENCINGFK$12);
588: if (target == null) {
589: target = (org.apache.xmlbeans.XmlString) get_store()
590: .add_attribute_user(REFERENCINGFK$12);
591: }
592: target.set(referencingFK);
593: }
594: }
595:
596: /**
597: * Unsets the "referencingFK" attribute
598: */
599: public void unsetReferencingFK() {
600: synchronized (monitor()) {
601: check_orphaned();
602: get_store().remove_attribute(REFERENCINGFK$12);
603: }
604: }
605: }
|