001: /*
002: * XML Type: emailType
003: * Namespace: http://cbesb.bostechcorp.com/alert/1.0
004: * Java type: com.bostechcorp.cbesb.alert.x10.EmailType
005: *
006: * Automatically generated - do not modify.
007: */
008: package com.bostechcorp.cbesb.alert.x10.impl;
009:
010: /**
011: * An XML emailType(@http://cbesb.bostechcorp.com/alert/1.0).
012: *
013: * This is a complex type.
014: */
015: public class EmailTypeImpl extends
016: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
017: com.bostechcorp.cbesb.alert.x10.EmailType {
018:
019: public EmailTypeImpl(org.apache.xmlbeans.SchemaType sType) {
020: super (sType);
021: }
022:
023: private static final javax.xml.namespace.QName SETTINGNAME$0 = new javax.xml.namespace.QName(
024: "http://cbesb.bostechcorp.com/alert/1.0", "settingName");
025: private static final javax.xml.namespace.QName SUBJECT$2 = new javax.xml.namespace.QName(
026: "http://cbesb.bostechcorp.com/alert/1.0", "subject");
027:
028: /**
029: * Gets the "settingName" element
030: */
031: public java.lang.String getSettingName() {
032: synchronized (monitor()) {
033: check_orphaned();
034: org.apache.xmlbeans.SimpleValue target = null;
035: target = (org.apache.xmlbeans.SimpleValue) get_store()
036: .find_element_user(SETTINGNAME$0, 0);
037: if (target == null) {
038: return null;
039: }
040: return target.getStringValue();
041: }
042: }
043:
044: /**
045: * Gets (as xml) the "settingName" element
046: */
047: public org.apache.xmlbeans.XmlString xgetSettingName() {
048: synchronized (monitor()) {
049: check_orphaned();
050: org.apache.xmlbeans.XmlString target = null;
051: target = (org.apache.xmlbeans.XmlString) get_store()
052: .find_element_user(SETTINGNAME$0, 0);
053: return target;
054: }
055: }
056:
057: /**
058: * Sets the "settingName" element
059: */
060: public void setSettingName(java.lang.String settingName) {
061: synchronized (monitor()) {
062: check_orphaned();
063: org.apache.xmlbeans.SimpleValue target = null;
064: target = (org.apache.xmlbeans.SimpleValue) get_store()
065: .find_element_user(SETTINGNAME$0, 0);
066: if (target == null) {
067: target = (org.apache.xmlbeans.SimpleValue) get_store()
068: .add_element_user(SETTINGNAME$0);
069: }
070: target.setStringValue(settingName);
071: }
072: }
073:
074: /**
075: * Sets (as xml) the "settingName" element
076: */
077: public void xsetSettingName(
078: org.apache.xmlbeans.XmlString settingName) {
079: synchronized (monitor()) {
080: check_orphaned();
081: org.apache.xmlbeans.XmlString target = null;
082: target = (org.apache.xmlbeans.XmlString) get_store()
083: .find_element_user(SETTINGNAME$0, 0);
084: if (target == null) {
085: target = (org.apache.xmlbeans.XmlString) get_store()
086: .add_element_user(SETTINGNAME$0);
087: }
088: target.set(settingName);
089: }
090: }
091:
092: /**
093: * Gets the "subject" element
094: */
095: public java.lang.String getSubject() {
096: synchronized (monitor()) {
097: check_orphaned();
098: org.apache.xmlbeans.SimpleValue target = null;
099: target = (org.apache.xmlbeans.SimpleValue) get_store()
100: .find_element_user(SUBJECT$2, 0);
101: if (target == null) {
102: return null;
103: }
104: return target.getStringValue();
105: }
106: }
107:
108: /**
109: * Gets (as xml) the "subject" element
110: */
111: public org.apache.xmlbeans.XmlString xgetSubject() {
112: synchronized (monitor()) {
113: check_orphaned();
114: org.apache.xmlbeans.XmlString target = null;
115: target = (org.apache.xmlbeans.XmlString) get_store()
116: .find_element_user(SUBJECT$2, 0);
117: return target;
118: }
119: }
120:
121: /**
122: * True if has "subject" element
123: */
124: public boolean isSetSubject() {
125: synchronized (monitor()) {
126: check_orphaned();
127: return get_store().count_elements(SUBJECT$2) != 0;
128: }
129: }
130:
131: /**
132: * Sets the "subject" element
133: */
134: public void setSubject(java.lang.String subject) {
135: synchronized (monitor()) {
136: check_orphaned();
137: org.apache.xmlbeans.SimpleValue target = null;
138: target = (org.apache.xmlbeans.SimpleValue) get_store()
139: .find_element_user(SUBJECT$2, 0);
140: if (target == null) {
141: target = (org.apache.xmlbeans.SimpleValue) get_store()
142: .add_element_user(SUBJECT$2);
143: }
144: target.setStringValue(subject);
145: }
146: }
147:
148: /**
149: * Sets (as xml) the "subject" element
150: */
151: public void xsetSubject(org.apache.xmlbeans.XmlString subject) {
152: synchronized (monitor()) {
153: check_orphaned();
154: org.apache.xmlbeans.XmlString target = null;
155: target = (org.apache.xmlbeans.XmlString) get_store()
156: .find_element_user(SUBJECT$2, 0);
157: if (target == null) {
158: target = (org.apache.xmlbeans.XmlString) get_store()
159: .add_element_user(SUBJECT$2);
160: }
161: target.set(subject);
162: }
163: }
164:
165: /**
166: * Unsets the "subject" element
167: */
168: public void unsetSubject() {
169: synchronized (monitor()) {
170: check_orphaned();
171: get_store().remove_element(SUBJECT$2, 0);
172: }
173: }
174: }
|