01: /*
02: * An XML document type.
03: * Localname: stringelement
04: * Namespace: http://xmlbeans.apache.org/samples/any
05: * Java type: org.apache.xmlbeans.samples.any.StringelementDocument
06: *
07: * Automatically generated - do not modify.
08: */
09: package org.apache.xmlbeans.samples.any.impl;
10:
11: /**
12: * A document containing one stringelement(@http://xmlbeans.apache.org/samples/any) element.
13: *
14: * This is a complex type.
15: */
16: public class StringelementDocumentImpl extends
17: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
18: org.apache.xmlbeans.samples.any.StringelementDocument {
19:
20: public StringelementDocumentImpl(
21: org.apache.xmlbeans.SchemaType sType) {
22: super (sType);
23: }
24:
25: private static final javax.xml.namespace.QName STRINGELEMENT$0 = new javax.xml.namespace.QName(
26: "http://xmlbeans.apache.org/samples/any", "stringelement");
27:
28: /**
29: * Gets the "stringelement" element
30: */
31: public java.lang.String getStringelement() {
32: synchronized (monitor()) {
33: check_orphaned();
34: org.apache.xmlbeans.SimpleValue target = null;
35: target = (org.apache.xmlbeans.SimpleValue) get_store()
36: .find_element_user(STRINGELEMENT$0, 0);
37: if (target == null) {
38: return null;
39: }
40: return target.getStringValue();
41: }
42: }
43:
44: /**
45: * Gets (as xml) the "stringelement" element
46: */
47: public org.apache.xmlbeans.XmlString xgetStringelement() {
48: synchronized (monitor()) {
49: check_orphaned();
50: org.apache.xmlbeans.XmlString target = null;
51: target = (org.apache.xmlbeans.XmlString) get_store()
52: .find_element_user(STRINGELEMENT$0, 0);
53: return target;
54: }
55: }
56:
57: /**
58: * Sets the "stringelement" element
59: */
60: public void setStringelement(java.lang.String stringelement) {
61: synchronized (monitor()) {
62: check_orphaned();
63: org.apache.xmlbeans.SimpleValue target = null;
64: target = (org.apache.xmlbeans.SimpleValue) get_store()
65: .find_element_user(STRINGELEMENT$0, 0);
66: if (target == null) {
67: target = (org.apache.xmlbeans.SimpleValue) get_store()
68: .add_element_user(STRINGELEMENT$0);
69: }
70: target.setStringValue(stringelement);
71: }
72: }
73:
74: /**
75: * Sets (as xml) the "stringelement" element
76: */
77: public void xsetStringelement(
78: org.apache.xmlbeans.XmlString stringelement) {
79: synchronized (monitor()) {
80: check_orphaned();
81: org.apache.xmlbeans.XmlString target = null;
82: target = (org.apache.xmlbeans.XmlString) get_store()
83: .find_element_user(STRINGELEMENT$0, 0);
84: if (target == null) {
85: target = (org.apache.xmlbeans.XmlString) get_store()
86: .add_element_user(STRINGELEMENT$0);
87: }
88: target.set(stringelement);
89: }
90: }
91: }
|