001: /*
002: * XML Type: transformerControlDef
003: * Namespace: http://cbesb.bostechcorp.com/trn/1.0
004: * Java type: com.bostechcorp.cbesb.trn.x10.TransformerControlDef
005: *
006: * Automatically generated - do not modify.
007: */
008: package com.bostechcorp.cbesb.trn.x10.impl;
009:
010: /**
011: * An XML transformerControlDef(@http://cbesb.bostechcorp.com/trn/1.0).
012: *
013: * This is a complex type.
014: */
015: public class TransformerControlDefImpl extends
016: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
017: com.bostechcorp.cbesb.trn.x10.TransformerControlDef {
018:
019: public TransformerControlDefImpl(
020: org.apache.xmlbeans.SchemaType sType) {
021: super (sType);
022: }
023:
024: private static final javax.xml.namespace.QName FORMATS$0 = new javax.xml.namespace.QName(
025: "http://cbesb.bostechcorp.com/trn/1.0", "formats");
026: private static final javax.xml.namespace.QName OPERATIONLIST$2 = new javax.xml.namespace.QName(
027: "http://cbesb.bostechcorp.com/trn/1.0", "operationList");
028:
029: /**
030: * Gets the "formats" element
031: */
032: public com.bostechcorp.cbesb.trn.x10.FormatsDef getFormats() {
033: synchronized (monitor()) {
034: check_orphaned();
035: com.bostechcorp.cbesb.trn.x10.FormatsDef target = null;
036: target = (com.bostechcorp.cbesb.trn.x10.FormatsDef) get_store()
037: .find_element_user(FORMATS$0, 0);
038: if (target == null) {
039: return null;
040: }
041: return target;
042: }
043: }
044:
045: /**
046: * Sets the "formats" element
047: */
048: public void setFormats(
049: com.bostechcorp.cbesb.trn.x10.FormatsDef formats) {
050: synchronized (monitor()) {
051: check_orphaned();
052: com.bostechcorp.cbesb.trn.x10.FormatsDef target = null;
053: target = (com.bostechcorp.cbesb.trn.x10.FormatsDef) get_store()
054: .find_element_user(FORMATS$0, 0);
055: if (target == null) {
056: target = (com.bostechcorp.cbesb.trn.x10.FormatsDef) get_store()
057: .add_element_user(FORMATS$0);
058: }
059: target.set(formats);
060: }
061: }
062:
063: /**
064: * Appends and returns a new empty "formats" element
065: */
066: public com.bostechcorp.cbesb.trn.x10.FormatsDef addNewFormats() {
067: synchronized (monitor()) {
068: check_orphaned();
069: com.bostechcorp.cbesb.trn.x10.FormatsDef target = null;
070: target = (com.bostechcorp.cbesb.trn.x10.FormatsDef) get_store()
071: .add_element_user(FORMATS$0);
072: return target;
073: }
074: }
075:
076: /**
077: * Gets the "operationList" element
078: */
079: public com.bostechcorp.cbesb.trn.x10.OperationListDef getOperationList() {
080: synchronized (monitor()) {
081: check_orphaned();
082: com.bostechcorp.cbesb.trn.x10.OperationListDef target = null;
083: target = (com.bostechcorp.cbesb.trn.x10.OperationListDef) get_store()
084: .find_element_user(OPERATIONLIST$2, 0);
085: if (target == null) {
086: return null;
087: }
088: return target;
089: }
090: }
091:
092: /**
093: * Sets the "operationList" element
094: */
095: public void setOperationList(
096: com.bostechcorp.cbesb.trn.x10.OperationListDef operationList) {
097: synchronized (monitor()) {
098: check_orphaned();
099: com.bostechcorp.cbesb.trn.x10.OperationListDef target = null;
100: target = (com.bostechcorp.cbesb.trn.x10.OperationListDef) get_store()
101: .find_element_user(OPERATIONLIST$2, 0);
102: if (target == null) {
103: target = (com.bostechcorp.cbesb.trn.x10.OperationListDef) get_store()
104: .add_element_user(OPERATIONLIST$2);
105: }
106: target.set(operationList);
107: }
108: }
109:
110: /**
111: * Appends and returns a new empty "operationList" element
112: */
113: public com.bostechcorp.cbesb.trn.x10.OperationListDef addNewOperationList() {
114: synchronized (monitor()) {
115: check_orphaned();
116: com.bostechcorp.cbesb.trn.x10.OperationListDef target = null;
117: target = (com.bostechcorp.cbesb.trn.x10.OperationListDef) get_store()
118: .add_element_user(OPERATIONLIST$2);
119: return target;
120: }
121: }
122: }
|