View Javadoc
1   /*
2    * An XML document type.
3    * Localname: ProjectCosts
4    * Namespace: http://apply.grants.gov/forms/SF424C-V1.0
5    * Java type: gov.grants.apply.forms.sf424CV10.ProjectCostsDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424CV10.impl;
10  /**
11   * A document containing one ProjectCosts(@http://apply.grants.gov/forms/SF424C-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class ProjectCostsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424CV10.ProjectCostsDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public ProjectCostsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName PROJECTCOSTS$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "ProjectCosts");
26      
27      
28      /**
29       * Gets the "ProjectCosts" element
30       */
31      public gov.grants.apply.forms.sf424CV10.ProjectCostsDocument.ProjectCosts getProjectCosts()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424CV10.ProjectCostsDocument.ProjectCosts target = null;
37              target = (gov.grants.apply.forms.sf424CV10.ProjectCostsDocument.ProjectCosts)get_store().find_element_user(PROJECTCOSTS$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "ProjectCosts" element
48       */
49      public void setProjectCosts(gov.grants.apply.forms.sf424CV10.ProjectCostsDocument.ProjectCosts projectCosts)
50      {
51          generatedSetterHelperImpl(projectCosts, PROJECTCOSTS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "ProjectCosts" element
56       */
57      public gov.grants.apply.forms.sf424CV10.ProjectCostsDocument.ProjectCosts addNewProjectCosts()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424CV10.ProjectCostsDocument.ProjectCosts target = null;
63              target = (gov.grants.apply.forms.sf424CV10.ProjectCostsDocument.ProjectCosts)get_store().add_element_user(PROJECTCOSTS$0);
64              return target;
65          }
66      }
67      /**
68       * An XML ProjectCosts(@http://apply.grants.gov/forms/SF424C-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class ProjectCostsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424CV10.ProjectCostsDocument.ProjectCosts
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public ProjectCostsImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName COSTLINEITEM$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "CostLineItem");
83          private static final javax.xml.namespace.QName COSTSUBTOTALBEFORECONTINGENCIES$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "CostSubtotalBeforeContingencies");
85          private static final javax.xml.namespace.QName CONTINGENCIES$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "Contingencies");
87          private static final javax.xml.namespace.QName COSTSUBTOTALAFTERCONTINGENCIES$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "CostSubtotalAfterContingencies");
89          private static final javax.xml.namespace.QName PROGRAMINCOME$8 = 
90              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "ProgramIncome");
91          private static final javax.xml.namespace.QName TOTALPROJECTCOSTS$10 = 
92              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "TotalProjectCosts");
93          
94          
95          /**
96           * Gets array of all "CostLineItem" elements
97           */
98          public gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem[] getCostLineItemArray()
99          {
100             synchronized (monitor())
101             {
102                 check_orphaned();
103                 java.util.List targetList = new java.util.ArrayList();
104                 get_store().find_all_element_users(COSTLINEITEM$0, targetList);
105                 gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem[] result = new gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem[targetList.size()];
106                 targetList.toArray(result);
107                 return result;
108             }
109         }
110         
111         /**
112          * Gets ith "CostLineItem" element
113          */
114         public gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem getCostLineItemArray(int i)
115         {
116             synchronized (monitor())
117             {
118                 check_orphaned();
119                 gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem target = null;
120                 target = (gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem)get_store().find_element_user(COSTLINEITEM$0, i);
121                 if (target == null)
122                 {
123                     throw new IndexOutOfBoundsException();
124                 }
125                 return target;
126             }
127         }
128         
129         /**
130          * Returns number of "CostLineItem" element
131          */
132         public int sizeOfCostLineItemArray()
133         {
134             synchronized (monitor())
135             {
136                 check_orphaned();
137                 return get_store().count_elements(COSTLINEITEM$0);
138             }
139         }
140         
141         /**
142          * Sets array of all "CostLineItem" element  WARNING: This method is not atomicaly synchronized.
143          */
144         public void setCostLineItemArray(gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem[] costLineItemArray)
145         {
146             check_orphaned();
147             arraySetterHelper(costLineItemArray, COSTLINEITEM$0);
148         }
149         
150         /**
151          * Sets ith "CostLineItem" element
152          */
153         public void setCostLineItemArray(int i, gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem costLineItem)
154         {
155             generatedSetterHelperImpl(costLineItem, COSTLINEITEM$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
156         }
157         
158         /**
159          * Inserts and returns a new empty value (as xml) as the ith "CostLineItem" element
160          */
161         public gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem insertNewCostLineItem(int i)
162         {
163             synchronized (monitor())
164             {
165                 check_orphaned();
166                 gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem target = null;
167                 target = (gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem)get_store().insert_element_user(COSTLINEITEM$0, i);
168                 return target;
169             }
170         }
171         
172         /**
173          * Appends and returns a new empty value (as xml) as the last "CostLineItem" element
174          */
175         public gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem addNewCostLineItem()
176         {
177             synchronized (monitor())
178             {
179                 check_orphaned();
180                 gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem target = null;
181                 target = (gov.grants.apply.forms.sf424CV10.CostLineItemDocument.CostLineItem)get_store().add_element_user(COSTLINEITEM$0);
182                 return target;
183             }
184         }
185         
186         /**
187          * Removes the ith "CostLineItem" element
188          */
189         public void removeCostLineItem(int i)
190         {
191             synchronized (monitor())
192             {
193                 check_orphaned();
194                 get_store().remove_element(COSTLINEITEM$0, i);
195             }
196         }
197         
198         /**
199          * Gets the "CostSubtotalBeforeContingencies" element
200          */
201         public gov.grants.apply.forms.sf424CV10.CostSubtotalBeforeContingenciesDocument.CostSubtotalBeforeContingencies getCostSubtotalBeforeContingencies()
202         {
203             synchronized (monitor())
204             {
205                 check_orphaned();
206                 gov.grants.apply.forms.sf424CV10.CostSubtotalBeforeContingenciesDocument.CostSubtotalBeforeContingencies target = null;
207                 target = (gov.grants.apply.forms.sf424CV10.CostSubtotalBeforeContingenciesDocument.CostSubtotalBeforeContingencies)get_store().find_element_user(COSTSUBTOTALBEFORECONTINGENCIES$2, 0);
208                 if (target == null)
209                 {
210                     return null;
211                 }
212                 return target;
213             }
214         }
215         
216         /**
217          * True if has "CostSubtotalBeforeContingencies" element
218          */
219         public boolean isSetCostSubtotalBeforeContingencies()
220         {
221             synchronized (monitor())
222             {
223                 check_orphaned();
224                 return get_store().count_elements(COSTSUBTOTALBEFORECONTINGENCIES$2) != 0;
225             }
226         }
227         
228         /**
229          * Sets the "CostSubtotalBeforeContingencies" element
230          */
231         public void setCostSubtotalBeforeContingencies(gov.grants.apply.forms.sf424CV10.CostSubtotalBeforeContingenciesDocument.CostSubtotalBeforeContingencies costSubtotalBeforeContingencies)
232         {
233             generatedSetterHelperImpl(costSubtotalBeforeContingencies, COSTSUBTOTALBEFORECONTINGENCIES$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
234         }
235         
236         /**
237          * Appends and returns a new empty "CostSubtotalBeforeContingencies" element
238          */
239         public gov.grants.apply.forms.sf424CV10.CostSubtotalBeforeContingenciesDocument.CostSubtotalBeforeContingencies addNewCostSubtotalBeforeContingencies()
240         {
241             synchronized (monitor())
242             {
243                 check_orphaned();
244                 gov.grants.apply.forms.sf424CV10.CostSubtotalBeforeContingenciesDocument.CostSubtotalBeforeContingencies target = null;
245                 target = (gov.grants.apply.forms.sf424CV10.CostSubtotalBeforeContingenciesDocument.CostSubtotalBeforeContingencies)get_store().add_element_user(COSTSUBTOTALBEFORECONTINGENCIES$2);
246                 return target;
247             }
248         }
249         
250         /**
251          * Unsets the "CostSubtotalBeforeContingencies" element
252          */
253         public void unsetCostSubtotalBeforeContingencies()
254         {
255             synchronized (monitor())
256             {
257                 check_orphaned();
258                 get_store().remove_element(COSTSUBTOTALBEFORECONTINGENCIES$2, 0);
259             }
260         }
261         
262         /**
263          * Gets the "Contingencies" element
264          */
265         public gov.grants.apply.forms.sf424CV10.ContingenciesDocument.Contingencies getContingencies()
266         {
267             synchronized (monitor())
268             {
269                 check_orphaned();
270                 gov.grants.apply.forms.sf424CV10.ContingenciesDocument.Contingencies target = null;
271                 target = (gov.grants.apply.forms.sf424CV10.ContingenciesDocument.Contingencies)get_store().find_element_user(CONTINGENCIES$4, 0);
272                 if (target == null)
273                 {
274                     return null;
275                 }
276                 return target;
277             }
278         }
279         
280         /**
281          * True if has "Contingencies" element
282          */
283         public boolean isSetContingencies()
284         {
285             synchronized (monitor())
286             {
287                 check_orphaned();
288                 return get_store().count_elements(CONTINGENCIES$4) != 0;
289             }
290         }
291         
292         /**
293          * Sets the "Contingencies" element
294          */
295         public void setContingencies(gov.grants.apply.forms.sf424CV10.ContingenciesDocument.Contingencies contingencies)
296         {
297             generatedSetterHelperImpl(contingencies, CONTINGENCIES$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
298         }
299         
300         /**
301          * Appends and returns a new empty "Contingencies" element
302          */
303         public gov.grants.apply.forms.sf424CV10.ContingenciesDocument.Contingencies addNewContingencies()
304         {
305             synchronized (monitor())
306             {
307                 check_orphaned();
308                 gov.grants.apply.forms.sf424CV10.ContingenciesDocument.Contingencies target = null;
309                 target = (gov.grants.apply.forms.sf424CV10.ContingenciesDocument.Contingencies)get_store().add_element_user(CONTINGENCIES$4);
310                 return target;
311             }
312         }
313         
314         /**
315          * Unsets the "Contingencies" element
316          */
317         public void unsetContingencies()
318         {
319             synchronized (monitor())
320             {
321                 check_orphaned();
322                 get_store().remove_element(CONTINGENCIES$4, 0);
323             }
324         }
325         
326         /**
327          * Gets the "CostSubtotalAfterContingencies" element
328          */
329         public gov.grants.apply.forms.sf424CV10.CostSubtotalAfterContingenciesDocument.CostSubtotalAfterContingencies getCostSubtotalAfterContingencies()
330         {
331             synchronized (monitor())
332             {
333                 check_orphaned();
334                 gov.grants.apply.forms.sf424CV10.CostSubtotalAfterContingenciesDocument.CostSubtotalAfterContingencies target = null;
335                 target = (gov.grants.apply.forms.sf424CV10.CostSubtotalAfterContingenciesDocument.CostSubtotalAfterContingencies)get_store().find_element_user(COSTSUBTOTALAFTERCONTINGENCIES$6, 0);
336                 if (target == null)
337                 {
338                     return null;
339                 }
340                 return target;
341             }
342         }
343         
344         /**
345          * True if has "CostSubtotalAfterContingencies" element
346          */
347         public boolean isSetCostSubtotalAfterContingencies()
348         {
349             synchronized (monitor())
350             {
351                 check_orphaned();
352                 return get_store().count_elements(COSTSUBTOTALAFTERCONTINGENCIES$6) != 0;
353             }
354         }
355         
356         /**
357          * Sets the "CostSubtotalAfterContingencies" element
358          */
359         public void setCostSubtotalAfterContingencies(gov.grants.apply.forms.sf424CV10.CostSubtotalAfterContingenciesDocument.CostSubtotalAfterContingencies costSubtotalAfterContingencies)
360         {
361             generatedSetterHelperImpl(costSubtotalAfterContingencies, COSTSUBTOTALAFTERCONTINGENCIES$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
362         }
363         
364         /**
365          * Appends and returns a new empty "CostSubtotalAfterContingencies" element
366          */
367         public gov.grants.apply.forms.sf424CV10.CostSubtotalAfterContingenciesDocument.CostSubtotalAfterContingencies addNewCostSubtotalAfterContingencies()
368         {
369             synchronized (monitor())
370             {
371                 check_orphaned();
372                 gov.grants.apply.forms.sf424CV10.CostSubtotalAfterContingenciesDocument.CostSubtotalAfterContingencies target = null;
373                 target = (gov.grants.apply.forms.sf424CV10.CostSubtotalAfterContingenciesDocument.CostSubtotalAfterContingencies)get_store().add_element_user(COSTSUBTOTALAFTERCONTINGENCIES$6);
374                 return target;
375             }
376         }
377         
378         /**
379          * Unsets the "CostSubtotalAfterContingencies" element
380          */
381         public void unsetCostSubtotalAfterContingencies()
382         {
383             synchronized (monitor())
384             {
385                 check_orphaned();
386                 get_store().remove_element(COSTSUBTOTALAFTERCONTINGENCIES$6, 0);
387             }
388         }
389         
390         /**
391          * Gets the "ProgramIncome" element
392          */
393         public gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome getProgramIncome()
394         {
395             synchronized (monitor())
396             {
397                 check_orphaned();
398                 gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome target = null;
399                 target = (gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome)get_store().find_element_user(PROGRAMINCOME$8, 0);
400                 if (target == null)
401                 {
402                     return null;
403                 }
404                 return target;
405             }
406         }
407         
408         /**
409          * True if has "ProgramIncome" element
410          */
411         public boolean isSetProgramIncome()
412         {
413             synchronized (monitor())
414             {
415                 check_orphaned();
416                 return get_store().count_elements(PROGRAMINCOME$8) != 0;
417             }
418         }
419         
420         /**
421          * Sets the "ProgramIncome" element
422          */
423         public void setProgramIncome(gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome programIncome)
424         {
425             generatedSetterHelperImpl(programIncome, PROGRAMINCOME$8, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
426         }
427         
428         /**
429          * Appends and returns a new empty "ProgramIncome" element
430          */
431         public gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome addNewProgramIncome()
432         {
433             synchronized (monitor())
434             {
435                 check_orphaned();
436                 gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome target = null;
437                 target = (gov.grants.apply.forms.sf424CV10.ProgramIncomeDocument.ProgramIncome)get_store().add_element_user(PROGRAMINCOME$8);
438                 return target;
439             }
440         }
441         
442         /**
443          * Unsets the "ProgramIncome" element
444          */
445         public void unsetProgramIncome()
446         {
447             synchronized (monitor())
448             {
449                 check_orphaned();
450                 get_store().remove_element(PROGRAMINCOME$8, 0);
451             }
452         }
453         
454         /**
455          * Gets the "TotalProjectCosts" element
456          */
457         public gov.grants.apply.forms.sf424CV10.TotalProjectCostsDocument.TotalProjectCosts getTotalProjectCosts()
458         {
459             synchronized (monitor())
460             {
461                 check_orphaned();
462                 gov.grants.apply.forms.sf424CV10.TotalProjectCostsDocument.TotalProjectCosts target = null;
463                 target = (gov.grants.apply.forms.sf424CV10.TotalProjectCostsDocument.TotalProjectCosts)get_store().find_element_user(TOTALPROJECTCOSTS$10, 0);
464                 if (target == null)
465                 {
466                     return null;
467                 }
468                 return target;
469             }
470         }
471         
472         /**
473          * True if has "TotalProjectCosts" element
474          */
475         public boolean isSetTotalProjectCosts()
476         {
477             synchronized (monitor())
478             {
479                 check_orphaned();
480                 return get_store().count_elements(TOTALPROJECTCOSTS$10) != 0;
481             }
482         }
483         
484         /**
485          * Sets the "TotalProjectCosts" element
486          */
487         public void setTotalProjectCosts(gov.grants.apply.forms.sf424CV10.TotalProjectCostsDocument.TotalProjectCosts totalProjectCosts)
488         {
489             generatedSetterHelperImpl(totalProjectCosts, TOTALPROJECTCOSTS$10, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
490         }
491         
492         /**
493          * Appends and returns a new empty "TotalProjectCosts" element
494          */
495         public gov.grants.apply.forms.sf424CV10.TotalProjectCostsDocument.TotalProjectCosts addNewTotalProjectCosts()
496         {
497             synchronized (monitor())
498             {
499                 check_orphaned();
500                 gov.grants.apply.forms.sf424CV10.TotalProjectCostsDocument.TotalProjectCosts target = null;
501                 target = (gov.grants.apply.forms.sf424CV10.TotalProjectCostsDocument.TotalProjectCosts)get_store().add_element_user(TOTALPROJECTCOSTS$10);
502                 return target;
503             }
504         }
505         
506         /**
507          * Unsets the "TotalProjectCosts" element
508          */
509         public void unsetTotalProjectCosts()
510         {
511             synchronized (monitor())
512             {
513                 check_orphaned();
514                 get_store().remove_element(TOTALPROJECTCOSTS$10, 0);
515             }
516         }
517     }
518 }