001: /*
002: * XML Type: settingDef
003: * Namespace: http://cbesb.bostechcorp.com/trn/1.0
004: * Java type: com.bostechcorp.cbesb.trn.x10.SettingDef
005: *
006: * Automatically generated - do not modify.
007: */
008: package com.bostechcorp.cbesb.trn.x10.impl;
009:
010: /**
011: * An XML settingDef(@http://cbesb.bostechcorp.com/trn/1.0).
012: *
013: * This is a complex type.
014: */
015: public class SettingDefImpl extends
016: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
017: com.bostechcorp.cbesb.trn.x10.SettingDef {
018:
019: public SettingDefImpl(org.apache.xmlbeans.SchemaType sType) {
020: super (sType);
021: }
022:
023: private static final javax.xml.namespace.QName NAME$0 = new javax.xml.namespace.QName(
024: "", "name");
025: private static final javax.xml.namespace.QName VALUE$2 = new javax.xml.namespace.QName(
026: "", "value");
027:
028: /**
029: * Gets the "name" attribute
030: */
031: public java.lang.String getName() {
032: synchronized (monitor()) {
033: check_orphaned();
034: org.apache.xmlbeans.SimpleValue target = null;
035: target = (org.apache.xmlbeans.SimpleValue) get_store()
036: .find_attribute_user(NAME$0);
037: if (target == null) {
038: return null;
039: }
040: return target.getStringValue();
041: }
042: }
043:
044: /**
045: * Gets (as xml) the "name" attribute
046: */
047: public org.apache.xmlbeans.XmlString xgetName() {
048: synchronized (monitor()) {
049: check_orphaned();
050: org.apache.xmlbeans.XmlString target = null;
051: target = (org.apache.xmlbeans.XmlString) get_store()
052: .find_attribute_user(NAME$0);
053: return target;
054: }
055: }
056:
057: /**
058: * True if has "name" attribute
059: */
060: public boolean isSetName() {
061: synchronized (monitor()) {
062: check_orphaned();
063: return get_store().find_attribute_user(NAME$0) != null;
064: }
065: }
066:
067: /**
068: * Sets the "name" attribute
069: */
070: public void setName(java.lang.String name) {
071: synchronized (monitor()) {
072: check_orphaned();
073: org.apache.xmlbeans.SimpleValue target = null;
074: target = (org.apache.xmlbeans.SimpleValue) get_store()
075: .find_attribute_user(NAME$0);
076: if (target == null) {
077: target = (org.apache.xmlbeans.SimpleValue) get_store()
078: .add_attribute_user(NAME$0);
079: }
080: target.setStringValue(name);
081: }
082: }
083:
084: /**
085: * Sets (as xml) the "name" attribute
086: */
087: public void xsetName(org.apache.xmlbeans.XmlString name) {
088: synchronized (monitor()) {
089: check_orphaned();
090: org.apache.xmlbeans.XmlString target = null;
091: target = (org.apache.xmlbeans.XmlString) get_store()
092: .find_attribute_user(NAME$0);
093: if (target == null) {
094: target = (org.apache.xmlbeans.XmlString) get_store()
095: .add_attribute_user(NAME$0);
096: }
097: target.set(name);
098: }
099: }
100:
101: /**
102: * Unsets the "name" attribute
103: */
104: public void unsetName() {
105: synchronized (monitor()) {
106: check_orphaned();
107: get_store().remove_attribute(NAME$0);
108: }
109: }
110:
111: /**
112: * Gets the "value" attribute
113: */
114: public java.lang.String getValue() {
115: synchronized (monitor()) {
116: check_orphaned();
117: org.apache.xmlbeans.SimpleValue target = null;
118: target = (org.apache.xmlbeans.SimpleValue) get_store()
119: .find_attribute_user(VALUE$2);
120: if (target == null) {
121: return null;
122: }
123: return target.getStringValue();
124: }
125: }
126:
127: /**
128: * Gets (as xml) the "value" attribute
129: */
130: public org.apache.xmlbeans.XmlString xgetValue() {
131: synchronized (monitor()) {
132: check_orphaned();
133: org.apache.xmlbeans.XmlString target = null;
134: target = (org.apache.xmlbeans.XmlString) get_store()
135: .find_attribute_user(VALUE$2);
136: return target;
137: }
138: }
139:
140: /**
141: * True if has "value" attribute
142: */
143: public boolean isSetValue() {
144: synchronized (monitor()) {
145: check_orphaned();
146: return get_store().find_attribute_user(VALUE$2) != null;
147: }
148: }
149:
150: /**
151: * Sets the "value" attribute
152: */
153: public void setValue(java.lang.String value) {
154: synchronized (monitor()) {
155: check_orphaned();
156: org.apache.xmlbeans.SimpleValue target = null;
157: target = (org.apache.xmlbeans.SimpleValue) get_store()
158: .find_attribute_user(VALUE$2);
159: if (target == null) {
160: target = (org.apache.xmlbeans.SimpleValue) get_store()
161: .add_attribute_user(VALUE$2);
162: }
163: target.setStringValue(value);
164: }
165: }
166:
167: /**
168: * Sets (as xml) the "value" attribute
169: */
170: public void xsetValue(org.apache.xmlbeans.XmlString value) {
171: synchronized (monitor()) {
172: check_orphaned();
173: org.apache.xmlbeans.XmlString target = null;
174: target = (org.apache.xmlbeans.XmlString) get_store()
175: .find_attribute_user(VALUE$2);
176: if (target == null) {
177: target = (org.apache.xmlbeans.XmlString) get_store()
178: .add_attribute_user(VALUE$2);
179: }
180: target.set(value);
181: }
182: }
183:
184: /**
185: * Unsets the "value" attribute
186: */
187: public void unsetValue() {
188: synchronized (monitor()) {
189: check_orphaned();
190: get_store().remove_attribute(VALUE$2);
191: }
192: }
193: }
|