View Javadoc
1   /*
2    * An XML document type.
3    * Localname: BudgetSecondQuarterAmounts
4    * Namespace: http://apply.grants.gov/forms/SF424A-V1.0
5    * Java type: gov.grants.apply.forms.sf424AV10.BudgetSecondQuarterAmountsDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424AV10.impl;
10  /**
11   * A document containing one BudgetSecondQuarterAmounts(@http://apply.grants.gov/forms/SF424A-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class BudgetSecondQuarterAmountsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424AV10.BudgetSecondQuarterAmountsDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public BudgetSecondQuarterAmountsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName BUDGETSECONDQUARTERAMOUNTS$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetSecondQuarterAmounts");
26      
27      
28      /**
29       * Gets the "BudgetSecondQuarterAmounts" element
30       */
31      public gov.grants.apply.forms.sf424AV10.BudgetSecondQuarterAmountsDocument.BudgetSecondQuarterAmounts getBudgetSecondQuarterAmounts()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424AV10.BudgetSecondQuarterAmountsDocument.BudgetSecondQuarterAmounts target = null;
37              target = (gov.grants.apply.forms.sf424AV10.BudgetSecondQuarterAmountsDocument.BudgetSecondQuarterAmounts)get_store().find_element_user(BUDGETSECONDQUARTERAMOUNTS$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "BudgetSecondQuarterAmounts" element
48       */
49      public void setBudgetSecondQuarterAmounts(gov.grants.apply.forms.sf424AV10.BudgetSecondQuarterAmountsDocument.BudgetSecondQuarterAmounts budgetSecondQuarterAmounts)
50      {
51          generatedSetterHelperImpl(budgetSecondQuarterAmounts, BUDGETSECONDQUARTERAMOUNTS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "BudgetSecondQuarterAmounts" element
56       */
57      public gov.grants.apply.forms.sf424AV10.BudgetSecondQuarterAmountsDocument.BudgetSecondQuarterAmounts addNewBudgetSecondQuarterAmounts()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424AV10.BudgetSecondQuarterAmountsDocument.BudgetSecondQuarterAmounts target = null;
63              target = (gov.grants.apply.forms.sf424AV10.BudgetSecondQuarterAmountsDocument.BudgetSecondQuarterAmounts)get_store().add_element_user(BUDGETSECONDQUARTERAMOUNTS$0);
64              return target;
65          }
66      }
67      /**
68       * An XML BudgetSecondQuarterAmounts(@http://apply.grants.gov/forms/SF424A-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class BudgetSecondQuarterAmountsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424AV10.BudgetSecondQuarterAmountsDocument.BudgetSecondQuarterAmounts
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public BudgetSecondQuarterAmountsImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName BUDGETFEDERALFORECASTEDAMOUNT$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetFederalForecastedAmount");
83          private static final javax.xml.namespace.QName BUDGETNONFEDERALFORECASTEDAMOUNT$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetNonFederalForecastedAmount");
85          private static final javax.xml.namespace.QName BUDGETTOTALFORECASTEDAMOUNT$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetTotalForecastedAmount");
87          
88          
89          /**
90           * Gets the "BudgetFederalForecastedAmount" element
91           */
92          public java.math.BigDecimal getBudgetFederalForecastedAmount()
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(BUDGETFEDERALFORECASTEDAMOUNT$0, 0);
99                  if (target == null)
100                 {
101                     return null;
102                 }
103                 return target.getBigDecimalValue();
104             }
105         }
106         
107         /**
108          * Gets (as xml) the "BudgetFederalForecastedAmount" element
109          */
110         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetFederalForecastedAmount()
111         {
112             synchronized (monitor())
113             {
114                 check_orphaned();
115                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
116                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETFEDERALFORECASTEDAMOUNT$0, 0);
117                 return target;
118             }
119         }
120         
121         /**
122          * True if has "BudgetFederalForecastedAmount" element
123          */
124         public boolean isSetBudgetFederalForecastedAmount()
125         {
126             synchronized (monitor())
127             {
128                 check_orphaned();
129                 return get_store().count_elements(BUDGETFEDERALFORECASTEDAMOUNT$0) != 0;
130             }
131         }
132         
133         /**
134          * Sets the "BudgetFederalForecastedAmount" element
135          */
136         public void setBudgetFederalForecastedAmount(java.math.BigDecimal budgetFederalForecastedAmount)
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(BUDGETFEDERALFORECASTEDAMOUNT$0, 0);
143                 if (target == null)
144                 {
145                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETFEDERALFORECASTEDAMOUNT$0);
146                 }
147                 target.setBigDecimalValue(budgetFederalForecastedAmount);
148             }
149         }
150         
151         /**
152          * Sets (as xml) the "BudgetFederalForecastedAmount" element
153          */
154         public void xsetBudgetFederalForecastedAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetFederalForecastedAmount)
155         {
156             synchronized (monitor())
157             {
158                 check_orphaned();
159                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
160                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETFEDERALFORECASTEDAMOUNT$0, 0);
161                 if (target == null)
162                 {
163                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETFEDERALFORECASTEDAMOUNT$0);
164                 }
165                 target.set(budgetFederalForecastedAmount);
166             }
167         }
168         
169         /**
170          * Unsets the "BudgetFederalForecastedAmount" element
171          */
172         public void unsetBudgetFederalForecastedAmount()
173         {
174             synchronized (monitor())
175             {
176                 check_orphaned();
177                 get_store().remove_element(BUDGETFEDERALFORECASTEDAMOUNT$0, 0);
178             }
179         }
180         
181         /**
182          * Gets the "BudgetNonFederalForecastedAmount" element
183          */
184         public java.math.BigDecimal getBudgetNonFederalForecastedAmount()
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(BUDGETNONFEDERALFORECASTEDAMOUNT$2, 0);
191                 if (target == null)
192                 {
193                     return null;
194                 }
195                 return target.getBigDecimalValue();
196             }
197         }
198         
199         /**
200          * Gets (as xml) the "BudgetNonFederalForecastedAmount" element
201          */
202         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetNonFederalForecastedAmount()
203         {
204             synchronized (monitor())
205             {
206                 check_orphaned();
207                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
208                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETNONFEDERALFORECASTEDAMOUNT$2, 0);
209                 return target;
210             }
211         }
212         
213         /**
214          * True if has "BudgetNonFederalForecastedAmount" element
215          */
216         public boolean isSetBudgetNonFederalForecastedAmount()
217         {
218             synchronized (monitor())
219             {
220                 check_orphaned();
221                 return get_store().count_elements(BUDGETNONFEDERALFORECASTEDAMOUNT$2) != 0;
222             }
223         }
224         
225         /**
226          * Sets the "BudgetNonFederalForecastedAmount" element
227          */
228         public void setBudgetNonFederalForecastedAmount(java.math.BigDecimal budgetNonFederalForecastedAmount)
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(BUDGETNONFEDERALFORECASTEDAMOUNT$2, 0);
235                 if (target == null)
236                 {
237                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETNONFEDERALFORECASTEDAMOUNT$2);
238                 }
239                 target.setBigDecimalValue(budgetNonFederalForecastedAmount);
240             }
241         }
242         
243         /**
244          * Sets (as xml) the "BudgetNonFederalForecastedAmount" element
245          */
246         public void xsetBudgetNonFederalForecastedAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetNonFederalForecastedAmount)
247         {
248             synchronized (monitor())
249             {
250                 check_orphaned();
251                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
252                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETNONFEDERALFORECASTEDAMOUNT$2, 0);
253                 if (target == null)
254                 {
255                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETNONFEDERALFORECASTEDAMOUNT$2);
256                 }
257                 target.set(budgetNonFederalForecastedAmount);
258             }
259         }
260         
261         /**
262          * Unsets the "BudgetNonFederalForecastedAmount" element
263          */
264         public void unsetBudgetNonFederalForecastedAmount()
265         {
266             synchronized (monitor())
267             {
268                 check_orphaned();
269                 get_store().remove_element(BUDGETNONFEDERALFORECASTEDAMOUNT$2, 0);
270             }
271         }
272         
273         /**
274          * Gets the "BudgetTotalForecastedAmount" element
275          */
276         public java.math.BigDecimal getBudgetTotalForecastedAmount()
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(BUDGETTOTALFORECASTEDAMOUNT$4, 0);
283                 if (target == null)
284                 {
285                     return null;
286                 }
287                 return target.getBigDecimalValue();
288             }
289         }
290         
291         /**
292          * Gets (as xml) the "BudgetTotalForecastedAmount" element
293          */
294         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetTotalForecastedAmount()
295         {
296             synchronized (monitor())
297             {
298                 check_orphaned();
299                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
300                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETTOTALFORECASTEDAMOUNT$4, 0);
301                 return target;
302             }
303         }
304         
305         /**
306          * True if has "BudgetTotalForecastedAmount" element
307          */
308         public boolean isSetBudgetTotalForecastedAmount()
309         {
310             synchronized (monitor())
311             {
312                 check_orphaned();
313                 return get_store().count_elements(BUDGETTOTALFORECASTEDAMOUNT$4) != 0;
314             }
315         }
316         
317         /**
318          * Sets the "BudgetTotalForecastedAmount" element
319          */
320         public void setBudgetTotalForecastedAmount(java.math.BigDecimal budgetTotalForecastedAmount)
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(BUDGETTOTALFORECASTEDAMOUNT$4, 0);
327                 if (target == null)
328                 {
329                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETTOTALFORECASTEDAMOUNT$4);
330                 }
331                 target.setBigDecimalValue(budgetTotalForecastedAmount);
332             }
333         }
334         
335         /**
336          * Sets (as xml) the "BudgetTotalForecastedAmount" element
337          */
338         public void xsetBudgetTotalForecastedAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetTotalForecastedAmount)
339         {
340             synchronized (monitor())
341             {
342                 check_orphaned();
343                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
344                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETTOTALFORECASTEDAMOUNT$4, 0);
345                 if (target == null)
346                 {
347                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETTOTALFORECASTEDAMOUNT$4);
348                 }
349                 target.set(budgetTotalForecastedAmount);
350             }
351         }
352         
353         /**
354          * Unsets the "BudgetTotalForecastedAmount" element
355          */
356         public void unsetBudgetTotalForecastedAmount()
357         {
358             synchronized (monitor())
359             {
360                 check_orphaned();
361                 get_store().remove_element(BUDGETTOTALFORECASTEDAMOUNT$4, 0);
362             }
363         }
364     }
365 }