1 /*
2 * An XML document type.
3 * Localname: time
4 * Namespace: http://mrl.sf.net
5 * Java type: net.sf.mrl.TimeDocument
6 *
7 * Automatically generated - do not modify.
8 */
9 package net.sf.mrl.impl;
10 /***
11 * A document containing one time(@http://mrl.sf.net) element.
12 *
13 * This is a complex type.
14 */
15 public class TimeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.TimeDocument
16 {
17
18 public TimeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
19 {
20 super(sType);
21 }
22
23 private static final javax.xml.namespace.QName TIME$0 =
24 new javax.xml.namespace.QName("http://mrl.sf.net", "time");
25
26
27 /***
28 * Gets the "time" element
29 */
30 public net.sf.mrl.TimeDocument.Time getTime()
31 {
32 synchronized (monitor())
33 {
34 check_orphaned();
35 net.sf.mrl.TimeDocument.Time target = null;
36 target = (net.sf.mrl.TimeDocument.Time)get_store().find_element_user(TIME$0, 0);
37 if (target == null)
38 {
39 return null;
40 }
41 return target;
42 }
43 }
44
45 /***
46 * Sets the "time" element
47 */
48 public void setTime(net.sf.mrl.TimeDocument.Time time)
49 {
50 synchronized (monitor())
51 {
52 check_orphaned();
53 net.sf.mrl.TimeDocument.Time target = null;
54 target = (net.sf.mrl.TimeDocument.Time)get_store().find_element_user(TIME$0, 0);
55 if (target == null)
56 {
57 target = (net.sf.mrl.TimeDocument.Time)get_store().add_element_user(TIME$0);
58 }
59 target.set(time);
60 }
61 }
62
63 /***
64 * Appends and returns a new empty "time" element
65 */
66 public net.sf.mrl.TimeDocument.Time addNewTime()
67 {
68 synchronized (monitor())
69 {
70 check_orphaned();
71 net.sf.mrl.TimeDocument.Time target;
72 target = (net.sf.mrl.TimeDocument.Time)get_store().add_element_user(TIME$0);
73 return target;
74 }
75 }
76 /***
77 * An XML time(@http://mrl.sf.net).
78 *
79 * This is a complex type.
80 */
81 public static class TimeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.TimeDocument.Time
82 {
83
84 public TimeImpl(org.apache.xmlbeans.SchemaType sType)
85 {
86 super(sType);
87 }
88
89 private static final javax.xml.namespace.QName NAME$0 =
90 new javax.xml.namespace.QName("http://mrl.sf.net", "name");
91 private static final javax.xml.namespace.QName AMOUNT$2 =
92 new javax.xml.namespace.QName("http://mrl.sf.net", "amount");
93
94
95 /***
96 * Gets the "name" element
97 */
98 public java.lang.String getName()
99 {
100 synchronized (monitor())
101 {
102 check_orphaned();
103 org.apache.xmlbeans.SimpleValue target = null;
104 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
105 if (target == null)
106 {
107 return null;
108 }
109 return target.getStringValue();
110 }
111 }
112
113 /***
114 * Gets (as xml) the "name" element
115 */
116 public org.apache.xmlbeans.XmlString xgetName()
117 {
118 synchronized (monitor())
119 {
120 check_orphaned();
121 org.apache.xmlbeans.XmlString target = null;
122 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
123 return target;
124 }
125 }
126
127 /***
128 * Sets the "name" element
129 */
130 public void setName(java.lang.String name)
131 {
132 synchronized (monitor())
133 {
134 check_orphaned();
135 org.apache.xmlbeans.SimpleValue target = null;
136 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
137 if (target == null)
138 {
139 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);
140 }
141 target.setStringValue(name);
142 }
143 }
144
145 /***
146 * Sets (as xml) the "name" element
147 */
148 public void xsetName(org.apache.xmlbeans.XmlString name)
149 {
150 synchronized (monitor())
151 {
152 check_orphaned();
153 org.apache.xmlbeans.XmlString target = null;
154 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
155 if (target == null)
156 {
157 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);
158 }
159 target.set(name);
160 }
161 }
162
163 /***
164 * Gets the "amount" element
165 */
166 public net.sf.mrl.AmountDocument.Amount getAmount()
167 {
168 synchronized (monitor())
169 {
170 check_orphaned();
171 net.sf.mrl.AmountDocument.Amount target = null;
172 target = (net.sf.mrl.AmountDocument.Amount)get_store().find_element_user(AMOUNT$2, 0);
173 if (target == null)
174 {
175 return null;
176 }
177 return target;
178 }
179 }
180
181 /***
182 * Sets the "amount" element
183 */
184 public void setAmount(net.sf.mrl.AmountDocument.Amount amount)
185 {
186 synchronized (monitor())
187 {
188 check_orphaned();
189 net.sf.mrl.AmountDocument.Amount target = null;
190 target = (net.sf.mrl.AmountDocument.Amount)get_store().find_element_user(AMOUNT$2, 0);
191 if (target == null)
192 {
193 target = (net.sf.mrl.AmountDocument.Amount)get_store().add_element_user(AMOUNT$2);
194 }
195 target.set(amount);
196 }
197 }
198
199 /***
200 * Appends and returns a new empty "amount" element
201 */
202 public net.sf.mrl.AmountDocument.Amount addNewAmount()
203 {
204 synchronized (monitor())
205 {
206 check_orphaned();
207 net.sf.mrl.AmountDocument.Amount target;
208 target = (net.sf.mrl.AmountDocument.Amount)get_store().add_element_user(AMOUNT$2);
209 return target;
210 }
211 }
212 }
213 }
This page was automatically generated by Maven