View Javadoc
1   /*
2    * An XML document type.
3    * Localname: ResourceLineItem
4    * Namespace: http://apply.grants.gov/forms/SF424A-V1.0
5    * Java type: gov.grants.apply.forms.sf424AV10.ResourceLineItemDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424AV10.impl;
10  /**
11   * A document containing one ResourceLineItem(@http://apply.grants.gov/forms/SF424A-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class ResourceLineItemDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424AV10.ResourceLineItemDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public ResourceLineItemDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName RESOURCELINEITEM$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "ResourceLineItem");
26      
27      
28      /**
29       * Gets the "ResourceLineItem" element
30       */
31      public gov.grants.apply.forms.sf424AV10.ResourceLineItemDocument.ResourceLineItem getResourceLineItem()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424AV10.ResourceLineItemDocument.ResourceLineItem target = null;
37              target = (gov.grants.apply.forms.sf424AV10.ResourceLineItemDocument.ResourceLineItem)get_store().find_element_user(RESOURCELINEITEM$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "ResourceLineItem" element
48       */
49      public void setResourceLineItem(gov.grants.apply.forms.sf424AV10.ResourceLineItemDocument.ResourceLineItem resourceLineItem)
50      {
51          generatedSetterHelperImpl(resourceLineItem, RESOURCELINEITEM$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "ResourceLineItem" element
56       */
57      public gov.grants.apply.forms.sf424AV10.ResourceLineItemDocument.ResourceLineItem addNewResourceLineItem()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424AV10.ResourceLineItemDocument.ResourceLineItem target = null;
63              target = (gov.grants.apply.forms.sf424AV10.ResourceLineItemDocument.ResourceLineItem)get_store().add_element_user(RESOURCELINEITEM$0);
64              return target;
65          }
66      }
67      /**
68       * An XML ResourceLineItem(@http://apply.grants.gov/forms/SF424A-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class ResourceLineItemImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424AV10.ResourceLineItemDocument.ResourceLineItem
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public ResourceLineItemImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName BUDGETAPPLICANTCONTRIBUTIONAMOUNT$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetApplicantContributionAmount");
83          private static final javax.xml.namespace.QName BUDGETSTATECONTRIBUTIONAMOUNT$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetStateContributionAmount");
85          private static final javax.xml.namespace.QName BUDGETOTHERCONTRIBUTIONAMOUNT$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetOtherContributionAmount");
87          private static final javax.xml.namespace.QName BUDGETTOTALCONTRIBUTIONAMOUNT$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "BudgetTotalContributionAmount");
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 "BudgetApplicantContributionAmount" element
95           */
96          public java.math.BigDecimal getBudgetApplicantContributionAmount()
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(BUDGETAPPLICANTCONTRIBUTIONAMOUNT$0, 0);
103                 if (target == null)
104                 {
105                     return null;
106                 }
107                 return target.getBigDecimalValue();
108             }
109         }
110         
111         /**
112          * Gets (as xml) the "BudgetApplicantContributionAmount" element
113          */
114         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetApplicantContributionAmount()
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(BUDGETAPPLICANTCONTRIBUTIONAMOUNT$0, 0);
121                 return target;
122             }
123         }
124         
125         /**
126          * True if has "BudgetApplicantContributionAmount" element
127          */
128         public boolean isSetBudgetApplicantContributionAmount()
129         {
130             synchronized (monitor())
131             {
132                 check_orphaned();
133                 return get_store().count_elements(BUDGETAPPLICANTCONTRIBUTIONAMOUNT$0) != 0;
134             }
135         }
136         
137         /**
138          * Sets the "BudgetApplicantContributionAmount" element
139          */
140         public void setBudgetApplicantContributionAmount(java.math.BigDecimal budgetApplicantContributionAmount)
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(BUDGETAPPLICANTCONTRIBUTIONAMOUNT$0, 0);
147                 if (target == null)
148                 {
149                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETAPPLICANTCONTRIBUTIONAMOUNT$0);
150                 }
151                 target.setBigDecimalValue(budgetApplicantContributionAmount);
152             }
153         }
154         
155         /**
156          * Sets (as xml) the "BudgetApplicantContributionAmount" element
157          */
158         public void xsetBudgetApplicantContributionAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetApplicantContributionAmount)
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(BUDGETAPPLICANTCONTRIBUTIONAMOUNT$0, 0);
165                 if (target == null)
166                 {
167                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETAPPLICANTCONTRIBUTIONAMOUNT$0);
168                 }
169                 target.set(budgetApplicantContributionAmount);
170             }
171         }
172         
173         /**
174          * Unsets the "BudgetApplicantContributionAmount" element
175          */
176         public void unsetBudgetApplicantContributionAmount()
177         {
178             synchronized (monitor())
179             {
180                 check_orphaned();
181                 get_store().remove_element(BUDGETAPPLICANTCONTRIBUTIONAMOUNT$0, 0);
182             }
183         }
184         
185         /**
186          * Gets the "BudgetStateContributionAmount" element
187          */
188         public java.math.BigDecimal getBudgetStateContributionAmount()
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(BUDGETSTATECONTRIBUTIONAMOUNT$2, 0);
195                 if (target == null)
196                 {
197                     return null;
198                 }
199                 return target.getBigDecimalValue();
200             }
201         }
202         
203         /**
204          * Gets (as xml) the "BudgetStateContributionAmount" element
205          */
206         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetStateContributionAmount()
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(BUDGETSTATECONTRIBUTIONAMOUNT$2, 0);
213                 return target;
214             }
215         }
216         
217         /**
218          * True if has "BudgetStateContributionAmount" element
219          */
220         public boolean isSetBudgetStateContributionAmount()
221         {
222             synchronized (monitor())
223             {
224                 check_orphaned();
225                 return get_store().count_elements(BUDGETSTATECONTRIBUTIONAMOUNT$2) != 0;
226             }
227         }
228         
229         /**
230          * Sets the "BudgetStateContributionAmount" element
231          */
232         public void setBudgetStateContributionAmount(java.math.BigDecimal budgetStateContributionAmount)
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(BUDGETSTATECONTRIBUTIONAMOUNT$2, 0);
239                 if (target == null)
240                 {
241                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETSTATECONTRIBUTIONAMOUNT$2);
242                 }
243                 target.setBigDecimalValue(budgetStateContributionAmount);
244             }
245         }
246         
247         /**
248          * Sets (as xml) the "BudgetStateContributionAmount" element
249          */
250         public void xsetBudgetStateContributionAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetStateContributionAmount)
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(BUDGETSTATECONTRIBUTIONAMOUNT$2, 0);
257                 if (target == null)
258                 {
259                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETSTATECONTRIBUTIONAMOUNT$2);
260                 }
261                 target.set(budgetStateContributionAmount);
262             }
263         }
264         
265         /**
266          * Unsets the "BudgetStateContributionAmount" element
267          */
268         public void unsetBudgetStateContributionAmount()
269         {
270             synchronized (monitor())
271             {
272                 check_orphaned();
273                 get_store().remove_element(BUDGETSTATECONTRIBUTIONAMOUNT$2, 0);
274             }
275         }
276         
277         /**
278          * Gets the "BudgetOtherContributionAmount" element
279          */
280         public java.math.BigDecimal getBudgetOtherContributionAmount()
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(BUDGETOTHERCONTRIBUTIONAMOUNT$4, 0);
287                 if (target == null)
288                 {
289                     return null;
290                 }
291                 return target.getBigDecimalValue();
292             }
293         }
294         
295         /**
296          * Gets (as xml) the "BudgetOtherContributionAmount" element
297          */
298         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetOtherContributionAmount()
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(BUDGETOTHERCONTRIBUTIONAMOUNT$4, 0);
305                 return target;
306             }
307         }
308         
309         /**
310          * True if has "BudgetOtherContributionAmount" element
311          */
312         public boolean isSetBudgetOtherContributionAmount()
313         {
314             synchronized (monitor())
315             {
316                 check_orphaned();
317                 return get_store().count_elements(BUDGETOTHERCONTRIBUTIONAMOUNT$4) != 0;
318             }
319         }
320         
321         /**
322          * Sets the "BudgetOtherContributionAmount" element
323          */
324         public void setBudgetOtherContributionAmount(java.math.BigDecimal budgetOtherContributionAmount)
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(BUDGETOTHERCONTRIBUTIONAMOUNT$4, 0);
331                 if (target == null)
332                 {
333                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETOTHERCONTRIBUTIONAMOUNT$4);
334                 }
335                 target.setBigDecimalValue(budgetOtherContributionAmount);
336             }
337         }
338         
339         /**
340          * Sets (as xml) the "BudgetOtherContributionAmount" element
341          */
342         public void xsetBudgetOtherContributionAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetOtherContributionAmount)
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(BUDGETOTHERCONTRIBUTIONAMOUNT$4, 0);
349                 if (target == null)
350                 {
351                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETOTHERCONTRIBUTIONAMOUNT$4);
352                 }
353                 target.set(budgetOtherContributionAmount);
354             }
355         }
356         
357         /**
358          * Unsets the "BudgetOtherContributionAmount" element
359          */
360         public void unsetBudgetOtherContributionAmount()
361         {
362             synchronized (monitor())
363             {
364                 check_orphaned();
365                 get_store().remove_element(BUDGETOTHERCONTRIBUTIONAMOUNT$4, 0);
366             }
367         }
368         
369         /**
370          * Gets the "BudgetTotalContributionAmount" element
371          */
372         public java.math.BigDecimal getBudgetTotalContributionAmount()
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(BUDGETTOTALCONTRIBUTIONAMOUNT$6, 0);
379                 if (target == null)
380                 {
381                     return null;
382                 }
383                 return target.getBigDecimalValue();
384             }
385         }
386         
387         /**
388          * Gets (as xml) the "BudgetTotalContributionAmount" element
389          */
390         public gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type xgetBudgetTotalContributionAmount()
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(BUDGETTOTALCONTRIBUTIONAMOUNT$6, 0);
397                 return target;
398             }
399         }
400         
401         /**
402          * True if has "BudgetTotalContributionAmount" element
403          */
404         public boolean isSetBudgetTotalContributionAmount()
405         {
406             synchronized (monitor())
407             {
408                 check_orphaned();
409                 return get_store().count_elements(BUDGETTOTALCONTRIBUTIONAMOUNT$6) != 0;
410             }
411         }
412         
413         /**
414          * Sets the "BudgetTotalContributionAmount" element
415          */
416         public void setBudgetTotalContributionAmount(java.math.BigDecimal budgetTotalContributionAmount)
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(BUDGETTOTALCONTRIBUTIONAMOUNT$6, 0);
423                 if (target == null)
424                 {
425                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUDGETTOTALCONTRIBUTIONAMOUNT$6);
426                 }
427                 target.setBigDecimalValue(budgetTotalContributionAmount);
428             }
429         }
430         
431         /**
432          * Sets (as xml) the "BudgetTotalContributionAmount" element
433          */
434         public void xsetBudgetTotalContributionAmount(gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type budgetTotalContributionAmount)
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(BUDGETTOTALCONTRIBUTIONAMOUNT$6, 0);
441                 if (target == null)
442                 {
443                     target = (gov.grants.apply.system.globalV10.DecimalMin1Max14Places2Type)get_store().add_element_user(BUDGETTOTALCONTRIBUTIONAMOUNT$6);
444                 }
445                 target.set(budgetTotalContributionAmount);
446             }
447         }
448         
449         /**
450          * Unsets the "BudgetTotalContributionAmount" element
451          */
452         public void unsetBudgetTotalContributionAmount()
453         {
454             synchronized (monitor())
455             {
456                 check_orphaned();
457                 get_store().remove_element(BUDGETTOTALCONTRIBUTIONAMOUNT$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 }