View Javadoc
1   /*
2    * An XML document type.
3    * Localname: Project
4    * Namespace: http://apply.grants.gov/forms/SF424-V1.0
5    * Java type: gov.grants.apply.forms.sf424V10.ProjectDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424V10.impl;
10  /**
11   * A document containing one Project(@http://apply.grants.gov/forms/SF424-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class ProjectDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.ProjectDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public ProjectDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName PROJECT$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "Project");
26      
27      
28      /**
29       * Gets the "Project" element
30       */
31      public gov.grants.apply.forms.sf424V10.ProjectDocument.Project getProject()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424V10.ProjectDocument.Project target = null;
37              target = (gov.grants.apply.forms.sf424V10.ProjectDocument.Project)get_store().find_element_user(PROJECT$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "Project" element
48       */
49      public void setProject(gov.grants.apply.forms.sf424V10.ProjectDocument.Project project)
50      {
51          generatedSetterHelperImpl(project, PROJECT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "Project" element
56       */
57      public gov.grants.apply.forms.sf424V10.ProjectDocument.Project addNewProject()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424V10.ProjectDocument.Project target = null;
63              target = (gov.grants.apply.forms.sf424V10.ProjectDocument.Project)get_store().add_element_user(PROJECT$0);
64              return target;
65          }
66      }
67      /**
68       * An XML Project(@http://apply.grants.gov/forms/SF424-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class ProjectImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.ProjectDocument.Project
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public ProjectImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName PROJECTTITLE$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "ProjectTitle");
83          private static final javax.xml.namespace.QName LOCATION$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "Location");
85          private static final javax.xml.namespace.QName PROPOSEDSTARTDATE$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "ProposedStartDate");
87          private static final javax.xml.namespace.QName PROPOSEDENDDATE$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "ProposedEndDate");
89          private static final javax.xml.namespace.QName CONGRESSIONALDISTRICT$8 = 
90              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "CongressionalDistrict");
91          
92          
93          /**
94           * Gets the "ProjectTitle" element
95           */
96          public java.lang.String getProjectTitle()
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(PROJECTTITLE$0, 0);
103                 if (target == null)
104                 {
105                     return null;
106                 }
107                 return target.getStringValue();
108             }
109         }
110         
111         /**
112          * Gets (as xml) the "ProjectTitle" element
113          */
114         public gov.grants.apply.system.globalV10.StringMin1Max200Type xgetProjectTitle()
115         {
116             synchronized (monitor())
117             {
118                 check_orphaned();
119                 gov.grants.apply.system.globalV10.StringMin1Max200Type target = null;
120                 target = (gov.grants.apply.system.globalV10.StringMin1Max200Type)get_store().find_element_user(PROJECTTITLE$0, 0);
121                 return target;
122             }
123         }
124         
125         /**
126          * Sets the "ProjectTitle" element
127          */
128         public void setProjectTitle(java.lang.String projectTitle)
129         {
130             synchronized (monitor())
131             {
132                 check_orphaned();
133                 org.apache.xmlbeans.SimpleValue target = null;
134                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROJECTTITLE$0, 0);
135                 if (target == null)
136                 {
137                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROJECTTITLE$0);
138                 }
139                 target.setStringValue(projectTitle);
140             }
141         }
142         
143         /**
144          * Sets (as xml) the "ProjectTitle" element
145          */
146         public void xsetProjectTitle(gov.grants.apply.system.globalV10.StringMin1Max200Type projectTitle)
147         {
148             synchronized (monitor())
149             {
150                 check_orphaned();
151                 gov.grants.apply.system.globalV10.StringMin1Max200Type target = null;
152                 target = (gov.grants.apply.system.globalV10.StringMin1Max200Type)get_store().find_element_user(PROJECTTITLE$0, 0);
153                 if (target == null)
154                 {
155                     target = (gov.grants.apply.system.globalV10.StringMin1Max200Type)get_store().add_element_user(PROJECTTITLE$0);
156                 }
157                 target.set(projectTitle);
158             }
159         }
160         
161         /**
162          * Gets the "Location" element
163          */
164         public java.lang.String getLocation()
165         {
166             synchronized (monitor())
167             {
168                 check_orphaned();
169                 org.apache.xmlbeans.SimpleValue target = null;
170                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCATION$2, 0);
171                 if (target == null)
172                 {
173                     return null;
174                 }
175                 return target.getStringValue();
176             }
177         }
178         
179         /**
180          * Gets (as xml) the "Location" element
181          */
182         public gov.grants.apply.system.globalV10.StringMin1Max45Type xgetLocation()
183         {
184             synchronized (monitor())
185             {
186                 check_orphaned();
187                 gov.grants.apply.system.globalV10.StringMin1Max45Type target = null;
188                 target = (gov.grants.apply.system.globalV10.StringMin1Max45Type)get_store().find_element_user(LOCATION$2, 0);
189                 return target;
190             }
191         }
192         
193         /**
194          * True if has "Location" element
195          */
196         public boolean isSetLocation()
197         {
198             synchronized (monitor())
199             {
200                 check_orphaned();
201                 return get_store().count_elements(LOCATION$2) != 0;
202             }
203         }
204         
205         /**
206          * Sets the "Location" element
207          */
208         public void setLocation(java.lang.String location)
209         {
210             synchronized (monitor())
211             {
212                 check_orphaned();
213                 org.apache.xmlbeans.SimpleValue target = null;
214                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCATION$2, 0);
215                 if (target == null)
216                 {
217                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOCATION$2);
218                 }
219                 target.setStringValue(location);
220             }
221         }
222         
223         /**
224          * Sets (as xml) the "Location" element
225          */
226         public void xsetLocation(gov.grants.apply.system.globalV10.StringMin1Max45Type location)
227         {
228             synchronized (monitor())
229             {
230                 check_orphaned();
231                 gov.grants.apply.system.globalV10.StringMin1Max45Type target = null;
232                 target = (gov.grants.apply.system.globalV10.StringMin1Max45Type)get_store().find_element_user(LOCATION$2, 0);
233                 if (target == null)
234                 {
235                     target = (gov.grants.apply.system.globalV10.StringMin1Max45Type)get_store().add_element_user(LOCATION$2);
236                 }
237                 target.set(location);
238             }
239         }
240         
241         /**
242          * Unsets the "Location" element
243          */
244         public void unsetLocation()
245         {
246             synchronized (monitor())
247             {
248                 check_orphaned();
249                 get_store().remove_element(LOCATION$2, 0);
250             }
251         }
252         
253         /**
254          * Gets the "ProposedStartDate" element
255          */
256         public java.util.Calendar getProposedStartDate()
257         {
258             synchronized (monitor())
259             {
260                 check_orphaned();
261                 org.apache.xmlbeans.SimpleValue target = null;
262                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPOSEDSTARTDATE$4, 0);
263                 if (target == null)
264                 {
265                     return null;
266                 }
267                 return target.getCalendarValue();
268             }
269         }
270         
271         /**
272          * Gets (as xml) the "ProposedStartDate" element
273          */
274         public org.apache.xmlbeans.XmlDate xgetProposedStartDate()
275         {
276             synchronized (monitor())
277             {
278                 check_orphaned();
279                 org.apache.xmlbeans.XmlDate target = null;
280                 target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(PROPOSEDSTARTDATE$4, 0);
281                 return target;
282             }
283         }
284         
285         /**
286          * Sets the "ProposedStartDate" element
287          */
288         public void setProposedStartDate(java.util.Calendar proposedStartDate)
289         {
290             synchronized (monitor())
291             {
292                 check_orphaned();
293                 org.apache.xmlbeans.SimpleValue target = null;
294                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPOSEDSTARTDATE$4, 0);
295                 if (target == null)
296                 {
297                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPOSEDSTARTDATE$4);
298                 }
299                 target.setCalendarValue(proposedStartDate);
300             }
301         }
302         
303         /**
304          * Sets (as xml) the "ProposedStartDate" element
305          */
306         public void xsetProposedStartDate(org.apache.xmlbeans.XmlDate proposedStartDate)
307         {
308             synchronized (monitor())
309             {
310                 check_orphaned();
311                 org.apache.xmlbeans.XmlDate target = null;
312                 target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(PROPOSEDSTARTDATE$4, 0);
313                 if (target == null)
314                 {
315                     target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(PROPOSEDSTARTDATE$4);
316                 }
317                 target.set(proposedStartDate);
318             }
319         }
320         
321         /**
322          * Gets the "ProposedEndDate" element
323          */
324         public java.util.Calendar getProposedEndDate()
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(PROPOSEDENDDATE$6, 0);
331                 if (target == null)
332                 {
333                     return null;
334                 }
335                 return target.getCalendarValue();
336             }
337         }
338         
339         /**
340          * Gets (as xml) the "ProposedEndDate" element
341          */
342         public org.apache.xmlbeans.XmlDate xgetProposedEndDate()
343         {
344             synchronized (monitor())
345             {
346                 check_orphaned();
347                 org.apache.xmlbeans.XmlDate target = null;
348                 target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(PROPOSEDENDDATE$6, 0);
349                 return target;
350             }
351         }
352         
353         /**
354          * Sets the "ProposedEndDate" element
355          */
356         public void setProposedEndDate(java.util.Calendar proposedEndDate)
357         {
358             synchronized (monitor())
359             {
360                 check_orphaned();
361                 org.apache.xmlbeans.SimpleValue target = null;
362                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPOSEDENDDATE$6, 0);
363                 if (target == null)
364                 {
365                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPOSEDENDDATE$6);
366                 }
367                 target.setCalendarValue(proposedEndDate);
368             }
369         }
370         
371         /**
372          * Sets (as xml) the "ProposedEndDate" element
373          */
374         public void xsetProposedEndDate(org.apache.xmlbeans.XmlDate proposedEndDate)
375         {
376             synchronized (monitor())
377             {
378                 check_orphaned();
379                 org.apache.xmlbeans.XmlDate target = null;
380                 target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(PROPOSEDENDDATE$6, 0);
381                 if (target == null)
382                 {
383                     target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(PROPOSEDENDDATE$6);
384                 }
385                 target.set(proposedEndDate);
386             }
387         }
388         
389         /**
390          * Gets the "CongressionalDistrict" element
391          */
392         public java.lang.String getCongressionalDistrict()
393         {
394             synchronized (monitor())
395             {
396                 check_orphaned();
397                 org.apache.xmlbeans.SimpleValue target = null;
398                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
399                 if (target == null)
400                 {
401                     return null;
402                 }
403                 return target.getStringValue();
404             }
405         }
406         
407         /**
408          * Gets (as xml) the "CongressionalDistrict" element
409          */
410         public gov.grants.apply.system.globalV10.StringMin1Max30Type xgetCongressionalDistrict()
411         {
412             synchronized (monitor())
413             {
414                 check_orphaned();
415                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
416                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
417                 return target;
418             }
419         }
420         
421         /**
422          * True if has "CongressionalDistrict" element
423          */
424         public boolean isSetCongressionalDistrict()
425         {
426             synchronized (monitor())
427             {
428                 check_orphaned();
429                 return get_store().count_elements(CONGRESSIONALDISTRICT$8) != 0;
430             }
431         }
432         
433         /**
434          * Sets the "CongressionalDistrict" element
435          */
436         public void setCongressionalDistrict(java.lang.String congressionalDistrict)
437         {
438             synchronized (monitor())
439             {
440                 check_orphaned();
441                 org.apache.xmlbeans.SimpleValue target = null;
442                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
443                 if (target == null)
444                 {
445                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONGRESSIONALDISTRICT$8);
446                 }
447                 target.setStringValue(congressionalDistrict);
448             }
449         }
450         
451         /**
452          * Sets (as xml) the "CongressionalDistrict" element
453          */
454         public void xsetCongressionalDistrict(gov.grants.apply.system.globalV10.StringMin1Max30Type congressionalDistrict)
455         {
456             synchronized (monitor())
457             {
458                 check_orphaned();
459                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
460                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
461                 if (target == null)
462                 {
463                     target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().add_element_user(CONGRESSIONALDISTRICT$8);
464                 }
465                 target.set(congressionalDistrict);
466             }
467         }
468         
469         /**
470          * Unsets the "CongressionalDistrict" element
471          */
472         public void unsetCongressionalDistrict()
473         {
474             synchronized (monitor())
475             {
476                 check_orphaned();
477                 get_store().remove_element(CONGRESSIONALDISTRICT$8, 0);
478             }
479         }
480     }
481 }