1   
2   
3   
4   
5   
6   
7   
8   
9   package gov.grants.apply.system.agencyManagePackageV10.impl;
10  
11  
12  
13  
14  
15  public class UpdatePackageResultDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.agencyManagePackageV10.UpdatePackageResultDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public UpdatePackageResultDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName UPDATEPACKAGERESULT$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyManagePackage-V1.0", "UpdatePackageResult");
26      
27      
28      
29  
30  
31      public gov.grants.apply.system.agencyManagePackageV10.UpdatePackageResultDocument.UpdatePackageResult getUpdatePackageResult()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.system.agencyManagePackageV10.UpdatePackageResultDocument.UpdatePackageResult target = null;
37              target = (gov.grants.apply.system.agencyManagePackageV10.UpdatePackageResultDocument.UpdatePackageResult)get_store().find_element_user(UPDATEPACKAGERESULT$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      
47  
48  
49      public void setUpdatePackageResult(gov.grants.apply.system.agencyManagePackageV10.UpdatePackageResultDocument.UpdatePackageResult updatePackageResult)
50      {
51          generatedSetterHelperImpl(updatePackageResult, UPDATEPACKAGERESULT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      
55  
56  
57      public gov.grants.apply.system.agencyManagePackageV10.UpdatePackageResultDocument.UpdatePackageResult addNewUpdatePackageResult()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.system.agencyManagePackageV10.UpdatePackageResultDocument.UpdatePackageResult target = null;
63              target = (gov.grants.apply.system.agencyManagePackageV10.UpdatePackageResultDocument.UpdatePackageResult)get_store().add_element_user(UPDATEPACKAGERESULT$0);
64              return target;
65          }
66      }
67      
68  
69  
70  
71  
72      public static class UpdatePackageResultImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.agencyManagePackageV10.UpdatePackageResultDocument.UpdatePackageResult
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public UpdatePackageResultImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName COMPETITIONID$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsCommonElements-V1.0", "CompetitionID");
83          private static final javax.xml.namespace.QName CFDANUMBER$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsCommonElements-V1.0", "CFDANumber");
85          private static final javax.xml.namespace.QName NOTIFICATIONCOUNT$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyManagePackage-V1.0", "NotificationCount");
87          private static final javax.xml.namespace.QName ERRORDETAILS$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsCommonElements-V1.0", "ErrorDetails");
89          
90          
91          
92  
93  
94          public java.lang.String getCompetitionID()
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(COMPETITIONID$0, 0);
101                 if (target == null)
102                 {
103                     return null;
104                 }
105                 return target.getStringValue();
106             }
107         }
108         
109         
110 
111 
112         public gov.grants.apply.system.grantsCommonTypesV10.CompetitionIDType xgetCompetitionID()
113         {
114             synchronized (monitor())
115             {
116                 check_orphaned();
117                 gov.grants.apply.system.grantsCommonTypesV10.CompetitionIDType target = null;
118                 target = (gov.grants.apply.system.grantsCommonTypesV10.CompetitionIDType)get_store().find_element_user(COMPETITIONID$0, 0);
119                 return target;
120             }
121         }
122         
123         
124 
125 
126         public boolean isSetCompetitionID()
127         {
128             synchronized (monitor())
129             {
130                 check_orphaned();
131                 return get_store().count_elements(COMPETITIONID$0) != 0;
132             }
133         }
134         
135         
136 
137 
138         public void setCompetitionID(java.lang.String competitionID)
139         {
140             synchronized (monitor())
141             {
142                 check_orphaned();
143                 org.apache.xmlbeans.SimpleValue target = null;
144                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMPETITIONID$0, 0);
145                 if (target == null)
146                 {
147                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COMPETITIONID$0);
148                 }
149                 target.setStringValue(competitionID);
150             }
151         }
152         
153         
154 
155 
156         public void xsetCompetitionID(gov.grants.apply.system.grantsCommonTypesV10.CompetitionIDType competitionID)
157         {
158             synchronized (monitor())
159             {
160                 check_orphaned();
161                 gov.grants.apply.system.grantsCommonTypesV10.CompetitionIDType target = null;
162                 target = (gov.grants.apply.system.grantsCommonTypesV10.CompetitionIDType)get_store().find_element_user(COMPETITIONID$0, 0);
163                 if (target == null)
164                 {
165                     target = (gov.grants.apply.system.grantsCommonTypesV10.CompetitionIDType)get_store().add_element_user(COMPETITIONID$0);
166                 }
167                 target.set(competitionID);
168             }
169         }
170         
171         
172 
173 
174         public void unsetCompetitionID()
175         {
176             synchronized (monitor())
177             {
178                 check_orphaned();
179                 get_store().remove_element(COMPETITIONID$0, 0);
180             }
181         }
182         
183         
184 
185 
186         public java.lang.String getCFDANumber()
187         {
188             synchronized (monitor())
189             {
190                 check_orphaned();
191                 org.apache.xmlbeans.SimpleValue target = null;
192                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CFDANUMBER$2, 0);
193                 if (target == null)
194                 {
195                     return null;
196                 }
197                 return target.getStringValue();
198             }
199         }
200         
201         
202 
203 
204         public gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType xgetCFDANumber()
205         {
206             synchronized (monitor())
207             {
208                 check_orphaned();
209                 gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType target = null;
210                 target = (gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType)get_store().find_element_user(CFDANUMBER$2, 0);
211                 return target;
212             }
213         }
214         
215         
216 
217 
218         public boolean isSetCFDANumber()
219         {
220             synchronized (monitor())
221             {
222                 check_orphaned();
223                 return get_store().count_elements(CFDANUMBER$2) != 0;
224             }
225         }
226         
227         
228 
229 
230         public void setCFDANumber(java.lang.String cfdaNumber)
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(CFDANUMBER$2, 0);
237                 if (target == null)
238                 {
239                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CFDANUMBER$2);
240                 }
241                 target.setStringValue(cfdaNumber);
242             }
243         }
244         
245         
246 
247 
248         public void xsetCFDANumber(gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType cfdaNumber)
249         {
250             synchronized (monitor())
251             {
252                 check_orphaned();
253                 gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType target = null;
254                 target = (gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType)get_store().find_element_user(CFDANUMBER$2, 0);
255                 if (target == null)
256                 {
257                     target = (gov.grants.apply.system.grantsCommonTypesV10.CFDANumberType)get_store().add_element_user(CFDANUMBER$2);
258                 }
259                 target.set(cfdaNumber);
260             }
261         }
262         
263         
264 
265 
266         public void unsetCFDANumber()
267         {
268             synchronized (monitor())
269             {
270                 check_orphaned();
271                 get_store().remove_element(CFDANUMBER$2, 0);
272             }
273         }
274         
275         
276 
277 
278         public int getNotificationCount()
279         {
280             synchronized (monitor())
281             {
282                 check_orphaned();
283                 org.apache.xmlbeans.SimpleValue target = null;
284                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTIFICATIONCOUNT$4, 0);
285                 if (target == null)
286                 {
287                     return 0;
288                 }
289                 return target.getIntValue();
290             }
291         }
292         
293         
294 
295 
296         public org.apache.xmlbeans.XmlInt xgetNotificationCount()
297         {
298             synchronized (monitor())
299             {
300                 check_orphaned();
301                 org.apache.xmlbeans.XmlInt target = null;
302                 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(NOTIFICATIONCOUNT$4, 0);
303                 return target;
304             }
305         }
306         
307         
308 
309 
310         public boolean isSetNotificationCount()
311         {
312             synchronized (monitor())
313             {
314                 check_orphaned();
315                 return get_store().count_elements(NOTIFICATIONCOUNT$4) != 0;
316             }
317         }
318         
319         
320 
321 
322         public void setNotificationCount(int notificationCount)
323         {
324             synchronized (monitor())
325             {
326                 check_orphaned();
327                 org.apache.xmlbeans.SimpleValue target = null;
328                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTIFICATIONCOUNT$4, 0);
329                 if (target == null)
330                 {
331                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOTIFICATIONCOUNT$4);
332                 }
333                 target.setIntValue(notificationCount);
334             }
335         }
336         
337         
338 
339 
340         public void xsetNotificationCount(org.apache.xmlbeans.XmlInt notificationCount)
341         {
342             synchronized (monitor())
343             {
344                 check_orphaned();
345                 org.apache.xmlbeans.XmlInt target = null;
346                 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(NOTIFICATIONCOUNT$4, 0);
347                 if (target == null)
348                 {
349                     target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(NOTIFICATIONCOUNT$4);
350                 }
351                 target.set(notificationCount);
352             }
353         }
354         
355         
356 
357 
358         public void unsetNotificationCount()
359         {
360             synchronized (monitor())
361             {
362                 check_orphaned();
363                 get_store().remove_element(NOTIFICATIONCOUNT$4, 0);
364             }
365         }
366         
367         
368 
369 
370         public gov.grants.apply.system.grantsCommonElementsV10.ErrorDetailsDocument.ErrorDetails getErrorDetails()
371         {
372             synchronized (monitor())
373             {
374                 check_orphaned();
375                 gov.grants.apply.system.grantsCommonElementsV10.ErrorDetailsDocument.ErrorDetails target = null;
376                 target = (gov.grants.apply.system.grantsCommonElementsV10.ErrorDetailsDocument.ErrorDetails)get_store().find_element_user(ERRORDETAILS$6, 0);
377                 if (target == null)
378                 {
379                     return null;
380                 }
381                 return target;
382             }
383         }
384         
385         
386 
387 
388         public boolean isSetErrorDetails()
389         {
390             synchronized (monitor())
391             {
392                 check_orphaned();
393                 return get_store().count_elements(ERRORDETAILS$6) != 0;
394             }
395         }
396         
397         
398 
399 
400         public void setErrorDetails(gov.grants.apply.system.grantsCommonElementsV10.ErrorDetailsDocument.ErrorDetails errorDetails)
401         {
402             generatedSetterHelperImpl(errorDetails, ERRORDETAILS$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
403         }
404         
405         
406 
407 
408         public gov.grants.apply.system.grantsCommonElementsV10.ErrorDetailsDocument.ErrorDetails addNewErrorDetails()
409         {
410             synchronized (monitor())
411             {
412                 check_orphaned();
413                 gov.grants.apply.system.grantsCommonElementsV10.ErrorDetailsDocument.ErrorDetails target = null;
414                 target = (gov.grants.apply.system.grantsCommonElementsV10.ErrorDetailsDocument.ErrorDetails)get_store().add_element_user(ERRORDETAILS$6);
415                 return target;
416             }
417         }
418         
419         
420 
421 
422         public void unsetErrorDetails()
423         {
424             synchronized (monitor())
425             {
426                 check_orphaned();
427                 get_store().remove_element(ERRORDETAILS$6, 0);
428             }
429         }
430     }
431 }