001: /*
002: * XML Type: formatDef
003: * Namespace: http://cbesb.bostechcorp.com/trn/1.0
004: * Java type: com.bostechcorp.cbesb.trn.x10.FormatDef
005: *
006: * Automatically generated - do not modify.
007: */
008: package com.bostechcorp.cbesb.trn.x10.impl;
009:
010: /**
011: * An XML formatDef(@http://cbesb.bostechcorp.com/trn/1.0).
012: *
013: * This is a complex type.
014: */
015: public class FormatDefImpl extends
016: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
017: com.bostechcorp.cbesb.trn.x10.FormatDef {
018:
019: public FormatDefImpl(org.apache.xmlbeans.SchemaType sType) {
020: super (sType);
021: }
022:
023: private static final javax.xml.namespace.QName FORMAT$0 = new javax.xml.namespace.QName(
024: "", "format");
025: private static final javax.xml.namespace.QName NAME$2 = new javax.xml.namespace.QName(
026: "", "name");
027: private static final javax.xml.namespace.QName ROOT$4 = new javax.xml.namespace.QName(
028: "", "root");
029:
030: /**
031: * Gets the "format" attribute
032: */
033: public java.lang.String getFormat() {
034: synchronized (monitor()) {
035: check_orphaned();
036: org.apache.xmlbeans.SimpleValue target = null;
037: target = (org.apache.xmlbeans.SimpleValue) get_store()
038: .find_attribute_user(FORMAT$0);
039: if (target == null) {
040: return null;
041: }
042: return target.getStringValue();
043: }
044: }
045:
046: /**
047: * Gets (as xml) the "format" attribute
048: */
049: public org.apache.xmlbeans.XmlString xgetFormat() {
050: synchronized (monitor()) {
051: check_orphaned();
052: org.apache.xmlbeans.XmlString target = null;
053: target = (org.apache.xmlbeans.XmlString) get_store()
054: .find_attribute_user(FORMAT$0);
055: return target;
056: }
057: }
058:
059: /**
060: * True if has "format" attribute
061: */
062: public boolean isSetFormat() {
063: synchronized (monitor()) {
064: check_orphaned();
065: return get_store().find_attribute_user(FORMAT$0) != null;
066: }
067: }
068:
069: /**
070: * Sets the "format" attribute
071: */
072: public void setFormat(java.lang.String format) {
073: synchronized (monitor()) {
074: check_orphaned();
075: org.apache.xmlbeans.SimpleValue target = null;
076: target = (org.apache.xmlbeans.SimpleValue) get_store()
077: .find_attribute_user(FORMAT$0);
078: if (target == null) {
079: target = (org.apache.xmlbeans.SimpleValue) get_store()
080: .add_attribute_user(FORMAT$0);
081: }
082: target.setStringValue(format);
083: }
084: }
085:
086: /**
087: * Sets (as xml) the "format" attribute
088: */
089: public void xsetFormat(org.apache.xmlbeans.XmlString format) {
090: synchronized (monitor()) {
091: check_orphaned();
092: org.apache.xmlbeans.XmlString target = null;
093: target = (org.apache.xmlbeans.XmlString) get_store()
094: .find_attribute_user(FORMAT$0);
095: if (target == null) {
096: target = (org.apache.xmlbeans.XmlString) get_store()
097: .add_attribute_user(FORMAT$0);
098: }
099: target.set(format);
100: }
101: }
102:
103: /**
104: * Unsets the "format" attribute
105: */
106: public void unsetFormat() {
107: synchronized (monitor()) {
108: check_orphaned();
109: get_store().remove_attribute(FORMAT$0);
110: }
111: }
112:
113: /**
114: * Gets the "name" attribute
115: */
116: public java.lang.String getName() {
117: synchronized (monitor()) {
118: check_orphaned();
119: org.apache.xmlbeans.SimpleValue target = null;
120: target = (org.apache.xmlbeans.SimpleValue) get_store()
121: .find_attribute_user(NAME$2);
122: if (target == null) {
123: return null;
124: }
125: return target.getStringValue();
126: }
127: }
128:
129: /**
130: * Gets (as xml) the "name" attribute
131: */
132: public org.apache.xmlbeans.XmlString xgetName() {
133: synchronized (monitor()) {
134: check_orphaned();
135: org.apache.xmlbeans.XmlString target = null;
136: target = (org.apache.xmlbeans.XmlString) get_store()
137: .find_attribute_user(NAME$2);
138: return target;
139: }
140: }
141:
142: /**
143: * True if has "name" attribute
144: */
145: public boolean isSetName() {
146: synchronized (monitor()) {
147: check_orphaned();
148: return get_store().find_attribute_user(NAME$2) != null;
149: }
150: }
151:
152: /**
153: * Sets the "name" attribute
154: */
155: public void setName(java.lang.String name) {
156: synchronized (monitor()) {
157: check_orphaned();
158: org.apache.xmlbeans.SimpleValue target = null;
159: target = (org.apache.xmlbeans.SimpleValue) get_store()
160: .find_attribute_user(NAME$2);
161: if (target == null) {
162: target = (org.apache.xmlbeans.SimpleValue) get_store()
163: .add_attribute_user(NAME$2);
164: }
165: target.setStringValue(name);
166: }
167: }
168:
169: /**
170: * Sets (as xml) the "name" attribute
171: */
172: public void xsetName(org.apache.xmlbeans.XmlString name) {
173: synchronized (monitor()) {
174: check_orphaned();
175: org.apache.xmlbeans.XmlString target = null;
176: target = (org.apache.xmlbeans.XmlString) get_store()
177: .find_attribute_user(NAME$2);
178: if (target == null) {
179: target = (org.apache.xmlbeans.XmlString) get_store()
180: .add_attribute_user(NAME$2);
181: }
182: target.set(name);
183: }
184: }
185:
186: /**
187: * Unsets the "name" attribute
188: */
189: public void unsetName() {
190: synchronized (monitor()) {
191: check_orphaned();
192: get_store().remove_attribute(NAME$2);
193: }
194: }
195:
196: /**
197: * Gets the "root" attribute
198: */
199: public java.lang.String getRoot() {
200: synchronized (monitor()) {
201: check_orphaned();
202: org.apache.xmlbeans.SimpleValue target = null;
203: target = (org.apache.xmlbeans.SimpleValue) get_store()
204: .find_attribute_user(ROOT$4);
205: if (target == null) {
206: return null;
207: }
208: return target.getStringValue();
209: }
210: }
211:
212: /**
213: * Gets (as xml) the "root" attribute
214: */
215: public org.apache.xmlbeans.XmlString xgetRoot() {
216: synchronized (monitor()) {
217: check_orphaned();
218: org.apache.xmlbeans.XmlString target = null;
219: target = (org.apache.xmlbeans.XmlString) get_store()
220: .find_attribute_user(ROOT$4);
221: return target;
222: }
223: }
224:
225: /**
226: * True if has "root" attribute
227: */
228: public boolean isSetRoot() {
229: synchronized (monitor()) {
230: check_orphaned();
231: return get_store().find_attribute_user(ROOT$4) != null;
232: }
233: }
234:
235: /**
236: * Sets the "root" attribute
237: */
238: public void setRoot(java.lang.String root) {
239: synchronized (monitor()) {
240: check_orphaned();
241: org.apache.xmlbeans.SimpleValue target = null;
242: target = (org.apache.xmlbeans.SimpleValue) get_store()
243: .find_attribute_user(ROOT$4);
244: if (target == null) {
245: target = (org.apache.xmlbeans.SimpleValue) get_store()
246: .add_attribute_user(ROOT$4);
247: }
248: target.setStringValue(root);
249: }
250: }
251:
252: /**
253: * Sets (as xml) the "root" attribute
254: */
255: public void xsetRoot(org.apache.xmlbeans.XmlString root) {
256: synchronized (monitor()) {
257: check_orphaned();
258: org.apache.xmlbeans.XmlString target = null;
259: target = (org.apache.xmlbeans.XmlString) get_store()
260: .find_attribute_user(ROOT$4);
261: if (target == null) {
262: target = (org.apache.xmlbeans.XmlString) get_store()
263: .add_attribute_user(ROOT$4);
264: }
265: target.set(root);
266: }
267: }
268:
269: /**
270: * Unsets the "root" attribute
271: */
272: public void unsetRoot() {
273: synchronized (monitor()) {
274: check_orphaned();
275: get_store().remove_attribute(ROOT$4);
276: }
277: }
278: }
|