View Javadoc
1   /*
2    * An XML document type.
3    * Localname: ProgramIncome
4    * Namespace: http://apply.grants.gov/forms/SF424C-V1.0
5    * Java type: gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424CV10.impl;
10  /**
11   * A document containing one ProgramIncome(@http://apply.grants.gov/forms/SF424C-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class ProgramIncomeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public ProgramIncomeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName PROGRAMINCOME$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "ProgramIncome");
26      
27      
28      /**
29       * Gets the "ProgramIncome" element
30       */
31      public gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome getProgramIncome()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome target = null;
37              target = (gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome)get_store().find_element_user(PROGRAMINCOME$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "ProgramIncome" element
48       */
49      public void setProgramIncome(gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome programIncome)
50      {
51          generatedSetterHelperImpl(programIncome, PROGRAMINCOME$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "ProgramIncome" element
56       */
57      public gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome addNewProgramIncome()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome target = null;
63              target = (gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome)get_store().add_element_user(PROGRAMINCOME$0);
64              return target;
65          }
66      }
67      /**
68       * An XML ProgramIncome(@http://apply.grants.gov/forms/SF424C-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class ProgramIncomeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public ProgramIncomeImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName BUDGETESTIMATEDCOSTAMOUNT$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "BudgetEstimatedCostAmount");
83          private static final javax.xml.namespace.QName BUDGETNONALLOWABLECOSTAMOUNT$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "BudgetNonAllowableCostAmount");
85          private static final javax.xml.namespace.QName BUDGETTOTALALLOWABLECOSTAMOUNT$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "BudgetTotalAllowableCostAmount");
87          
88          
89          /**
90           * Gets the "BudgetEstimatedCostAmount" element
91           */
92          public java.math.BigDecimal getBudgetEstimatedCostAmount()
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(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
99                  if (target == null)
100                 {
101                     return null;
102                 }
103                 return target.getBigDecimalValue();
104             }
105         }
106         
107         /**
108          * Gets (as xml) the "BudgetEstimatedCostAmount" element
109          */
110         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetEstimatedCostAmount()
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(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
117                 return target;
118             }
119         }
120         
121         /**
122          * True if has "BudgetEstimatedCostAmount" element
123          */
124         public boolean isSetBudgetEstimatedCostAmount()
125         {
126             synchronized (monitor())
127             {
128                 check_orphaned();
129                 return get_store().count_elements(BUDGETESTIMATEDCOSTAMOUNT$0) != 0;
130             }
131         }
132         
133         /**
134          * Sets the "BudgetEstimatedCostAmount" element
135          */
136         public void setBudgetEstimatedCostAmount(java.math.BigDecimal budgetEstimatedCostAmount)
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(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
143                 if (target == null)
144                 {
145                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETESTIMATEDCOSTAMOUNT$0);
146                 }
147                 target.setBigDecimalValue(budgetEstimatedCostAmount);
148             }
149         }
150         
151         /**
152          * Sets (as xml) the "BudgetEstimatedCostAmount" element
153          */
154         public void xsetBudgetEstimatedCostAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetEstimatedCostAmount)
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(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
161                 if (target == null)
162                 {
163                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETESTIMATEDCOSTAMOUNT$0);
164                 }
165                 target.set(budgetEstimatedCostAmount);
166             }
167         }
168         
169         /**
170          * Unsets the "BudgetEstimatedCostAmount" element
171          */
172         public void unsetBudgetEstimatedCostAmount()
173         {
174             synchronized (monitor())
175             {
176                 check_orphaned();
177                 get_store().remove_element(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
178             }
179         }
180         
181         /**
182          * Gets the "BudgetNonAllowableCostAmount" element
183          */
184         public java.math.BigDecimal getBudgetNonAllowableCostAmount()
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(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
191                 if (target == null)
192                 {
193                     return null;
194                 }
195                 return target.getBigDecimalValue();
196             }
197         }
198         
199         /**
200          * Gets (as xml) the "BudgetNonAllowableCostAmount" element
201          */
202         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetNonAllowableCostAmount()
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(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
209                 return target;
210             }
211         }
212         
213         /**
214          * True if has "BudgetNonAllowableCostAmount" element
215          */
216         public boolean isSetBudgetNonAllowableCostAmount()
217         {
218             synchronized (monitor())
219             {
220                 check_orphaned();
221                 return get_store().count_elements(BUDGETNONALLOWABLECOSTAMOUNT$2) != 0;
222             }
223         }
224         
225         /**
226          * Sets the "BudgetNonAllowableCostAmount" element
227          */
228         public void setBudgetNonAllowableCostAmount(java.math.BigDecimal budgetNonAllowableCostAmount)
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(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
235                 if (target == null)
236                 {
237                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETNONALLOWABLECOSTAMOUNT$2);
238                 }
239                 target.setBigDecimalValue(budgetNonAllowableCostAmount);
240             }
241         }
242         
243         /**
244          * Sets (as xml) the "BudgetNonAllowableCostAmount" element
245          */
246         public void xsetBudgetNonAllowableCostAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetNonAllowableCostAmount)
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(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
253                 if (target == null)
254                 {
255                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETNONALLOWABLECOSTAMOUNT$2);
256                 }
257                 target.set(budgetNonAllowableCostAmount);
258             }
259         }
260         
261         /**
262          * Unsets the "BudgetNonAllowableCostAmount" element
263          */
264         public void unsetBudgetNonAllowableCostAmount()
265         {
266             synchronized (monitor())
267             {
268                 check_orphaned();
269                 get_store().remove_element(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
270             }
271         }
272         
273         /**
274          * Gets the "BudgetTotalAllowableCostAmount" element
275          */
276         public java.math.BigDecimal getBudgetTotalAllowableCostAmount()
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(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
283                 if (target == null)
284                 {
285                     return null;
286                 }
287                 return target.getBigDecimalValue();
288             }
289         }
290         
291         /**
292          * Gets (as xml) the "BudgetTotalAllowableCostAmount" element
293          */
294         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetTotalAllowableCostAmount()
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(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
301                 return target;
302             }
303         }
304         
305         /**
306          * True if has "BudgetTotalAllowableCostAmount" element
307          */
308         public boolean isSetBudgetTotalAllowableCostAmount()
309         {
310             synchronized (monitor())
311             {
312                 check_orphaned();
313                 return get_store().count_elements(BUDGETTOTALALLOWABLECOSTAMOUNT$4) != 0;
314             }
315         }
316         
317         /**
318          * Sets the "BudgetTotalAllowableCostAmount" element
319          */
320         public void setBudgetTotalAllowableCostAmount(java.math.BigDecimal budgetTotalAllowableCostAmount)
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(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
327                 if (target == null)
328                 {
329                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETTOTALALLOWABLECOSTAMOUNT$4);
330                 }
331                 target.setBigDecimalValue(budgetTotalAllowableCostAmount);
332             }
333         }
334         
335         /**
336          * Sets (as xml) the "BudgetTotalAllowableCostAmount" element
337          */
338         public void xsetBudgetTotalAllowableCostAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetTotalAllowableCostAmount)
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(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
345                 if (target == null)
346                 {
347                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETTOTALALLOWABLECOSTAMOUNT$4);
348                 }
349                 target.set(budgetTotalAllowableCostAmount);
350             }
351         }
352         
353         /**
354          * Unsets the "BudgetTotalAllowableCostAmount" element
355          */
356         public void unsetBudgetTotalAllowableCostAmount()
357         {
358             synchronized (monitor())
359             {
360                 check_orphaned();
361                 get_store().remove_element(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
362             }
363         }
364     }
365 }