1
2
3
4
5
6
7
8
9 package gov.grants.apply.forms.sf424V10.impl;
10
11
12
13
14
15 public class RevisionDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.RevisionDocument
16 {
17 private static final long serialVersionUID = 1L;
18
19 public RevisionDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20 {
21 super(sType);
22 }
23
24 private static final javax.xml.namespace.QName REVISION$0 =
25 new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "Revision");
26
27
28
29
30
31 public gov.grants.apply.forms.sf424V10.RevisionDocument.Revision getRevision()
32 {
33 synchronized (monitor())
34 {
35 check_orphaned();
36 gov.grants.apply.forms.sf424V10.RevisionDocument.Revision target = null;
37 target = (gov.grants.apply.forms.sf424V10.RevisionDocument.Revision)get_store().find_element_user(REVISION$0, 0);
38 if (target == null)
39 {
40 return null;
41 }
42 return target;
43 }
44 }
45
46
47
48
49 public void setRevision(gov.grants.apply.forms.sf424V10.RevisionDocument.Revision revision)
50 {
51 generatedSetterHelperImpl(revision, REVISION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52 }
53
54
55
56
57 public gov.grants.apply.forms.sf424V10.RevisionDocument.Revision addNewRevision()
58 {
59 synchronized (monitor())
60 {
61 check_orphaned();
62 gov.grants.apply.forms.sf424V10.RevisionDocument.Revision target = null;
63 target = (gov.grants.apply.forms.sf424V10.RevisionDocument.Revision)get_store().add_element_user(REVISION$0);
64 return target;
65 }
66 }
67
68
69
70
71
72 public static class RevisionImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.RevisionDocument.Revision
73 {
74 private static final long serialVersionUID = 1L;
75
76 public RevisionImpl(org.apache.xmlbeans.SchemaType sType)
77 {
78 super(sType);
79 }
80
81 private static final javax.xml.namespace.QName REVISIONCODE1$0 =
82 new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "RevisionCode1");
83 private static final javax.xml.namespace.QName REVISIONCODE2$2 =
84 new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "RevisionCode2");
85 private static final javax.xml.namespace.QName REVISIONOTHEREXPLANATION$4 =
86 new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "RevisionOtherExplanation");
87
88
89
90
91
92 public gov.grants.apply.forms.sf424V10.RevisionCodeType.Enum getRevisionCode1()
93 {
94 synchronized (monitor())
95 {
96 check_orphaned();
97 org.apache.xmlbeans.SimpleValue target = null;
98 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REVISIONCODE1$0, 0);
99 if (target == null)
100 {
101 return null;
102 }
103 return (gov.grants.apply.forms.sf424V10.RevisionCodeType.Enum)target.getEnumValue();
104 }
105 }
106
107
108
109
110 public gov.grants.apply.forms.sf424V10.RevisionCodeType xgetRevisionCode1()
111 {
112 synchronized (monitor())
113 {
114 check_orphaned();
115 gov.grants.apply.forms.sf424V10.RevisionCodeType target = null;
116 target = (gov.grants.apply.forms.sf424V10.RevisionCodeType)get_store().find_element_user(REVISIONCODE1$0, 0);
117 return target;
118 }
119 }
120
121
122
123
124 public boolean isSetRevisionCode1()
125 {
126 synchronized (monitor())
127 {
128 check_orphaned();
129 return get_store().count_elements(REVISIONCODE1$0) != 0;
130 }
131 }
132
133
134
135
136 public void setRevisionCode1(gov.grants.apply.forms.sf424V10.RevisionCodeType.Enum revisionCode1)
137 {
138 synchronized (monitor())
139 {
140 check_orphaned();
141 org.apache.xmlbeans.SimpleValue target = null;
142 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REVISIONCODE1$0, 0);
143 if (target == null)
144 {
145 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REVISIONCODE1$0);
146 }
147 target.setEnumValue(revisionCode1);
148 }
149 }
150
151
152
153
154 public void xsetRevisionCode1(gov.grants.apply.forms.sf424V10.RevisionCodeType revisionCode1)
155 {
156 synchronized (monitor())
157 {
158 check_orphaned();
159 gov.grants.apply.forms.sf424V10.RevisionCodeType target = null;
160 target = (gov.grants.apply.forms.sf424V10.RevisionCodeType)get_store().find_element_user(REVISIONCODE1$0, 0);
161 if (target == null)
162 {
163 target = (gov.grants.apply.forms.sf424V10.RevisionCodeType)get_store().add_element_user(REVISIONCODE1$0);
164 }
165 target.set(revisionCode1);
166 }
167 }
168
169
170
171
172 public void unsetRevisionCode1()
173 {
174 synchronized (monitor())
175 {
176 check_orphaned();
177 get_store().remove_element(REVISIONCODE1$0, 0);
178 }
179 }
180
181
182
183
184 public gov.grants.apply.forms.sf424V10.RevisionCodeType.Enum getRevisionCode2()
185 {
186 synchronized (monitor())
187 {
188 check_orphaned();
189 org.apache.xmlbeans.SimpleValue target = null;
190 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REVISIONCODE2$2, 0);
191 if (target == null)
192 {
193 return null;
194 }
195 return (gov.grants.apply.forms.sf424V10.RevisionCodeType.Enum)target.getEnumValue();
196 }
197 }
198
199
200
201
202 public gov.grants.apply.forms.sf424V10.RevisionCodeType xgetRevisionCode2()
203 {
204 synchronized (monitor())
205 {
206 check_orphaned();
207 gov.grants.apply.forms.sf424V10.RevisionCodeType target = null;
208 target = (gov.grants.apply.forms.sf424V10.RevisionCodeType)get_store().find_element_user(REVISIONCODE2$2, 0);
209 return target;
210 }
211 }
212
213
214
215
216 public boolean isSetRevisionCode2()
217 {
218 synchronized (monitor())
219 {
220 check_orphaned();
221 return get_store().count_elements(REVISIONCODE2$2) != 0;
222 }
223 }
224
225
226
227
228 public void setRevisionCode2(gov.grants.apply.forms.sf424V10.RevisionCodeType.Enum revisionCode2)
229 {
230 synchronized (monitor())
231 {
232 check_orphaned();
233 org.apache.xmlbeans.SimpleValue target = null;
234 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REVISIONCODE2$2, 0);
235 if (target == null)
236 {
237 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REVISIONCODE2$2);
238 }
239 target.setEnumValue(revisionCode2);
240 }
241 }
242
243
244
245
246 public void xsetRevisionCode2(gov.grants.apply.forms.sf424V10.RevisionCodeType revisionCode2)
247 {
248 synchronized (monitor())
249 {
250 check_orphaned();
251 gov.grants.apply.forms.sf424V10.RevisionCodeType target = null;
252 target = (gov.grants.apply.forms.sf424V10.RevisionCodeType)get_store().find_element_user(REVISIONCODE2$2, 0);
253 if (target == null)
254 {
255 target = (gov.grants.apply.forms.sf424V10.RevisionCodeType)get_store().add_element_user(REVISIONCODE2$2);
256 }
257 target.set(revisionCode2);
258 }
259 }
260
261
262
263
264 public void unsetRevisionCode2()
265 {
266 synchronized (monitor())
267 {
268 check_orphaned();
269 get_store().remove_element(REVISIONCODE2$2, 0);
270 }
271 }
272
273
274
275
276 public java.lang.String getRevisionOtherExplanation()
277 {
278 synchronized (monitor())
279 {
280 check_orphaned();
281 org.apache.xmlbeans.SimpleValue target = null;
282 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REVISIONOTHEREXPLANATION$4, 0);
283 if (target == null)
284 {
285 return null;
286 }
287 return target.getStringValue();
288 }
289 }
290
291
292
293
294 public gov.grants.apply.system.globalV10.StringMin1Max45Type xgetRevisionOtherExplanation()
295 {
296 synchronized (monitor())
297 {
298 check_orphaned();
299 gov.grants.apply.system.globalV10.StringMin1Max45Type target = null;
300 target = (gov.grants.apply.system.globalV10.StringMin1Max45Type)get_store().find_element_user(REVISIONOTHEREXPLANATION$4, 0);
301 return target;
302 }
303 }
304
305
306
307
308 public boolean isSetRevisionOtherExplanation()
309 {
310 synchronized (monitor())
311 {
312 check_orphaned();
313 return get_store().count_elements(REVISIONOTHEREXPLANATION$4) != 0;
314 }
315 }
316
317
318
319
320 public void setRevisionOtherExplanation(java.lang.String revisionOtherExplanation)
321 {
322 synchronized (monitor())
323 {
324 check_orphaned();
325 org.apache.xmlbeans.SimpleValue target = null;
326 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REVISIONOTHEREXPLANATION$4, 0);
327 if (target == null)
328 {
329 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REVISIONOTHEREXPLANATION$4);
330 }
331 target.setStringValue(revisionOtherExplanation);
332 }
333 }
334
335
336
337
338 public void xsetRevisionOtherExplanation(gov.grants.apply.system.globalV10.StringMin1Max45Type revisionOtherExplanation)
339 {
340 synchronized (monitor())
341 {
342 check_orphaned();
343 gov.grants.apply.system.globalV10.StringMin1Max45Type target = null;
344 target = (gov.grants.apply.system.globalV10.StringMin1Max45Type)get_store().find_element_user(REVISIONOTHEREXPLANATION$4, 0);
345 if (target == null)
346 {
347 target = (gov.grants.apply.system.globalV10.StringMin1Max45Type)get_store().add_element_user(REVISIONOTHEREXPLANATION$4);
348 }
349 target.set(revisionOtherExplanation);
350 }
351 }
352
353
354
355
356 public void unsetRevisionOtherExplanation()
357 {
358 synchronized (monitor())
359 {
360 check_orphaned();
361 get_store().remove_element(REVISIONOTHEREXPLANATION$4, 0);
362 }
363 }
364 }
365 }