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