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