View Javadoc
1   /*
2    * An XML document type.
3    * Localname: Organization
4    * Namespace: http://apply.grants.gov/forms/SF424-V1.0
5    * Java type: gov.grants.apply.forms.sf424V10.OrganizationDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424V10.impl;
10  /**
11   * A document containing one Organization(@http://apply.grants.gov/forms/SF424-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class OrganizationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.OrganizationDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public OrganizationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName ORGANIZATION$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "Organization");
26      
27      
28      /**
29       * Gets the "Organization" element
30       */
31      public gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization getOrganization()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization target = null;
37              target = (gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization)get_store().find_element_user(ORGANIZATION$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "Organization" element
48       */
49      public void setOrganization(gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization organization)
50      {
51          generatedSetterHelperImpl(organization, ORGANIZATION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "Organization" element
56       */
57      public gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization addNewOrganization()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization target = null;
63              target = (gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization)get_store().add_element_user(ORGANIZATION$0);
64              return target;
65          }
66      }
67      /**
68       * An XML Organization(@http://apply.grants.gov/forms/SF424-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class OrganizationImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public OrganizationImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName ORGANIZATIONNAME$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "OrganizationName");
83          private static final javax.xml.namespace.QName DUNSID$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "DUNSID");
85          private static final javax.xml.namespace.QName DEPARTMENTNAME$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "DepartmentName");
87          private static final javax.xml.namespace.QName DIVISIONNAME$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "DivisionName");
89          private static final javax.xml.namespace.QName EMPLOYERID$8 = 
90              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "EmployerID");
91          
92          
93          /**
94           * Gets the "OrganizationName" element
95           */
96          public java.lang.String getOrganizationName()
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(ORGANIZATIONNAME$0, 0);
103                 if (target == null)
104                 {
105                     return null;
106                 }
107                 return target.getStringValue();
108             }
109         }
110         
111         /**
112          * Gets (as xml) the "OrganizationName" element
113          */
114         public gov.grants.apply.system.globalV10.StringMin1Max120Type xgetOrganizationName()
115         {
116             synchronized (monitor())
117             {
118                 check_orphaned();
119                 gov.grants.apply.system.globalV10.StringMin1Max120Type target = null;
120                 target = (gov.grants.apply.system.globalV10.StringMin1Max120Type)get_store().find_element_user(ORGANIZATIONNAME$0, 0);
121                 return target;
122             }
123         }
124         
125         /**
126          * True if has "OrganizationName" element
127          */
128         public boolean isSetOrganizationName()
129         {
130             synchronized (monitor())
131             {
132                 check_orphaned();
133                 return get_store().count_elements(ORGANIZATIONNAME$0) != 0;
134             }
135         }
136         
137         /**
138          * Sets the "OrganizationName" element
139          */
140         public void setOrganizationName(java.lang.String organizationName)
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(ORGANIZATIONNAME$0, 0);
147                 if (target == null)
148                 {
149                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONNAME$0);
150                 }
151                 target.setStringValue(organizationName);
152             }
153         }
154         
155         /**
156          * Sets (as xml) the "OrganizationName" element
157          */
158         public void xsetOrganizationName(gov.grants.apply.system.globalV10.StringMin1Max120Type organizationName)
159         {
160             synchronized (monitor())
161             {
162                 check_orphaned();
163                 gov.grants.apply.system.globalV10.StringMin1Max120Type target = null;
164                 target = (gov.grants.apply.system.globalV10.StringMin1Max120Type)get_store().find_element_user(ORGANIZATIONNAME$0, 0);
165                 if (target == null)
166                 {
167                     target = (gov.grants.apply.system.globalV10.StringMin1Max120Type)get_store().add_element_user(ORGANIZATIONNAME$0);
168                 }
169                 target.set(organizationName);
170             }
171         }
172         
173         /**
174          * Unsets the "OrganizationName" element
175          */
176         public void unsetOrganizationName()
177         {
178             synchronized (monitor())
179             {
180                 check_orphaned();
181                 get_store().remove_element(ORGANIZATIONNAME$0, 0);
182             }
183         }
184         
185         /**
186          * Gets the "DUNSID" element
187          */
188         public java.lang.String getDUNSID()
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(DUNSID$2, 0);
195                 if (target == null)
196                 {
197                     return null;
198                 }
199                 return target.getStringValue();
200             }
201         }
202         
203         /**
204          * Gets (as xml) the "DUNSID" element
205          */
206         public gov.grants.apply.system.globalV10.StringMin1Max13Type xgetDUNSID()
207         {
208             synchronized (monitor())
209             {
210                 check_orphaned();
211                 gov.grants.apply.system.globalV10.StringMin1Max13Type target = null;
212                 target = (gov.grants.apply.system.globalV10.StringMin1Max13Type)get_store().find_element_user(DUNSID$2, 0);
213                 return target;
214             }
215         }
216         
217         /**
218          * True if has "DUNSID" element
219          */
220         public boolean isSetDUNSID()
221         {
222             synchronized (monitor())
223             {
224                 check_orphaned();
225                 return get_store().count_elements(DUNSID$2) != 0;
226             }
227         }
228         
229         /**
230          * Sets the "DUNSID" element
231          */
232         public void setDUNSID(java.lang.String dunsid)
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(DUNSID$2, 0);
239                 if (target == null)
240                 {
241                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DUNSID$2);
242                 }
243                 target.setStringValue(dunsid);
244             }
245         }
246         
247         /**
248          * Sets (as xml) the "DUNSID" element
249          */
250         public void xsetDUNSID(gov.grants.apply.system.globalV10.StringMin1Max13Type dunsid)
251         {
252             synchronized (monitor())
253             {
254                 check_orphaned();
255                 gov.grants.apply.system.globalV10.StringMin1Max13Type target = null;
256                 target = (gov.grants.apply.system.globalV10.StringMin1Max13Type)get_store().find_element_user(DUNSID$2, 0);
257                 if (target == null)
258                 {
259                     target = (gov.grants.apply.system.globalV10.StringMin1Max13Type)get_store().add_element_user(DUNSID$2);
260                 }
261                 target.set(dunsid);
262             }
263         }
264         
265         /**
266          * Unsets the "DUNSID" element
267          */
268         public void unsetDUNSID()
269         {
270             synchronized (monitor())
271             {
272                 check_orphaned();
273                 get_store().remove_element(DUNSID$2, 0);
274             }
275         }
276         
277         /**
278          * Gets the "DepartmentName" element
279          */
280         public java.lang.String getDepartmentName()
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(DEPARTMENTNAME$4, 0);
287                 if (target == null)
288                 {
289                     return null;
290                 }
291                 return target.getStringValue();
292             }
293         }
294         
295         /**
296          * Gets (as xml) the "DepartmentName" element
297          */
298         public gov.grants.apply.system.globalV10.StringMin1Max30Type xgetDepartmentName()
299         {
300             synchronized (monitor())
301             {
302                 check_orphaned();
303                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
304                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(DEPARTMENTNAME$4, 0);
305                 return target;
306             }
307         }
308         
309         /**
310          * True if has "DepartmentName" element
311          */
312         public boolean isSetDepartmentName()
313         {
314             synchronized (monitor())
315             {
316                 check_orphaned();
317                 return get_store().count_elements(DEPARTMENTNAME$4) != 0;
318             }
319         }
320         
321         /**
322          * Sets the "DepartmentName" element
323          */
324         public void setDepartmentName(java.lang.String departmentName)
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(DEPARTMENTNAME$4, 0);
331                 if (target == null)
332                 {
333                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DEPARTMENTNAME$4);
334                 }
335                 target.setStringValue(departmentName);
336             }
337         }
338         
339         /**
340          * Sets (as xml) the "DepartmentName" element
341          */
342         public void xsetDepartmentName(gov.grants.apply.system.globalV10.StringMin1Max30Type departmentName)
343         {
344             synchronized (monitor())
345             {
346                 check_orphaned();
347                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
348                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(DEPARTMENTNAME$4, 0);
349                 if (target == null)
350                 {
351                     target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().add_element_user(DEPARTMENTNAME$4);
352                 }
353                 target.set(departmentName);
354             }
355         }
356         
357         /**
358          * Unsets the "DepartmentName" element
359          */
360         public void unsetDepartmentName()
361         {
362             synchronized (monitor())
363             {
364                 check_orphaned();
365                 get_store().remove_element(DEPARTMENTNAME$4, 0);
366             }
367         }
368         
369         /**
370          * Gets the "DivisionName" element
371          */
372         public java.lang.String getDivisionName()
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(DIVISIONNAME$6, 0);
379                 if (target == null)
380                 {
381                     return null;
382                 }
383                 return target.getStringValue();
384             }
385         }
386         
387         /**
388          * Gets (as xml) the "DivisionName" element
389          */
390         public gov.grants.apply.system.globalV10.StringMin1Max30Type xgetDivisionName()
391         {
392             synchronized (monitor())
393             {
394                 check_orphaned();
395                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
396                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(DIVISIONNAME$6, 0);
397                 return target;
398             }
399         }
400         
401         /**
402          * True if has "DivisionName" element
403          */
404         public boolean isSetDivisionName()
405         {
406             synchronized (monitor())
407             {
408                 check_orphaned();
409                 return get_store().count_elements(DIVISIONNAME$6) != 0;
410             }
411         }
412         
413         /**
414          * Sets the "DivisionName" element
415          */
416         public void setDivisionName(java.lang.String divisionName)
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(DIVISIONNAME$6, 0);
423                 if (target == null)
424                 {
425                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DIVISIONNAME$6);
426                 }
427                 target.setStringValue(divisionName);
428             }
429         }
430         
431         /**
432          * Sets (as xml) the "DivisionName" element
433          */
434         public void xsetDivisionName(gov.grants.apply.system.globalV10.StringMin1Max30Type divisionName)
435         {
436             synchronized (monitor())
437             {
438                 check_orphaned();
439                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
440                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(DIVISIONNAME$6, 0);
441                 if (target == null)
442                 {
443                     target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().add_element_user(DIVISIONNAME$6);
444                 }
445                 target.set(divisionName);
446             }
447         }
448         
449         /**
450          * Unsets the "DivisionName" element
451          */
452         public void unsetDivisionName()
453         {
454             synchronized (monitor())
455             {
456                 check_orphaned();
457                 get_store().remove_element(DIVISIONNAME$6, 0);
458             }
459         }
460         
461         /**
462          * Gets the "EmployerID" element
463          */
464         public java.lang.String getEmployerID()
465         {
466             synchronized (monitor())
467             {
468                 check_orphaned();
469                 org.apache.xmlbeans.SimpleValue target = null;
470                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EMPLOYERID$8, 0);
471                 if (target == null)
472                 {
473                     return null;
474                 }
475                 return target.getStringValue();
476             }
477         }
478         
479         /**
480          * Gets (as xml) the "EmployerID" element
481          */
482         public gov.grants.apply.system.globalV10.StringMin1Max30Type xgetEmployerID()
483         {
484             synchronized (monitor())
485             {
486                 check_orphaned();
487                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
488                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(EMPLOYERID$8, 0);
489                 return target;
490             }
491         }
492         
493         /**
494          * True if has "EmployerID" element
495          */
496         public boolean isSetEmployerID()
497         {
498             synchronized (monitor())
499             {
500                 check_orphaned();
501                 return get_store().count_elements(EMPLOYERID$8) != 0;
502             }
503         }
504         
505         /**
506          * Sets the "EmployerID" element
507          */
508         public void setEmployerID(java.lang.String employerID)
509         {
510             synchronized (monitor())
511             {
512                 check_orphaned();
513                 org.apache.xmlbeans.SimpleValue target = null;
514                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EMPLOYERID$8, 0);
515                 if (target == null)
516                 {
517                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EMPLOYERID$8);
518                 }
519                 target.setStringValue(employerID);
520             }
521         }
522         
523         /**
524          * Sets (as xml) the "EmployerID" element
525          */
526         public void xsetEmployerID(gov.grants.apply.system.globalV10.StringMin1Max30Type employerID)
527         {
528             synchronized (monitor())
529             {
530                 check_orphaned();
531                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
532                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(EMPLOYERID$8, 0);
533                 if (target == null)
534                 {
535                     target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().add_element_user(EMPLOYERID$8);
536                 }
537                 target.set(employerID);
538             }
539         }
540         
541         /**
542          * Unsets the "EmployerID" element
543          */
544         public void unsetEmployerID()
545         {
546             synchronized (monitor())
547             {
548                 check_orphaned();
549                 get_store().remove_element(EMPLOYERID$8, 0);
550             }
551         }
552     }
553 }