001: /*
002: * XML Type: operationDef
003: * Namespace: http://cbesb.bostechcorp.com/trn/1.0
004: * Java type: com.bostechcorp.cbesb.trn.x10.OperationDef
005: *
006: * Automatically generated - do not modify.
007: */
008: package com.bostechcorp.cbesb.trn.x10.impl;
009:
010: /**
011: * An XML operationDef(@http://cbesb.bostechcorp.com/trn/1.0).
012: *
013: * This is a complex type.
014: */
015: public class OperationDefImpl extends
016: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
017: com.bostechcorp.cbesb.trn.x10.OperationDef {
018:
019: public OperationDefImpl(org.apache.xmlbeans.SchemaType sType) {
020: super (sType);
021: }
022:
023: private static final javax.xml.namespace.QName PARAMETERS$0 = new javax.xml.namespace.QName(
024: "http://cbesb.bostechcorp.com/trn/1.0", "parameters");
025: private static final javax.xml.namespace.QName OPERATIONLIST$2 = new javax.xml.namespace.QName(
026: "http://cbesb.bostechcorp.com/trn/1.0", "operationList");
027: private static final javax.xml.namespace.QName TYPE$4 = new javax.xml.namespace.QName(
028: "", "type");
029: private static final javax.xml.namespace.QName CLASS1$6 = new javax.xml.namespace.QName(
030: "", "class");
031: private static final javax.xml.namespace.QName METHOD$8 = new javax.xml.namespace.QName(
032: "", "method");
033: private static final javax.xml.namespace.QName NAME$10 = new javax.xml.namespace.QName(
034: "", "name");
035:
036: /**
037: * Gets the "parameters" element
038: */
039: public com.bostechcorp.cbesb.trn.x10.ParamDef getParameters() {
040: synchronized (monitor()) {
041: check_orphaned();
042: com.bostechcorp.cbesb.trn.x10.ParamDef target = null;
043: target = (com.bostechcorp.cbesb.trn.x10.ParamDef) get_store()
044: .find_element_user(PARAMETERS$0, 0);
045: if (target == null) {
046: return null;
047: }
048: return target;
049: }
050: }
051:
052: /**
053: * True if has "parameters" element
054: */
055: public boolean isSetParameters() {
056: synchronized (monitor()) {
057: check_orphaned();
058: return get_store().count_elements(PARAMETERS$0) != 0;
059: }
060: }
061:
062: /**
063: * Sets the "parameters" element
064: */
065: public void setParameters(
066: com.bostechcorp.cbesb.trn.x10.ParamDef parameters) {
067: synchronized (monitor()) {
068: check_orphaned();
069: com.bostechcorp.cbesb.trn.x10.ParamDef target = null;
070: target = (com.bostechcorp.cbesb.trn.x10.ParamDef) get_store()
071: .find_element_user(PARAMETERS$0, 0);
072: if (target == null) {
073: target = (com.bostechcorp.cbesb.trn.x10.ParamDef) get_store()
074: .add_element_user(PARAMETERS$0);
075: }
076: target.set(parameters);
077: }
078: }
079:
080: /**
081: * Appends and returns a new empty "parameters" element
082: */
083: public com.bostechcorp.cbesb.trn.x10.ParamDef addNewParameters() {
084: synchronized (monitor()) {
085: check_orphaned();
086: com.bostechcorp.cbesb.trn.x10.ParamDef target = null;
087: target = (com.bostechcorp.cbesb.trn.x10.ParamDef) get_store()
088: .add_element_user(PARAMETERS$0);
089: return target;
090: }
091: }
092:
093: /**
094: * Unsets the "parameters" element
095: */
096: public void unsetParameters() {
097: synchronized (monitor()) {
098: check_orphaned();
099: get_store().remove_element(PARAMETERS$0, 0);
100: }
101: }
102:
103: /**
104: * Gets the "operationList" element
105: */
106: public com.bostechcorp.cbesb.trn.x10.OperationListDef getOperationList() {
107: synchronized (monitor()) {
108: check_orphaned();
109: com.bostechcorp.cbesb.trn.x10.OperationListDef target = null;
110: target = (com.bostechcorp.cbesb.trn.x10.OperationListDef) get_store()
111: .find_element_user(OPERATIONLIST$2, 0);
112: if (target == null) {
113: return null;
114: }
115: return target;
116: }
117: }
118:
119: /**
120: * True if has "operationList" element
121: */
122: public boolean isSetOperationList() {
123: synchronized (monitor()) {
124: check_orphaned();
125: return get_store().count_elements(OPERATIONLIST$2) != 0;
126: }
127: }
128:
129: /**
130: * Sets the "operationList" element
131: */
132: public void setOperationList(
133: com.bostechcorp.cbesb.trn.x10.OperationListDef operationList) {
134: synchronized (monitor()) {
135: check_orphaned();
136: com.bostechcorp.cbesb.trn.x10.OperationListDef target = null;
137: target = (com.bostechcorp.cbesb.trn.x10.OperationListDef) get_store()
138: .find_element_user(OPERATIONLIST$2, 0);
139: if (target == null) {
140: target = (com.bostechcorp.cbesb.trn.x10.OperationListDef) get_store()
141: .add_element_user(OPERATIONLIST$2);
142: }
143: target.set(operationList);
144: }
145: }
146:
147: /**
148: * Appends and returns a new empty "operationList" element
149: */
150: public com.bostechcorp.cbesb.trn.x10.OperationListDef addNewOperationList() {
151: synchronized (monitor()) {
152: check_orphaned();
153: com.bostechcorp.cbesb.trn.x10.OperationListDef target = null;
154: target = (com.bostechcorp.cbesb.trn.x10.OperationListDef) get_store()
155: .add_element_user(OPERATIONLIST$2);
156: return target;
157: }
158: }
159:
160: /**
161: * Unsets the "operationList" element
162: */
163: public void unsetOperationList() {
164: synchronized (monitor()) {
165: check_orphaned();
166: get_store().remove_element(OPERATIONLIST$2, 0);
167: }
168: }
169:
170: /**
171: * Gets the "type" attribute
172: */
173: public java.lang.String getType() {
174: synchronized (monitor()) {
175: check_orphaned();
176: org.apache.xmlbeans.SimpleValue target = null;
177: target = (org.apache.xmlbeans.SimpleValue) get_store()
178: .find_attribute_user(TYPE$4);
179: if (target == null) {
180: return null;
181: }
182: return target.getStringValue();
183: }
184: }
185:
186: /**
187: * Gets (as xml) the "type" attribute
188: */
189: public org.apache.xmlbeans.XmlString xgetType() {
190: synchronized (monitor()) {
191: check_orphaned();
192: org.apache.xmlbeans.XmlString target = null;
193: target = (org.apache.xmlbeans.XmlString) get_store()
194: .find_attribute_user(TYPE$4);
195: return target;
196: }
197: }
198:
199: /**
200: * Sets the "type" attribute
201: */
202: public void setType(java.lang.String type) {
203: synchronized (monitor()) {
204: check_orphaned();
205: org.apache.xmlbeans.SimpleValue target = null;
206: target = (org.apache.xmlbeans.SimpleValue) get_store()
207: .find_attribute_user(TYPE$4);
208: if (target == null) {
209: target = (org.apache.xmlbeans.SimpleValue) get_store()
210: .add_attribute_user(TYPE$4);
211: }
212: target.setStringValue(type);
213: }
214: }
215:
216: /**
217: * Sets (as xml) the "type" attribute
218: */
219: public void xsetType(org.apache.xmlbeans.XmlString type) {
220: synchronized (monitor()) {
221: check_orphaned();
222: org.apache.xmlbeans.XmlString target = null;
223: target = (org.apache.xmlbeans.XmlString) get_store()
224: .find_attribute_user(TYPE$4);
225: if (target == null) {
226: target = (org.apache.xmlbeans.XmlString) get_store()
227: .add_attribute_user(TYPE$4);
228: }
229: target.set(type);
230: }
231: }
232:
233: /**
234: * Gets the "class" attribute
235: */
236: public java.lang.String getClass1() {
237: synchronized (monitor()) {
238: check_orphaned();
239: org.apache.xmlbeans.SimpleValue target = null;
240: target = (org.apache.xmlbeans.SimpleValue) get_store()
241: .find_attribute_user(CLASS1$6);
242: if (target == null) {
243: return null;
244: }
245: return target.getStringValue();
246: }
247: }
248:
249: /**
250: * Gets (as xml) the "class" attribute
251: */
252: public org.apache.xmlbeans.XmlString xgetClass1() {
253: synchronized (monitor()) {
254: check_orphaned();
255: org.apache.xmlbeans.XmlString target = null;
256: target = (org.apache.xmlbeans.XmlString) get_store()
257: .find_attribute_user(CLASS1$6);
258: return target;
259: }
260: }
261:
262: /**
263: * True if has "class" attribute
264: */
265: public boolean isSetClass1() {
266: synchronized (monitor()) {
267: check_orphaned();
268: return get_store().find_attribute_user(CLASS1$6) != null;
269: }
270: }
271:
272: /**
273: * Sets the "class" attribute
274: */
275: public void setClass1(java.lang.String class1) {
276: synchronized (monitor()) {
277: check_orphaned();
278: org.apache.xmlbeans.SimpleValue target = null;
279: target = (org.apache.xmlbeans.SimpleValue) get_store()
280: .find_attribute_user(CLASS1$6);
281: if (target == null) {
282: target = (org.apache.xmlbeans.SimpleValue) get_store()
283: .add_attribute_user(CLASS1$6);
284: }
285: target.setStringValue(class1);
286: }
287: }
288:
289: /**
290: * Sets (as xml) the "class" attribute
291: */
292: public void xsetClass1(org.apache.xmlbeans.XmlString class1) {
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(CLASS1$6);
298: if (target == null) {
299: target = (org.apache.xmlbeans.XmlString) get_store()
300: .add_attribute_user(CLASS1$6);
301: }
302: target.set(class1);
303: }
304: }
305:
306: /**
307: * Unsets the "class" attribute
308: */
309: public void unsetClass1() {
310: synchronized (monitor()) {
311: check_orphaned();
312: get_store().remove_attribute(CLASS1$6);
313: }
314: }
315:
316: /**
317: * Gets the "method" attribute
318: */
319: public java.lang.String getMethod() {
320: synchronized (monitor()) {
321: check_orphaned();
322: org.apache.xmlbeans.SimpleValue target = null;
323: target = (org.apache.xmlbeans.SimpleValue) get_store()
324: .find_attribute_user(METHOD$8);
325: if (target == null) {
326: return null;
327: }
328: return target.getStringValue();
329: }
330: }
331:
332: /**
333: * Gets (as xml) the "method" attribute
334: */
335: public org.apache.xmlbeans.XmlString xgetMethod() {
336: synchronized (monitor()) {
337: check_orphaned();
338: org.apache.xmlbeans.XmlString target = null;
339: target = (org.apache.xmlbeans.XmlString) get_store()
340: .find_attribute_user(METHOD$8);
341: return target;
342: }
343: }
344:
345: /**
346: * True if has "method" attribute
347: */
348: public boolean isSetMethod() {
349: synchronized (monitor()) {
350: check_orphaned();
351: return get_store().find_attribute_user(METHOD$8) != null;
352: }
353: }
354:
355: /**
356: * Sets the "method" attribute
357: */
358: public void setMethod(java.lang.String method) {
359: synchronized (monitor()) {
360: check_orphaned();
361: org.apache.xmlbeans.SimpleValue target = null;
362: target = (org.apache.xmlbeans.SimpleValue) get_store()
363: .find_attribute_user(METHOD$8);
364: if (target == null) {
365: target = (org.apache.xmlbeans.SimpleValue) get_store()
366: .add_attribute_user(METHOD$8);
367: }
368: target.setStringValue(method);
369: }
370: }
371:
372: /**
373: * Sets (as xml) the "method" attribute
374: */
375: public void xsetMethod(org.apache.xmlbeans.XmlString method) {
376: synchronized (monitor()) {
377: check_orphaned();
378: org.apache.xmlbeans.XmlString target = null;
379: target = (org.apache.xmlbeans.XmlString) get_store()
380: .find_attribute_user(METHOD$8);
381: if (target == null) {
382: target = (org.apache.xmlbeans.XmlString) get_store()
383: .add_attribute_user(METHOD$8);
384: }
385: target.set(method);
386: }
387: }
388:
389: /**
390: * Unsets the "method" attribute
391: */
392: public void unsetMethod() {
393: synchronized (monitor()) {
394: check_orphaned();
395: get_store().remove_attribute(METHOD$8);
396: }
397: }
398:
399: /**
400: * Gets the "name" attribute
401: */
402: public java.lang.String getName() {
403: synchronized (monitor()) {
404: check_orphaned();
405: org.apache.xmlbeans.SimpleValue target = null;
406: target = (org.apache.xmlbeans.SimpleValue) get_store()
407: .find_attribute_user(NAME$10);
408: if (target == null) {
409: return null;
410: }
411: return target.getStringValue();
412: }
413: }
414:
415: /**
416: * Gets (as xml) the "name" attribute
417: */
418: public org.apache.xmlbeans.XmlString xgetName() {
419: synchronized (monitor()) {
420: check_orphaned();
421: org.apache.xmlbeans.XmlString target = null;
422: target = (org.apache.xmlbeans.XmlString) get_store()
423: .find_attribute_user(NAME$10);
424: return target;
425: }
426: }
427:
428: /**
429: * True if has "name" attribute
430: */
431: public boolean isSetName() {
432: synchronized (monitor()) {
433: check_orphaned();
434: return get_store().find_attribute_user(NAME$10) != null;
435: }
436: }
437:
438: /**
439: * Sets the "name" attribute
440: */
441: public void setName(java.lang.String name) {
442: synchronized (monitor()) {
443: check_orphaned();
444: org.apache.xmlbeans.SimpleValue target = null;
445: target = (org.apache.xmlbeans.SimpleValue) get_store()
446: .find_attribute_user(NAME$10);
447: if (target == null) {
448: target = (org.apache.xmlbeans.SimpleValue) get_store()
449: .add_attribute_user(NAME$10);
450: }
451: target.setStringValue(name);
452: }
453: }
454:
455: /**
456: * Sets (as xml) the "name" attribute
457: */
458: public void xsetName(org.apache.xmlbeans.XmlString name) {
459: synchronized (monitor()) {
460: check_orphaned();
461: org.apache.xmlbeans.XmlString target = null;
462: target = (org.apache.xmlbeans.XmlString) get_store()
463: .find_attribute_user(NAME$10);
464: if (target == null) {
465: target = (org.apache.xmlbeans.XmlString) get_store()
466: .add_attribute_user(NAME$10);
467: }
468: target.set(name);
469: }
470: }
471:
472: /**
473: * Unsets the "name" attribute
474: */
475: public void unsetName() {
476: synchronized (monitor()) {
477: check_orphaned();
478: get_store().remove_attribute(NAME$10);
479: }
480: }
481: }
|