1   
2   
3   
4   
5   
6   
7   
8   
9   package gov.grants.apply.forms.sf424AV10.impl;
10  
11  
12  
13  
14  
15  public class FundsTotalsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424AV10.FundsTotalsDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public FundsTotalsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName FUNDSTOTALS$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "FundsTotals");
26      
27      
28      
29  
30  
31      public gov.grants.apply.forms.sf424AV10.FundsTotalsDocument.FundsTotals getFundsTotals()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424AV10.FundsTotalsDocument.FundsTotals target = null;
37              target = (gov.grants.apply.forms.sf424AV10.FundsTotalsDocument.FundsTotals)get_store().find_element_user(FUNDSTOTALS$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      
47  
48  
49      public void setFundsTotals(gov.grants.apply.forms.sf424AV10.FundsTotalsDocument.FundsTotals fundsTotals)
50      {
51          generatedSetterHelperImpl(fundsTotals, FUNDSTOTALS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      
55  
56  
57      public gov.grants.apply.forms.sf424AV10.FundsTotalsDocument.FundsTotals addNewFundsTotals()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424AV10.FundsTotalsDocument.FundsTotals target = null;
63              target = (gov.grants.apply.forms.sf424AV10.FundsTotalsDocument.FundsTotals)get_store().add_element_user(FUNDSTOTALS$0);
64              return target;
65          }
66      }
67      
68  
69  
70  
71  
72      public static class FundsTotalsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424AV10.FundsTotalsDocument.FundsTotals
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public FundsTotalsImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName BUDGETFIRSTYEARAMOUNT$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetFirstYearAmount");
83          private static final javax.xml.namespace.QName BUDGETSECONDYEARAMOUNT$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetSecondYearAmount");
85          private static final javax.xml.namespace.QName BUDGETTHIRDYEARAMOUNT$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetThirdYearAmount");
87          private static final javax.xml.namespace.QName BUDGETFOURTHYEARAMOUNT$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetFourthYearAmount");
89          
90          
91          
92  
93  
94          public java.math.BigDecimal getBudgetFirstYearAmount()
95          {
96              synchronized (monitor())
97              {
98                  check_orphaned();
99                  org.apache.xmlbeans.SimpleValue target = null;
100                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETFIRSTYEARAMOUNT$0, 0);
101                 if (target == null)
102                 {
103                     return null;
104                 }
105                 return target.getBigDecimalValue();
106             }
107         }
108         
109         
110 
111 
112         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetFirstYearAmount()
113         {
114             synchronized (monitor())
115             {
116                 check_orphaned();
117                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
118                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETFIRSTYEARAMOUNT$0, 0);
119                 return target;
120             }
121         }
122         
123         
124 
125 
126         public boolean isSetBudgetFirstYearAmount()
127         {
128             synchronized (monitor())
129             {
130                 check_orphaned();
131                 return get_store().count_elements(BUDGETFIRSTYEARAMOUNT$0) != 0;
132             }
133         }
134         
135         
136 
137 
138         public void setBudgetFirstYearAmount(java.math.BigDecimal budgetFirstYearAmount)
139         {
140             synchronized (monitor())
141             {
142                 check_orphaned();
143                 org.apache.xmlbeans.SimpleValue target = null;
144                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETFIRSTYEARAMOUNT$0, 0);
145                 if (target == null)
146                 {
147                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETFIRSTYEARAMOUNT$0);
148                 }
149                 target.setBigDecimalValue(budgetFirstYearAmount);
150             }
151         }
152         
153         
154 
155 
156         public void xsetBudgetFirstYearAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetFirstYearAmount)
157         {
158             synchronized (monitor())
159             {
160                 check_orphaned();
161                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
162                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETFIRSTYEARAMOUNT$0, 0);
163                 if (target == null)
164                 {
165                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETFIRSTYEARAMOUNT$0);
166                 }
167                 target.set(budgetFirstYearAmount);
168             }
169         }
170         
171         
172 
173 
174         public void unsetBudgetFirstYearAmount()
175         {
176             synchronized (monitor())
177             {
178                 check_orphaned();
179                 get_store().remove_element(BUDGETFIRSTYEARAMOUNT$0, 0);
180             }
181         }
182         
183         
184 
185 
186         public java.math.BigDecimal getBudgetSecondYearAmount()
187         {
188             synchronized (monitor())
189             {
190                 check_orphaned();
191                 org.apache.xmlbeans.SimpleValue target = null;
192                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETSECONDYEARAMOUNT$2, 0);
193                 if (target == null)
194                 {
195                     return null;
196                 }
197                 return target.getBigDecimalValue();
198             }
199         }
200         
201         
202 
203 
204         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetSecondYearAmount()
205         {
206             synchronized (monitor())
207             {
208                 check_orphaned();
209                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
210                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETSECONDYEARAMOUNT$2, 0);
211                 return target;
212             }
213         }
214         
215         
216 
217 
218         public boolean isSetBudgetSecondYearAmount()
219         {
220             synchronized (monitor())
221             {
222                 check_orphaned();
223                 return get_store().count_elements(BUDGETSECONDYEARAMOUNT$2) != 0;
224             }
225         }
226         
227         
228 
229 
230         public void setBudgetSecondYearAmount(java.math.BigDecimal budgetSecondYearAmount)
231         {
232             synchronized (monitor())
233             {
234                 check_orphaned();
235                 org.apache.xmlbeans.SimpleValue target = null;
236                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETSECONDYEARAMOUNT$2, 0);
237                 if (target == null)
238                 {
239                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETSECONDYEARAMOUNT$2);
240                 }
241                 target.setBigDecimalValue(budgetSecondYearAmount);
242             }
243         }
244         
245         
246 
247 
248         public void xsetBudgetSecondYearAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetSecondYearAmount)
249         {
250             synchronized (monitor())
251             {
252                 check_orphaned();
253                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
254                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETSECONDYEARAMOUNT$2, 0);
255                 if (target == null)
256                 {
257                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETSECONDYEARAMOUNT$2);
258                 }
259                 target.set(budgetSecondYearAmount);
260             }
261         }
262         
263         
264 
265 
266         public void unsetBudgetSecondYearAmount()
267         {
268             synchronized (monitor())
269             {
270                 check_orphaned();
271                 get_store().remove_element(BUDGETSECONDYEARAMOUNT$2, 0);
272             }
273         }
274         
275         
276 
277 
278         public java.math.BigDecimal getBudgetThirdYearAmount()
279         {
280             synchronized (monitor())
281             {
282                 check_orphaned();
283                 org.apache.xmlbeans.SimpleValue target = null;
284                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETTHIRDYEARAMOUNT$4, 0);
285                 if (target == null)
286                 {
287                     return null;
288                 }
289                 return target.getBigDecimalValue();
290             }
291         }
292         
293         
294 
295 
296         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetThirdYearAmount()
297         {
298             synchronized (monitor())
299             {
300                 check_orphaned();
301                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
302                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETTHIRDYEARAMOUNT$4, 0);
303                 return target;
304             }
305         }
306         
307         
308 
309 
310         public boolean isSetBudgetThirdYearAmount()
311         {
312             synchronized (monitor())
313             {
314                 check_orphaned();
315                 return get_store().count_elements(BUDGETTHIRDYEARAMOUNT$4) != 0;
316             }
317         }
318         
319         
320 
321 
322         public void setBudgetThirdYearAmount(java.math.BigDecimal budgetThirdYearAmount)
323         {
324             synchronized (monitor())
325             {
326                 check_orphaned();
327                 org.apache.xmlbeans.SimpleValue target = null;
328                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETTHIRDYEARAMOUNT$4, 0);
329                 if (target == null)
330                 {
331                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETTHIRDYEARAMOUNT$4);
332                 }
333                 target.setBigDecimalValue(budgetThirdYearAmount);
334             }
335         }
336         
337         
338 
339 
340         public void xsetBudgetThirdYearAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetThirdYearAmount)
341         {
342             synchronized (monitor())
343             {
344                 check_orphaned();
345                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
346                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETTHIRDYEARAMOUNT$4, 0);
347                 if (target == null)
348                 {
349                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETTHIRDYEARAMOUNT$4);
350                 }
351                 target.set(budgetThirdYearAmount);
352             }
353         }
354         
355         
356 
357 
358         public void unsetBudgetThirdYearAmount()
359         {
360             synchronized (monitor())
361             {
362                 check_orphaned();
363                 get_store().remove_element(BUDGETTHIRDYEARAMOUNT$4, 0);
364             }
365         }
366         
367         
368 
369 
370         public java.math.BigDecimal getBudgetFourthYearAmount()
371         {
372             synchronized (monitor())
373             {
374                 check_orphaned();
375                 org.apache.xmlbeans.SimpleValue target = null;
376                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETFOURTHYEARAMOUNT$6, 0);
377                 if (target == null)
378                 {
379                     return null;
380                 }
381                 return target.getBigDecimalValue();
382             }
383         }
384         
385         
386 
387 
388         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetFourthYearAmount()
389         {
390             synchronized (monitor())
391             {
392                 check_orphaned();
393                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
394                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETFOURTHYEARAMOUNT$6, 0);
395                 return target;
396             }
397         }
398         
399         
400 
401 
402         public boolean isSetBudgetFourthYearAmount()
403         {
404             synchronized (monitor())
405             {
406                 check_orphaned();
407                 return get_store().count_elements(BUDGETFOURTHYEARAMOUNT$6) != 0;
408             }
409         }
410         
411         
412 
413 
414         public void setBudgetFourthYearAmount(java.math.BigDecimal budgetFourthYearAmount)
415         {
416             synchronized (monitor())
417             {
418                 check_orphaned();
419                 org.apache.xmlbeans.SimpleValue target = null;
420                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETFOURTHYEARAMOUNT$6, 0);
421                 if (target == null)
422                 {
423                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETFOURTHYEARAMOUNT$6);
424                 }
425                 target.setBigDecimalValue(budgetFourthYearAmount);
426             }
427         }
428         
429         
430 
431 
432         public void xsetBudgetFourthYearAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetFourthYearAmount)
433         {
434             synchronized (monitor())
435             {
436                 check_orphaned();
437                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
438                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETFOURTHYEARAMOUNT$6, 0);
439                 if (target == null)
440                 {
441                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETFOURTHYEARAMOUNT$6);
442                 }
443                 target.set(budgetFourthYearAmount);
444             }
445         }
446         
447         
448 
449 
450         public void unsetBudgetFourthYearAmount()
451         {
452             synchronized (monitor())
453             {
454                 check_orphaned();
455                 get_store().remove_element(BUDGETFOURTHYEARAMOUNT$6, 0);
456             }
457         }
458     }
459 }