View Javadoc
1   /*
2    * An XML document type.
3    * Localname: FundsLineItem
4    * Namespace: http://apply.grants.gov/forms/SF424A-V1.0
5    * Java type: gov.grants.apply.forms.sf424AV10.FundsLineItemDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424AV10.impl;
10  /**
11   * A document containing one FundsLineItem(@http://apply.grants.gov/forms/SF424A-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class FundsLineItemDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424AV10.FundsLineItemDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public FundsLineItemDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName FUNDSLINEITEM$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "FundsLineItem");
26      
27      
28      /**
29       * Gets the "FundsLineItem" element
30       */
31      public gov.grants.apply.forms.sf424AV10.FundsLineItemDocument.FundsLineItem getFundsLineItem()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424AV10.FundsLineItemDocument.FundsLineItem target = null;
37              target = (gov.grants.apply.forms.sf424AV10.FundsLineItemDocument.FundsLineItem)get_store().find_element_user(FUNDSLINEITEM$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "FundsLineItem" element
48       */
49      public void setFundsLineItem(gov.grants.apply.forms.sf424AV10.FundsLineItemDocument.FundsLineItem fundsLineItem)
50      {
51          generatedSetterHelperImpl(fundsLineItem, FUNDSLINEITEM$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "FundsLineItem" element
56       */
57      public gov.grants.apply.forms.sf424AV10.FundsLineItemDocument.FundsLineItem addNewFundsLineItem()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424AV10.FundsLineItemDocument.FundsLineItem target = null;
63              target = (gov.grants.apply.forms.sf424AV10.FundsLineItemDocument.FundsLineItem)get_store().add_element_user(FUNDSLINEITEM$0);
64              return target;
65          }
66      }
67      /**
68       * An XML FundsLineItem(@http://apply.grants.gov/forms/SF424A-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class FundsLineItemImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424AV10.FundsLineItemDocument.FundsLineItem
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public FundsLineItemImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName BUDGETFIRSTYEARAMOUNT$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetFirstYearAmount");
83          private static final javax.xml.namespace.QName BUDGETSECONDYEARAMOUNT$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetSecondYearAmount");
85          private static final javax.xml.namespace.QName BUDGETTHIRDYEARAMOUNT$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetThirdYearAmount");
87          private static final javax.xml.namespace.QName BUDGETFOURTHYEARAMOUNT$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetFourthYearAmount");
89          private static final javax.xml.namespace.QName ACTIVITYTITLE$8 = 
90              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "activityTitle");
91          
92          
93          /**
94           * Gets the "BudgetFirstYearAmount" element
95           */
96          public java.math.BigDecimal getBudgetFirstYearAmount()
97          {
98              synchronized (monitor())
99              {
100                 check_orphaned();
101                 org.apache.xmlbeans.SimpleValue target = null;
102                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETFIRSTYEARAMOUNT$0, 0);
103                 if (target == null)
104                 {
105                     return null;
106                 }
107                 return target.getBigDecimalValue();
108             }
109         }
110         
111         /**
112          * Gets (as xml) the "BudgetFirstYearAmount" element
113          */
114         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetFirstYearAmount()
115         {
116             synchronized (monitor())
117             {
118                 check_orphaned();
119                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
120                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETFIRSTYEARAMOUNT$0, 0);
121                 return target;
122             }
123         }
124         
125         /**
126          * True if has "BudgetFirstYearAmount" element
127          */
128         public boolean isSetBudgetFirstYearAmount()
129         {
130             synchronized (monitor())
131             {
132                 check_orphaned();
133                 return get_store().count_elements(BUDGETFIRSTYEARAMOUNT$0) != 0;
134             }
135         }
136         
137         /**
138          * Sets the "BudgetFirstYearAmount" element
139          */
140         public void setBudgetFirstYearAmount(java.math.BigDecimal budgetFirstYearAmount)
141         {
142             synchronized (monitor())
143             {
144                 check_orphaned();
145                 org.apache.xmlbeans.SimpleValue target = null;
146                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETFIRSTYEARAMOUNT$0, 0);
147                 if (target == null)
148                 {
149                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETFIRSTYEARAMOUNT$0);
150                 }
151                 target.setBigDecimalValue(budgetFirstYearAmount);
152             }
153         }
154         
155         /**
156          * Sets (as xml) the "BudgetFirstYearAmount" element
157          */
158         public void xsetBudgetFirstYearAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetFirstYearAmount)
159         {
160             synchronized (monitor())
161             {
162                 check_orphaned();
163                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
164                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETFIRSTYEARAMOUNT$0, 0);
165                 if (target == null)
166                 {
167                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETFIRSTYEARAMOUNT$0);
168                 }
169                 target.set(budgetFirstYearAmount);
170             }
171         }
172         
173         /**
174          * Unsets the "BudgetFirstYearAmount" element
175          */
176         public void unsetBudgetFirstYearAmount()
177         {
178             synchronized (monitor())
179             {
180                 check_orphaned();
181                 get_store().remove_element(BUDGETFIRSTYEARAMOUNT$0, 0);
182             }
183         }
184         
185         /**
186          * Gets the "BudgetSecondYearAmount" element
187          */
188         public java.math.BigDecimal getBudgetSecondYearAmount()
189         {
190             synchronized (monitor())
191             {
192                 check_orphaned();
193                 org.apache.xmlbeans.SimpleValue target = null;
194                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETSECONDYEARAMOUNT$2, 0);
195                 if (target == null)
196                 {
197                     return null;
198                 }
199                 return target.getBigDecimalValue();
200             }
201         }
202         
203         /**
204          * Gets (as xml) the "BudgetSecondYearAmount" element
205          */
206         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetSecondYearAmount()
207         {
208             synchronized (monitor())
209             {
210                 check_orphaned();
211                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
212                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETSECONDYEARAMOUNT$2, 0);
213                 return target;
214             }
215         }
216         
217         /**
218          * True if has "BudgetSecondYearAmount" element
219          */
220         public boolean isSetBudgetSecondYearAmount()
221         {
222             synchronized (monitor())
223             {
224                 check_orphaned();
225                 return get_store().count_elements(BUDGETSECONDYEARAMOUNT$2) != 0;
226             }
227         }
228         
229         /**
230          * Sets the "BudgetSecondYearAmount" element
231          */
232         public void setBudgetSecondYearAmount(java.math.BigDecimal budgetSecondYearAmount)
233         {
234             synchronized (monitor())
235             {
236                 check_orphaned();
237                 org.apache.xmlbeans.SimpleValue target = null;
238                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETSECONDYEARAMOUNT$2, 0);
239                 if (target == null)
240                 {
241                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETSECONDYEARAMOUNT$2);
242                 }
243                 target.setBigDecimalValue(budgetSecondYearAmount);
244             }
245         }
246         
247         /**
248          * Sets (as xml) the "BudgetSecondYearAmount" element
249          */
250         public void xsetBudgetSecondYearAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetSecondYearAmount)
251         {
252             synchronized (monitor())
253             {
254                 check_orphaned();
255                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
256                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETSECONDYEARAMOUNT$2, 0);
257                 if (target == null)
258                 {
259                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETSECONDYEARAMOUNT$2);
260                 }
261                 target.set(budgetSecondYearAmount);
262             }
263         }
264         
265         /**
266          * Unsets the "BudgetSecondYearAmount" element
267          */
268         public void unsetBudgetSecondYearAmount()
269         {
270             synchronized (monitor())
271             {
272                 check_orphaned();
273                 get_store().remove_element(BUDGETSECONDYEARAMOUNT$2, 0);
274             }
275         }
276         
277         /**
278          * Gets the "BudgetThirdYearAmount" element
279          */
280         public java.math.BigDecimal getBudgetThirdYearAmount()
281         {
282             synchronized (monitor())
283             {
284                 check_orphaned();
285                 org.apache.xmlbeans.SimpleValue target = null;
286                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETTHIRDYEARAMOUNT$4, 0);
287                 if (target == null)
288                 {
289                     return null;
290                 }
291                 return target.getBigDecimalValue();
292             }
293         }
294         
295         /**
296          * Gets (as xml) the "BudgetThirdYearAmount" element
297          */
298         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetThirdYearAmount()
299         {
300             synchronized (monitor())
301             {
302                 check_orphaned();
303                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
304                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETTHIRDYEARAMOUNT$4, 0);
305                 return target;
306             }
307         }
308         
309         /**
310          * True if has "BudgetThirdYearAmount" element
311          */
312         public boolean isSetBudgetThirdYearAmount()
313         {
314             synchronized (monitor())
315             {
316                 check_orphaned();
317                 return get_store().count_elements(BUDGETTHIRDYEARAMOUNT$4) != 0;
318             }
319         }
320         
321         /**
322          * Sets the "BudgetThirdYearAmount" element
323          */
324         public void setBudgetThirdYearAmount(java.math.BigDecimal budgetThirdYearAmount)
325         {
326             synchronized (monitor())
327             {
328                 check_orphaned();
329                 org.apache.xmlbeans.SimpleValue target = null;
330                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETTHIRDYEARAMOUNT$4, 0);
331                 if (target == null)
332                 {
333                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETTHIRDYEARAMOUNT$4);
334                 }
335                 target.setBigDecimalValue(budgetThirdYearAmount);
336             }
337         }
338         
339         /**
340          * Sets (as xml) the "BudgetThirdYearAmount" element
341          */
342         public void xsetBudgetThirdYearAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetThirdYearAmount)
343         {
344             synchronized (monitor())
345             {
346                 check_orphaned();
347                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
348                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETTHIRDYEARAMOUNT$4, 0);
349                 if (target == null)
350                 {
351                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETTHIRDYEARAMOUNT$4);
352                 }
353                 target.set(budgetThirdYearAmount);
354             }
355         }
356         
357         /**
358          * Unsets the "BudgetThirdYearAmount" element
359          */
360         public void unsetBudgetThirdYearAmount()
361         {
362             synchronized (monitor())
363             {
364                 check_orphaned();
365                 get_store().remove_element(BUDGETTHIRDYEARAMOUNT$4, 0);
366             }
367         }
368         
369         /**
370          * Gets the "BudgetFourthYearAmount" element
371          */
372         public java.math.BigDecimal getBudgetFourthYearAmount()
373         {
374             synchronized (monitor())
375             {
376                 check_orphaned();
377                 org.apache.xmlbeans.SimpleValue target = null;
378                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETFOURTHYEARAMOUNT$6, 0);
379                 if (target == null)
380                 {
381                     return null;
382                 }
383                 return target.getBigDecimalValue();
384             }
385         }
386         
387         /**
388          * Gets (as xml) the "BudgetFourthYearAmount" element
389          */
390         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetFourthYearAmount()
391         {
392             synchronized (monitor())
393             {
394                 check_orphaned();
395                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
396                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETFOURTHYEARAMOUNT$6, 0);
397                 return target;
398             }
399         }
400         
401         /**
402          * True if has "BudgetFourthYearAmount" element
403          */
404         public boolean isSetBudgetFourthYearAmount()
405         {
406             synchronized (monitor())
407             {
408                 check_orphaned();
409                 return get_store().count_elements(BUDGETFOURTHYEARAMOUNT$6) != 0;
410             }
411         }
412         
413         /**
414          * Sets the "BudgetFourthYearAmount" element
415          */
416         public void setBudgetFourthYearAmount(java.math.BigDecimal budgetFourthYearAmount)
417         {
418             synchronized (monitor())
419             {
420                 check_orphaned();
421                 org.apache.xmlbeans.SimpleValue target = null;
422                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUDGETFOURTHYEARAMOUNT$6, 0);
423                 if (target == null)
424                 {
425                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETFOURTHYEARAMOUNT$6);
426                 }
427                 target.setBigDecimalValue(budgetFourthYearAmount);
428             }
429         }
430         
431         /**
432          * Sets (as xml) the "BudgetFourthYearAmount" element
433          */
434         public void xsetBudgetFourthYearAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetFourthYearAmount)
435         {
436             synchronized (monitor())
437             {
438                 check_orphaned();
439                 gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type target = null;
440                 target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().find_element_user(BUDGETFOURTHYEARAMOUNT$6, 0);
441                 if (target == null)
442                 {
443                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETFOURTHYEARAMOUNT$6);
444                 }
445                 target.set(budgetFourthYearAmount);
446             }
447         }
448         
449         /**
450          * Unsets the "BudgetFourthYearAmount" element
451          */
452         public void unsetBudgetFourthYearAmount()
453         {
454             synchronized (monitor())
455             {
456                 check_orphaned();
457                 get_store().remove_element(BUDGETFOURTHYEARAMOUNT$6, 0);
458             }
459         }
460         
461         /**
462          * Gets the "activityTitle" attribute
463          */
464         public java.lang.String getActivityTitle()
465         {
466             synchronized (monitor())
467             {
468                 check_orphaned();
469                 org.apache.xmlbeans.SimpleValue target = null;
470                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ACTIVITYTITLE$8);
471                 if (target == null)
472                 {
473                     return null;
474                 }
475                 return target.getStringValue();
476             }
477         }
478         
479         /**
480          * Gets (as xml) the "activityTitle" attribute
481          */
482         public gov.grants.apply.system.globalV10.StringMin1Max120Type xgetActivityTitle()
483         {
484             synchronized (monitor())
485             {
486                 check_orphaned();
487                 gov.grants.apply.system.globalV10.StringMin1Max120Type target = null;
488                 target = (gov.grants.apply.system.globalV10.StringMin1Max120Type)get_store().find_attribute_user(ACTIVITYTITLE$8);
489                 return target;
490             }
491         }
492         
493         /**
494          * Sets the "activityTitle" attribute
495          */
496         public void setActivityTitle(java.lang.String activityTitle)
497         {
498             synchronized (monitor())
499             {
500                 check_orphaned();
501                 org.apache.xmlbeans.SimpleValue target = null;
502                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ACTIVITYTITLE$8);
503                 if (target == null)
504                 {
505                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ACTIVITYTITLE$8);
506                 }
507                 target.setStringValue(activityTitle);
508             }
509         }
510         
511         /**
512          * Sets (as xml) the "activityTitle" attribute
513          */
514         public void xsetActivityTitle(gov.grants.apply.system.globalV10.StringMin1Max120Type activityTitle)
515         {
516             synchronized (monitor())
517             {
518                 check_orphaned();
519                 gov.grants.apply.system.globalV10.StringMin1Max120Type target = null;
520                 target = (gov.grants.apply.system.globalV10.StringMin1Max120Type)get_store().find_attribute_user(ACTIVITYTITLE$8);
521                 if (target == null)
522                 {
523                     target = (gov.grants.apply.system.globalV10.StringMin1Max120Type)get_store().add_attribute_user(ACTIVITYTITLE$8);
524                 }
525                 target.set(activityTitle);
526             }
527         }
528     }
529 }