View Javadoc
1   /*
2    * XML Type:  CostAmountGroup
3    * Namespace: http://apply.grants.gov/forms/SF424C_2_0-V2.0
4    * Java type: gov.grants.apply.forms.sf424C20V20.CostAmountGroup
5    *
6    * Automatically generated - do not modify.
7    */
8   package gov.grants.apply.forms.sf424C20V20.impl;
9   /**
10   * An XML CostAmountGroup(@http://apply.grants.gov/forms/SF424C_2_0-V2.0).
11   *
12   * This is a complex type.
13   */
14  public class CostAmountGroupImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424C20V20.CostAmountGroup
15  {
16      private static final long serialVersionUID = 1L;
17      
18      public CostAmountGroupImpl(org.apache.xmlbeans.SchemaType sType)
19      {
20          super(sType);
21      }
22      
23      private static final javax.xml.namespace.QName BUDGETESTIMATEDCOSTAMOUNT$0 = 
24          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C_2_0-V2.0", "BudgetEstimatedCostAmount");
25      private static final javax.xml.namespace.QName BUDGETNONALLOWABLECOSTAMOUNT$2 = 
26          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C_2_0-V2.0", "BudgetNonAllowableCostAmount");
27      private static final javax.xml.namespace.QName BUDGETTOTALALLOWABLECOSTAMOUNT$4 = 
28          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C_2_0-V2.0", "BudgetTotalAllowableCostAmount");
29      
30      
31      /**
32       * Gets the "BudgetEstimatedCostAmount" element
33       */
34      public java.math.BigDecimal getBudgetEstimatedCostAmount()
35      {
36          synchronized (monitor())
37          {
38              check_orphaned();
39              org.apache.xmlbeans.SimpleValue target = null;
40              target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
41              if (target == null)
42              {
43                  return null;
44              }
45              return target.getBigDecimalValue();
46          }
47      }
48      
49      /**
50       * Gets (as xml) the "BudgetEstimatedCostAmount" element
51       */
52      public gov.grants.apply.forms.sf424C20V20.EnteredAmountType xgetBudgetEstimatedCostAmount()
53      {
54          synchronized (monitor())
55          {
56              check_orphaned();
57              gov.grants.apply.forms.sf424C20V20.EnteredAmountType target = null;
58              target = (gov.grants.apply.forms.sf424C20V20.EnteredAmountType)get_store().find_element_user(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
59              return target;
60          }
61      }
62      
63      /**
64       * True if has "BudgetEstimatedCostAmount" element
65       */
66      public boolean isSetBudgetEstimatedCostAmount()
67      {
68          synchronized (monitor())
69          {
70              check_orphaned();
71              return get_store().count_elements(BUDGETESTIMATEDCOSTAMOUNT$0) != 0;
72          }
73      }
74      
75      /**
76       * Sets the "BudgetEstimatedCostAmount" element
77       */
78      public void setBudgetEstimatedCostAmount(java.math.BigDecimal budgetEstimatedCostAmount)
79      {
80          synchronized (monitor())
81          {
82              check_orphaned();
83              org.apache.xmlbeans.SimpleValue target = null;
84              target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
85              if (target == null)
86              {
87                  target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETESTIMATEDCOSTAMOUNT$0);
88              }
89              target.setBigDecimalValue(budgetEstimatedCostAmount);
90          }
91      }
92      
93      /**
94       * Sets (as xml) the "BudgetEstimatedCostAmount" element
95       */
96      public void xsetBudgetEstimatedCostAmount(gov.grants.apply.forms.sf424C20V20.EnteredAmountType budgetEstimatedCostAmount)
97      {
98          synchronized (monitor())
99          {
100             check_orphaned();
101             gov.grants.apply.forms.sf424C20V20.EnteredAmountType target = null;
102             target = (gov.grants.apply.forms.sf424C20V20.EnteredAmountType)get_store().find_element_user(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
103             if (target == null)
104             {
105                 target = (gov.grants.apply.forms.sf424C20V20.EnteredAmountType)get_store().add_element_user(BUDGETESTIMATEDCOSTAMOUNT$0);
106             }
107             target.set(budgetEstimatedCostAmount);
108         }
109     }
110     
111     /**
112      * Unsets the "BudgetEstimatedCostAmount" element
113      */
114     public void unsetBudgetEstimatedCostAmount()
115     {
116         synchronized (monitor())
117         {
118             check_orphaned();
119             get_store().remove_element(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
120         }
121     }
122     
123     /**
124      * Gets the "BudgetNonAllowableCostAmount" element
125      */
126     public java.math.BigDecimal getBudgetNonAllowableCostAmount()
127     {
128         synchronized (monitor())
129         {
130             check_orphaned();
131             org.apache.xmlbeans.SimpleValue target = null;
132             target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
133             if (target == null)
134             {
135                 return null;
136             }
137             return target.getBigDecimalValue();
138         }
139     }
140     
141     /**
142      * Gets (as xml) the "BudgetNonAllowableCostAmount" element
143      */
144     public gov.grants.apply.forms.sf424C20V20.EnteredAmountType xgetBudgetNonAllowableCostAmount()
145     {
146         synchronized (monitor())
147         {
148             check_orphaned();
149             gov.grants.apply.forms.sf424C20V20.EnteredAmountType target = null;
150             target = (gov.grants.apply.forms.sf424C20V20.EnteredAmountType)get_store().find_element_user(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
151             return target;
152         }
153     }
154     
155     /**
156      * True if has "BudgetNonAllowableCostAmount" element
157      */
158     public boolean isSetBudgetNonAllowableCostAmount()
159     {
160         synchronized (monitor())
161         {
162             check_orphaned();
163             return get_store().count_elements(BUDGETNONALLOWABLECOSTAMOUNT$2) != 0;
164         }
165     }
166     
167     /**
168      * Sets the "BudgetNonAllowableCostAmount" element
169      */
170     public void setBudgetNonAllowableCostAmount(java.math.BigDecimal budgetNonAllowableCostAmount)
171     {
172         synchronized (monitor())
173         {
174             check_orphaned();
175             org.apache.xmlbeans.SimpleValue target = null;
176             target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
177             if (target == null)
178             {
179                 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETNONALLOWABLECOSTAMOUNT$2);
180             }
181             target.setBigDecimalValue(budgetNonAllowableCostAmount);
182         }
183     }
184     
185     /**
186      * Sets (as xml) the "BudgetNonAllowableCostAmount" element
187      */
188     public void xsetBudgetNonAllowableCostAmount(gov.grants.apply.forms.sf424C20V20.EnteredAmountType budgetNonAllowableCostAmount)
189     {
190         synchronized (monitor())
191         {
192             check_orphaned();
193             gov.grants.apply.forms.sf424C20V20.EnteredAmountType target = null;
194             target = (gov.grants.apply.forms.sf424C20V20.EnteredAmountType)get_store().find_element_user(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
195             if (target == null)
196             {
197                 target = (gov.grants.apply.forms.sf424C20V20.EnteredAmountType)get_store().add_element_user(BUDGETNONALLOWABLECOSTAMOUNT$2);
198             }
199             target.set(budgetNonAllowableCostAmount);
200         }
201     }
202     
203     /**
204      * Unsets the "BudgetNonAllowableCostAmount" element
205      */
206     public void unsetBudgetNonAllowableCostAmount()
207     {
208         synchronized (monitor())
209         {
210             check_orphaned();
211             get_store().remove_element(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
212         }
213     }
214     
215     /**
216      * Gets the "BudgetTotalAllowableCostAmount" element
217      */
218     public java.math.BigDecimal getBudgetTotalAllowableCostAmount()
219     {
220         synchronized (monitor())
221         {
222             check_orphaned();
223             org.apache.xmlbeans.SimpleValue target = null;
224             target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
225             if (target == null)
226             {
227                 return null;
228             }
229             return target.getBigDecimalValue();
230         }
231     }
232     
233     /**
234      * Gets (as xml) the "BudgetTotalAllowableCostAmount" element
235      */
236     public gov.grants.apply.forms.sf424C20V20.EnteredAmountType xgetBudgetTotalAllowableCostAmount()
237     {
238         synchronized (monitor())
239         {
240             check_orphaned();
241             gov.grants.apply.forms.sf424C20V20.EnteredAmountType target = null;
242             target = (gov.grants.apply.forms.sf424C20V20.EnteredAmountType)get_store().find_element_user(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
243             return target;
244         }
245     }
246     
247     /**
248      * True if has "BudgetTotalAllowableCostAmount" element
249      */
250     public boolean isSetBudgetTotalAllowableCostAmount()
251     {
252         synchronized (monitor())
253         {
254             check_orphaned();
255             return get_store().count_elements(BUDGETTOTALALLOWABLECOSTAMOUNT$4) != 0;
256         }
257     }
258     
259     /**
260      * Sets the "BudgetTotalAllowableCostAmount" element
261      */
262     public void setBudgetTotalAllowableCostAmount(java.math.BigDecimal budgetTotalAllowableCostAmount)
263     {
264         synchronized (monitor())
265         {
266             check_orphaned();
267             org.apache.xmlbeans.SimpleValue target = null;
268             target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
269             if (target == null)
270             {
271                 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETTOTALALLOWABLECOSTAMOUNT$4);
272             }
273             target.setBigDecimalValue(budgetTotalAllowableCostAmount);
274         }
275     }
276     
277     /**
278      * Sets (as xml) the "BudgetTotalAllowableCostAmount" element
279      */
280     public void xsetBudgetTotalAllowableCostAmount(gov.grants.apply.forms.sf424C20V20.EnteredAmountType budgetTotalAllowableCostAmount)
281     {
282         synchronized (monitor())
283         {
284             check_orphaned();
285             gov.grants.apply.forms.sf424C20V20.EnteredAmountType target = null;
286             target = (gov.grants.apply.forms.sf424C20V20.EnteredAmountType)get_store().find_element_user(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
287             if (target == null)
288             {
289                 target = (gov.grants.apply.forms.sf424C20V20.EnteredAmountType)get_store().add_element_user(BUDGETTOTALALLOWABLECOSTAMOUNT$4);
290             }
291             target.set(budgetTotalAllowableCostAmount);
292         }
293     }
294     
295     /**
296      * Unsets the "BudgetTotalAllowableCostAmount" element
297      */
298     public void unsetBudgetTotalAllowableCostAmount()
299     {
300         synchronized (monitor())
301         {
302             check_orphaned();
303             get_store().remove_element(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
304         }
305     }
306 }