View Javadoc
1   /*
2    * An XML document type.
3    * Localname: FundsTotals
4    * Namespace: http://apply.grants.gov/forms/SF424A-V1.0
5    * Java type: gov.grants.apply.forms.sf424AV10.FundsTotalsDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424AV10.impl;
10  /**
11   * A document containing one FundsTotals(@http://apply.grants.gov/forms/SF424A-V1.0) element.
12   *
13   * This is a complex type.
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       * Gets the "FundsTotals" element
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       * Sets the "FundsTotals" element
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       * Appends and returns a new empty "FundsTotals" element
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       * An XML FundsTotals(@http://apply.grants.gov/forms/SF424A-V1.0).
69       *
70       * This is a complex type.
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           * Gets the "BudgetFirstYearAmount" element
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          * Gets (as xml) the "BudgetFirstYearAmount" element
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          * True if has "BudgetFirstYearAmount" element
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          * Sets the "BudgetFirstYearAmount" element
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          * Sets (as xml) the "BudgetFirstYearAmount" element
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          * Unsets the "BudgetFirstYearAmount" element
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          * Gets the "BudgetSecondYearAmount" element
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          * Gets (as xml) the "BudgetSecondYearAmount" element
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          * True if has "BudgetSecondYearAmount" element
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          * Sets the "BudgetSecondYearAmount" element
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          * Sets (as xml) the "BudgetSecondYearAmount" element
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          * Unsets the "BudgetSecondYearAmount" element
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          * Gets the "BudgetThirdYearAmount" element
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          * Gets (as xml) the "BudgetThirdYearAmount" element
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          * True if has "BudgetThirdYearAmount" element
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          * Sets the "BudgetThirdYearAmount" element
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          * Sets (as xml) the "BudgetThirdYearAmount" element
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          * Unsets the "BudgetThirdYearAmount" element
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          * Gets the "BudgetFourthYearAmount" element
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          * Gets (as xml) the "BudgetFourthYearAmount" element
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          * True if has "BudgetFourthYearAmount" element
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          * Sets the "BudgetFourthYearAmount" element
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          * Sets (as xml) the "BudgetFourthYearAmount" element
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          * Unsets the "BudgetFourthYearAmount" element
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 }