View Javadoc
1   /*
2    * An XML document type.
3    * Localname: CreateOpportunityInfo
4    * Namespace: http://apply.grants.gov/system/AgencyManagePackage-V1.0
5    * Java type: gov.grants.apply.system.agencyManagePackageV10.CreateOpportunityInfoDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.system.agencyManagePackageV10.impl;
10  /**
11   * A document containing one CreateOpportunityInfo(@http://apply.grants.gov/system/AgencyManagePackage-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class CreateOpportunityInfoDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.agencyManagePackageV10.CreateOpportunityInfoDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public CreateOpportunityInfoDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName CREATEOPPORTUNITYINFO$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyManagePackage-V1.0", "CreateOpportunityInfo");
26      
27      
28      /**
29       * Gets the "CreateOpportunityInfo" element
30       */
31      public gov.grants.apply.system.agencyManagePackageV10.CreateOpportunityInfoDocument.CreateOpportunityInfo getCreateOpportunityInfo()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.system.agencyManagePackageV10.CreateOpportunityInfoDocument.CreateOpportunityInfo target = null;
37              target = (gov.grants.apply.system.agencyManagePackageV10.CreateOpportunityInfoDocument.CreateOpportunityInfo)get_store().find_element_user(CREATEOPPORTUNITYINFO$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "CreateOpportunityInfo" element
48       */
49      public void setCreateOpportunityInfo(gov.grants.apply.system.agencyManagePackageV10.CreateOpportunityInfoDocument.CreateOpportunityInfo createOpportunityInfo)
50      {
51          generatedSetterHelperImpl(createOpportunityInfo, CREATEOPPORTUNITYINFO$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "CreateOpportunityInfo" element
56       */
57      public gov.grants.apply.system.agencyManagePackageV10.CreateOpportunityInfoDocument.CreateOpportunityInfo addNewCreateOpportunityInfo()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.system.agencyManagePackageV10.CreateOpportunityInfoDocument.CreateOpportunityInfo target = null;
63              target = (gov.grants.apply.system.agencyManagePackageV10.CreateOpportunityInfoDocument.CreateOpportunityInfo)get_store().add_element_user(CREATEOPPORTUNITYINFO$0);
64              return target;
65          }
66      }
67      /**
68       * An XML CreateOpportunityInfo(@http://apply.grants.gov/system/AgencyManagePackage-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class CreateOpportunityInfoImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.agencyManagePackageV10.CreateOpportunityInfoDocument.CreateOpportunityInfo
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public CreateOpportunityInfoImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName FUNDINGOPPORTUNITYTITLE$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsCommonElements-V1.0", "FundingOpportunityTitle");
83          private static final javax.xml.namespace.QName OPPORTUNITYCATEGORY$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyManagePackage-V1.0", "OpportunityCategory");
85          private static final javax.xml.namespace.QName OPPORTUNITYCATEGORYEXPLANATION$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyManagePackage-V1.0", "OpportunityCategoryExplanation");
87          private static final javax.xml.namespace.QName CFDANUMBER$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsCommonElements-V1.0", "CFDANumber");
89          
90          
91          /**
92           * Gets the "FundingOpportunityTitle" element
93           */
94          public java.lang.String getFundingOpportunityTitle()
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(FUNDINGOPPORTUNITYTITLE$0, 0);
101                 if (target == null)
102                 {
103                     return null;
104                 }
105                 return target.getStringValue();
106             }
107         }
108         
109         /**
110          * Gets (as xml) the "FundingOpportunityTitle" element
111          */
112         public gov.grants.apply.system.grantsCommonTypesV10.StringWithoutNewLine255Type xgetFundingOpportunityTitle()
113         {
114             synchronized (monitor())
115             {
116                 check_orphaned();
117                 gov.grants.apply.system.grantsCommonTypesV10.StringWithoutNewLine255Type target = null;
118                 target = (gov.grants.apply.system.grantsCommonTypesV10.StringWithoutNewLine255Type)get_store().find_element_user(FUNDINGOPPORTUNITYTITLE$0, 0);
119                 return target;
120             }
121         }
122         
123         /**
124          * Sets the "FundingOpportunityTitle" element
125          */
126         public void setFundingOpportunityTitle(java.lang.String fundingOpportunityTitle)
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(FUNDINGOPPORTUNITYTITLE$0, 0);
133                 if (target == null)
134                 {
135                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FUNDINGOPPORTUNITYTITLE$0);
136                 }
137                 target.setStringValue(fundingOpportunityTitle);
138             }
139         }
140         
141         /**
142          * Sets (as xml) the "FundingOpportunityTitle" element
143          */
144         public void xsetFundingOpportunityTitle(gov.grants.apply.system.grantsCommonTypesV10.StringWithoutNewLine255Type fundingOpportunityTitle)
145         {
146             synchronized (monitor())
147             {
148                 check_orphaned();
149                 gov.grants.apply.system.grantsCommonTypesV10.StringWithoutNewLine255Type target = null;
150                 target = (gov.grants.apply.system.grantsCommonTypesV10.StringWithoutNewLine255Type)get_store().find_element_user(FUNDINGOPPORTUNITYTITLE$0, 0);
151                 if (target == null)
152                 {
153                     target = (gov.grants.apply.system.grantsCommonTypesV10.StringWithoutNewLine255Type)get_store().add_element_user(FUNDINGOPPORTUNITYTITLE$0);
154                 }
155                 target.set(fundingOpportunityTitle);
156             }
157         }
158         
159         /**
160          * Gets the "OpportunityCategory" element
161          */
162         public gov.grants.apply.system.grantsCommonTypesV10.OpportunityCategoryType.Enum getOpportunityCategory()
163         {
164             synchronized (monitor())
165             {
166                 check_orphaned();
167                 org.apache.xmlbeans.SimpleValue target = null;
168                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPPORTUNITYCATEGORY$2, 0);
169                 if (target == null)
170                 {
171                     return null;
172                 }
173                 return (gov.grants.apply.system.grantsCommonTypesV10.OpportunityCategoryType.Enum)target.getEnumValue();
174             }
175         }
176         
177         /**
178          * Gets (as xml) the "OpportunityCategory" element
179          */
180         public gov.grants.apply.system.grantsCommonTypesV10.OpportunityCategoryType xgetOpportunityCategory()
181         {
182             synchronized (monitor())
183             {
184                 check_orphaned();
185                 gov.grants.apply.system.grantsCommonTypesV10.OpportunityCategoryType target = null;
186                 target = (gov.grants.apply.system.grantsCommonTypesV10.OpportunityCategoryType)get_store().find_element_user(OPPORTUNITYCATEGORY$2, 0);
187                 return target;
188             }
189         }
190         
191         /**
192          * Sets the "OpportunityCategory" element
193          */
194         public void setOpportunityCategory(gov.grants.apply.system.grantsCommonTypesV10.OpportunityCategoryType.Enum opportunityCategory)
195         {
196             synchronized (monitor())
197             {
198                 check_orphaned();
199                 org.apache.xmlbeans.SimpleValue target = null;
200                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPPORTUNITYCATEGORY$2, 0);
201                 if (target == null)
202                 {
203                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OPPORTUNITYCATEGORY$2);
204                 }
205                 target.setEnumValue(opportunityCategory);
206             }
207         }
208         
209         /**
210          * Sets (as xml) the "OpportunityCategory" element
211          */
212         public void xsetOpportunityCategory(gov.grants.apply.system.grantsCommonTypesV10.OpportunityCategoryType opportunityCategory)
213         {
214             synchronized (monitor())
215             {
216                 check_orphaned();
217                 gov.grants.apply.system.grantsCommonTypesV10.OpportunityCategoryType target = null;
218                 target = (gov.grants.apply.system.grantsCommonTypesV10.OpportunityCategoryType)get_store().find_element_user(OPPORTUNITYCATEGORY$2, 0);
219                 if (target == null)
220                 {
221                     target = (gov.grants.apply.system.grantsCommonTypesV10.OpportunityCategoryType)get_store().add_element_user(OPPORTUNITYCATEGORY$2);
222                 }
223                 target.set(opportunityCategory);
224             }
225         }
226         
227         /**
228          * Gets the "OpportunityCategoryExplanation" element
229          */
230         public java.lang.String getOpportunityCategoryExplanation()
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(OPPORTUNITYCATEGORYEXPLANATION$4, 0);
237                 if (target == null)
238                 {
239                     return null;
240                 }
241                 return target.getStringValue();
242             }
243         }
244         
245         /**
246          * Gets (as xml) the "OpportunityCategoryExplanation" element
247          */
248         public gov.grants.apply.system.agencyManagePackageV10.OpportunityCategoryExplanationDocument.OpportunityCategoryExplanation xgetOpportunityCategoryExplanation()
249         {
250             synchronized (monitor())
251             {
252                 check_orphaned();
253                 gov.grants.apply.system.agencyManagePackageV10.OpportunityCategoryExplanationDocument.OpportunityCategoryExplanation target = null;
254                 target = (gov.grants.apply.system.agencyManagePackageV10.OpportunityCategoryExplanationDocument.OpportunityCategoryExplanation)get_store().find_element_user(OPPORTUNITYCATEGORYEXPLANATION$4, 0);
255                 return target;
256             }
257         }
258         
259         /**
260          * True if has "OpportunityCategoryExplanation" element
261          */
262         public boolean isSetOpportunityCategoryExplanation()
263         {
264             synchronized (monitor())
265             {
266                 check_orphaned();
267                 return get_store().count_elements(OPPORTUNITYCATEGORYEXPLANATION$4) != 0;
268             }
269         }
270         
271         /**
272          * Sets the "OpportunityCategoryExplanation" element
273          */
274         public void setOpportunityCategoryExplanation(java.lang.String opportunityCategoryExplanation)
275         {
276             synchronized (monitor())
277             {
278                 check_orphaned();
279                 org.apache.xmlbeans.SimpleValue target = null;
280                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPPORTUNITYCATEGORYEXPLANATION$4, 0);
281                 if (target == null)
282                 {
283                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OPPORTUNITYCATEGORYEXPLANATION$4);
284                 }
285                 target.setStringValue(opportunityCategoryExplanation);
286             }
287         }
288         
289         /**
290          * Sets (as xml) the "OpportunityCategoryExplanation" element
291          */
292         public void xsetOpportunityCategoryExplanation(gov.grants.apply.system.agencyManagePackageV10.OpportunityCategoryExplanationDocument.OpportunityCategoryExplanation opportunityCategoryExplanation)
293         {
294             synchronized (monitor())
295             {
296                 check_orphaned();
297                 gov.grants.apply.system.agencyManagePackageV10.OpportunityCategoryExplanationDocument.OpportunityCategoryExplanation target = null;
298                 target = (gov.grants.apply.system.agencyManagePackageV10.OpportunityCategoryExplanationDocument.OpportunityCategoryExplanation)get_store().find_element_user(OPPORTUNITYCATEGORYEXPLANATION$4, 0);
299                 if (target == null)
300                 {
301                     target = (gov.grants.apply.system.agencyManagePackageV10.OpportunityCategoryExplanationDocument.OpportunityCategoryExplanation)get_store().add_element_user(OPPORTUNITYCATEGORYEXPLANATION$4);
302                 }
303                 target.set(opportunityCategoryExplanation);
304             }
305         }
306         
307         /**
308          * Unsets the "OpportunityCategoryExplanation" element
309          */
310         public void unsetOpportunityCategoryExplanation()
311         {
312             synchronized (monitor())
313             {
314                 check_orphaned();
315                 get_store().remove_element(OPPORTUNITYCATEGORYEXPLANATION$4, 0);
316             }
317         }
318         
319         /**
320          * Gets array of all "CFDANumber" elements
321          */
322         public java.lang.String[] getCFDANumberArray()
323         {
324             synchronized (monitor())
325             {
326                 check_orphaned();
327                 java.util.List targetList = new java.util.ArrayList();
328                 get_store().find_all_element_users(CFDANUMBER$6, targetList);
329                 java.lang.String[] result = new java.lang.String[targetList.size()];
330                 for (int i = 0, len = targetList.size() ; i < len ; i++)
331                     result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
332                 return result;
333             }
334         }
335         
336         /**
337          * Gets ith "CFDANumber" element
338          */
339         public java.lang.String getCFDANumberArray(int i)
340         {
341             synchronized (monitor())
342             {
343                 check_orphaned();
344                 org.apache.xmlbeans.SimpleValue target = null;
345                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CFDANUMBER$6, i);
346                 if (target == null)
347                 {
348                     throw new IndexOutOfBoundsException();
349                 }
350                 return target.getStringValue();
351             }
352         }
353         
354         /**
355          * Gets (as xml) array of all "CFDANumber" elements
356          */
357         public gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType[] xgetCFDANumberArray()
358         {
359             synchronized (monitor())
360             {
361                 check_orphaned();
362                 java.util.List targetList = new java.util.ArrayList();
363                 get_store().find_all_element_users(CFDANUMBER$6, targetList);
364                 gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType[] result = new gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType[targetList.size()];
365                 targetList.toArray(result);
366                 return result;
367             }
368         }
369         
370         /**
371          * Gets (as xml) ith "CFDANumber" element
372          */
373         public gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType xgetCFDANumberArray(int i)
374         {
375             synchronized (monitor())
376             {
377                 check_orphaned();
378                 gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType target = null;
379                 target = (gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType)get_store().find_element_user(CFDANUMBER$6, i);
380                 if (target == null)
381                 {
382                     throw new IndexOutOfBoundsException();
383                 }
384                 return target;
385             }
386         }
387         
388         /**
389          * Returns number of "CFDANumber" element
390          */
391         public int sizeOfCFDANumberArray()
392         {
393             synchronized (monitor())
394             {
395                 check_orphaned();
396                 return get_store().count_elements(CFDANUMBER$6);
397             }
398         }
399         
400         /**
401          * Sets array of all "CFDANumber" element
402          */
403         public void setCFDANumberArray(java.lang.String[] cfdaNumberArray)
404         {
405             synchronized (monitor())
406             {
407                 check_orphaned();
408                 arraySetterHelper(cfdaNumberArray, CFDANUMBER$6);
409             }
410         }
411         
412         /**
413          * Sets ith "CFDANumber" element
414          */
415         public void setCFDANumberArray(int i, java.lang.String cfdaNumber)
416         {
417             synchronized (monitor())
418             {
419                 check_orphaned();
420                 org.apache.xmlbeans.SimpleValue target = null;
421                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CFDANUMBER$6, i);
422                 if (target == null)
423                 {
424                     throw new IndexOutOfBoundsException();
425                 }
426                 target.setStringValue(cfdaNumber);
427             }
428         }
429         
430         /**
431          * Sets (as xml) array of all "CFDANumber" element
432          */
433         public void xsetCFDANumberArray(gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType[]cfdaNumberArray)
434         {
435             synchronized (monitor())
436             {
437                 check_orphaned();
438                 arraySetterHelper(cfdaNumberArray, CFDANUMBER$6);
439             }
440         }
441         
442         /**
443          * Sets (as xml) ith "CFDANumber" element
444          */
445         public void xsetCFDANumberArray(int i, gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType cfdaNumber)
446         {
447             synchronized (monitor())
448             {
449                 check_orphaned();
450                 gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType target = null;
451                 target = (gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType)get_store().find_element_user(CFDANUMBER$6, i);
452                 if (target == null)
453                 {
454                     throw new IndexOutOfBoundsException();
455                 }
456                 target.set(cfdaNumber);
457             }
458         }
459         
460         /**
461          * Inserts the value as the ith "CFDANumber" element
462          */
463         public void insertCFDANumber(int i, java.lang.String cfdaNumber)
464         {
465             synchronized (monitor())
466             {
467                 check_orphaned();
468                 org.apache.xmlbeans.SimpleValue target = 
469                     (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(CFDANUMBER$6, i);
470                 target.setStringValue(cfdaNumber);
471             }
472         }
473         
474         /**
475          * Appends the value as the last "CFDANumber" element
476          */
477         public void addCFDANumber(java.lang.String cfdaNumber)
478         {
479             synchronized (monitor())
480             {
481                 check_orphaned();
482                 org.apache.xmlbeans.SimpleValue target = null;
483                 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CFDANUMBER$6);
484                 target.setStringValue(cfdaNumber);
485             }
486         }
487         
488         /**
489          * Inserts and returns a new empty value (as xml) as the ith "CFDANumber" element
490          */
491         public gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType insertNewCFDANumber(int i)
492         {
493             synchronized (monitor())
494             {
495                 check_orphaned();
496                 gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType target = null;
497                 target = (gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType)get_store().insert_element_user(CFDANUMBER$6, i);
498                 return target;
499             }
500         }
501         
502         /**
503          * Appends and returns a new empty value (as xml) as the last "CFDANumber" element
504          */
505         public gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType addNewCFDANumber()
506         {
507             synchronized (monitor())
508             {
509                 check_orphaned();
510                 gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType target = null;
511                 target = (gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType)get_store().add_element_user(CFDANUMBER$6);
512                 return target;
513             }
514         }
515         
516         /**
517          * Removes the ith "CFDANumber" element
518          */
519         public void removeCFDANumber(int i)
520         {
521             synchronized (monitor())
522             {
523                 check_orphaned();
524                 get_store().remove_element(CFDANUMBER$6, i);
525             }
526         }
527     }
528 }