View Javadoc
1   /*
2    * An XML document type.
3    * Localname: CostLineItem
4    * Namespace: http://apply.grants.gov/forms/SF424C-V1.0
5    * Java type: gov.grants.apply.forms.sf424CV10.CostLineItemDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424CV10.impl;
10  /**
11   * A document containing one CostLineItem(@http://apply.grants.gov/forms/SF424C-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class CostLineItemDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424CV10.CostLineItemDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public CostLineItemDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName COSTLINEITEM$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "CostLineItem");
26      
27      
28      /**
29       * Gets the "CostLineItem" element
30       */
31      public gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem getCostLineItem()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem target = null;
37              target = (gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem)get_store().find_element_user(COSTLINEITEM$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "CostLineItem" element
48       */
49      public void setCostLineItem(gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem costLineItem)
50      {
51          generatedSetterHelperImpl(costLineItem, COSTLINEITEM$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "CostLineItem" element
56       */
57      public gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem addNewCostLineItem()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem target = null;
63              target = (gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem)get_store().add_element_user(COSTLINEITEM$0);
64              return target;
65          }
66      }
67      /**
68       * An XML CostLineItem(@http://apply.grants.gov/forms/SF424C-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class CostLineItemImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public CostLineItemImpl(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          private static final javax.xml.namespace.QName CLASSIFICATIONID$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "classificationID");
89          
90          
91          /**
92           * Gets the "BudgetEstimatedCostAmount" element
93           */
94          public java.math.BigDecimal getBudgetEstimatedCostAmount()
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(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
101                 if (target == null)
102                 {
103                     return null;
104                 }
105                 return target.getBigDecimalValue();
106             }
107         }
108         
109         /**
110          * Gets (as xml) the "BudgetEstimatedCostAmount" element
111          */
112         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetEstimatedCostAmount()
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(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
119                 return target;
120             }
121         }
122         
123         /**
124          * True if has "BudgetEstimatedCostAmount" element
125          */
126         public boolean isSetBudgetEstimatedCostAmount()
127         {
128             synchronized (monitor())
129             {
130                 check_orphaned();
131                 return get_store().count_elements(BUDGETESTIMATEDCOSTAMOUNT$0) != 0;
132             }
133         }
134         
135         /**
136          * Sets the "BudgetEstimatedCostAmount" element
137          */
138         public void setBudgetEstimatedCostAmount(java.math.BigDecimal budgetEstimatedCostAmount)
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(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
145                 if (target == null)
146                 {
147                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETESTIMATEDCOSTAMOUNT$0);
148                 }
149                 target.setBigDecimalValue(budgetEstimatedCostAmount);
150             }
151         }
152         
153         /**
154          * Sets (as xml) the "BudgetEstimatedCostAmount" element
155          */
156         public void xsetBudgetEstimatedCostAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetEstimatedCostAmount)
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(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
163                 if (target == null)
164                 {
165                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETESTIMATEDCOSTAMOUNT$0);
166                 }
167                 target.set(budgetEstimatedCostAmount);
168             }
169         }
170         
171         /**
172          * Unsets the "BudgetEstimatedCostAmount" element
173          */
174         public void unsetBudgetEstimatedCostAmount()
175         {
176             synchronized (monitor())
177             {
178                 check_orphaned();
179                 get_store().remove_element(BUDGETESTIMATEDCOSTAMOUNT$0, 0);
180             }
181         }
182         
183         /**
184          * Gets the "BudgetNonAllowableCostAmount" element
185          */
186         public java.math.BigDecimal getBudgetNonAllowableCostAmount()
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(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
193                 if (target == null)
194                 {
195                     return null;
196                 }
197                 return target.getBigDecimalValue();
198             }
199         }
200         
201         /**
202          * Gets (as xml) the "BudgetNonAllowableCostAmount" element
203          */
204         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetNonAllowableCostAmount()
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(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
211                 return target;
212             }
213         }
214         
215         /**
216          * True if has "BudgetNonAllowableCostAmount" element
217          */
218         public boolean isSetBudgetNonAllowableCostAmount()
219         {
220             synchronized (monitor())
221             {
222                 check_orphaned();
223                 return get_store().count_elements(BUDGETNONALLOWABLECOSTAMOUNT$2) != 0;
224             }
225         }
226         
227         /**
228          * Sets the "BudgetNonAllowableCostAmount" element
229          */
230         public void setBudgetNonAllowableCostAmount(java.math.BigDecimal budgetNonAllowableCostAmount)
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(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
237                 if (target == null)
238                 {
239                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETNONALLOWABLECOSTAMOUNT$2);
240                 }
241                 target.setBigDecimalValue(budgetNonAllowableCostAmount);
242             }
243         }
244         
245         /**
246          * Sets (as xml) the "BudgetNonAllowableCostAmount" element
247          */
248         public void xsetBudgetNonAllowableCostAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetNonAllowableCostAmount)
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(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
255                 if (target == null)
256                 {
257                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETNONALLOWABLECOSTAMOUNT$2);
258                 }
259                 target.set(budgetNonAllowableCostAmount);
260             }
261         }
262         
263         /**
264          * Unsets the "BudgetNonAllowableCostAmount" element
265          */
266         public void unsetBudgetNonAllowableCostAmount()
267         {
268             synchronized (monitor())
269             {
270                 check_orphaned();
271                 get_store().remove_element(BUDGETNONALLOWABLECOSTAMOUNT$2, 0);
272             }
273         }
274         
275         /**
276          * Gets the "BudgetTotalAllowableCostAmount" element
277          */
278         public java.math.BigDecimal getBudgetTotalAllowableCostAmount()
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(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
285                 if (target == null)
286                 {
287                     return null;
288                 }
289                 return target.getBigDecimalValue();
290             }
291         }
292         
293         /**
294          * Gets (as xml) the "BudgetTotalAllowableCostAmount" element
295          */
296         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetTotalAllowableCostAmount()
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(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
303                 return target;
304             }
305         }
306         
307         /**
308          * True if has "BudgetTotalAllowableCostAmount" element
309          */
310         public boolean isSetBudgetTotalAllowableCostAmount()
311         {
312             synchronized (monitor())
313             {
314                 check_orphaned();
315                 return get_store().count_elements(BUDGETTOTALALLOWABLECOSTAMOUNT$4) != 0;
316             }
317         }
318         
319         /**
320          * Sets the "BudgetTotalAllowableCostAmount" element
321          */
322         public void setBudgetTotalAllowableCostAmount(java.math.BigDecimal budgetTotalAllowableCostAmount)
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(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
329                 if (target == null)
330                 {
331                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETTOTALALLOWABLECOSTAMOUNT$4);
332                 }
333                 target.setBigDecimalValue(budgetTotalAllowableCostAmount);
334             }
335         }
336         
337         /**
338          * Sets (as xml) the "BudgetTotalAllowableCostAmount" element
339          */
340         public void xsetBudgetTotalAllowableCostAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetTotalAllowableCostAmount)
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(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
347                 if (target == null)
348                 {
349                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETTOTALALLOWABLECOSTAMOUNT$4);
350                 }
351                 target.set(budgetTotalAllowableCostAmount);
352             }
353         }
354         
355         /**
356          * Unsets the "BudgetTotalAllowableCostAmount" element
357          */
358         public void unsetBudgetTotalAllowableCostAmount()
359         {
360             synchronized (monitor())
361             {
362                 check_orphaned();
363                 get_store().remove_element(BUDGETTOTALALLOWABLECOSTAMOUNT$4, 0);
364             }
365         }
366         
367         /**
368          * Gets the "classificationID" attribute
369          */
370         public gov.grants.apply.forms.sf424CV10.ClassificationIDType.Enum getClassificationID()
371         {
372             synchronized (monitor())
373             {
374                 check_orphaned();
375                 org.apache.xmlbeans.SimpleValue target = null;
376                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSIFICATIONID$6);
377                 if (target == null)
378                 {
379                     return null;
380                 }
381                 return (gov.grants.apply.forms.sf424CV10.ClassificationIDType.Enum)target.getEnumValue();
382             }
383         }
384         
385         /**
386          * Gets (as xml) the "classificationID" attribute
387          */
388         public gov.grants.apply.forms.sf424CV10.ClassificationIDType xgetClassificationID()
389         {
390             synchronized (monitor())
391             {
392                 check_orphaned();
393                 gov.grants.apply.forms.sf424CV10.ClassificationIDType target = null;
394                 target = (gov.grants.apply.forms.sf424CV10.ClassificationIDType)get_store().find_attribute_user(CLASSIFICATIONID$6);
395                 return target;
396             }
397         }
398         
399         /**
400          * Sets the "classificationID" attribute
401          */
402         public void setClassificationID(gov.grants.apply.forms.sf424CV10.ClassificationIDType.Enum classificationID)
403         {
404             synchronized (monitor())
405             {
406                 check_orphaned();
407                 org.apache.xmlbeans.SimpleValue target = null;
408                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSIFICATIONID$6);
409                 if (target == null)
410                 {
411                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CLASSIFICATIONID$6);
412                 }
413                 target.setEnumValue(classificationID);
414             }
415         }
416         
417         /**
418          * Sets (as xml) the "classificationID" attribute
419          */
420         public void xsetClassificationID(gov.grants.apply.forms.sf424CV10.ClassificationIDType classificationID)
421         {
422             synchronized (monitor())
423             {
424                 check_orphaned();
425                 gov.grants.apply.forms.sf424CV10.ClassificationIDType target = null;
426                 target = (gov.grants.apply.forms.sf424CV10.ClassificationIDType)get_store().find_attribute_user(CLASSIFICATIONID$6);
427                 if (target == null)
428                 {
429                     target = (gov.grants.apply.forms.sf424CV10.ClassificationIDType)get_store().add_attribute_user(CLASSIFICATIONID$6);
430                 }
431                 target.set(classificationID);
432             }
433         }
434     }
435 }