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