View Javadoc
1   /*
2    * An XML document type.
3    * Localname: KeyContactPersons
4    * Namespace: http://apply.grants.gov/forms/EPA_KeyContacts-V1.1
5    * Java type: gov.grants.apply.forms.epaKeyContactsV11.KeyContactPersonsDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.epaKeyContactsV11.impl;
10  /**
11   * A document containing one KeyContactPersons(@http://apply.grants.gov/forms/EPA_KeyContacts-V1.1) element.
12   *
13   * This is a complex type.
14   */
15  public class KeyContactPersonsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.epaKeyContactsV11.KeyContactPersonsDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public KeyContactPersonsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName KEYCONTACTPERSONS$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/EPA_KeyContacts-V1.1", "KeyContactPersons");
26      
27      
28      /**
29       * Gets the "KeyContactPersons" element
30       */
31      public gov.grants.apply.forms.epaKeyContactsV11.KeyContactPersonsDocument.KeyContactPersons getKeyContactPersons()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.epaKeyContactsV11.KeyContactPersonsDocument.KeyContactPersons target = null;
37              target = (gov.grants.apply.forms.epaKeyContactsV11.KeyContactPersonsDocument.KeyContactPersons)get_store().find_element_user(KEYCONTACTPERSONS$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "KeyContactPersons" element
48       */
49      public void setKeyContactPersons(gov.grants.apply.forms.epaKeyContactsV11.KeyContactPersonsDocument.KeyContactPersons keyContactPersons)
50      {
51          generatedSetterHelperImpl(keyContactPersons, KEYCONTACTPERSONS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "KeyContactPersons" element
56       */
57      public gov.grants.apply.forms.epaKeyContactsV11.KeyContactPersonsDocument.KeyContactPersons addNewKeyContactPersons()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.epaKeyContactsV11.KeyContactPersonsDocument.KeyContactPersons target = null;
63              target = (gov.grants.apply.forms.epaKeyContactsV11.KeyContactPersonsDocument.KeyContactPersons)get_store().add_element_user(KEYCONTACTPERSONS$0);
64              return target;
65          }
66      }
67      /**
68       * An XML KeyContactPersons(@http://apply.grants.gov/forms/EPA_KeyContacts-V1.1).
69       *
70       * This is a complex type.
71       */
72      public static class KeyContactPersonsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.epaKeyContactsV11.KeyContactPersonsDocument.KeyContactPersons
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public KeyContactPersonsImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName AUTHORIZEDREPRESENTATIVE$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/EPA_KeyContacts-V1.1", "AuthorizedRepresentative");
83          private static final javax.xml.namespace.QName PAYEE$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/EPA_KeyContacts-V1.1", "Payee");
85          private static final javax.xml.namespace.QName ADMINSTRATIVECONTACT$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/EPA_KeyContacts-V1.1", "AdminstrativeContact");
87          private static final javax.xml.namespace.QName PROJECTMANAGER$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/EPA_KeyContacts-V1.1", "ProjectManager");
89          private static final javax.xml.namespace.QName FORMVERSION$8 = 
90              new javax.xml.namespace.QName("http://apply.grants.gov/forms/EPA_KeyContacts-V1.1", "FormVersion");
91          
92          
93          /**
94           * Gets the "AuthorizedRepresentative" element
95           */
96          public gov.grants.apply.system.globalLibraryV20.ContactPersonDataType getAuthorizedRepresentative()
97          {
98              synchronized (monitor())
99              {
100                 check_orphaned();
101                 gov.grants.apply.system.globalLibraryV20.ContactPersonDataType target = null;
102                 target = (gov.grants.apply.system.globalLibraryV20.ContactPersonDataType)get_store().find_element_user(AUTHORIZEDREPRESENTATIVE$0, 0);
103                 if (target == null)
104                 {
105                     return null;
106                 }
107                 return target;
108             }
109         }
110         
111         /**
112          * True if has "AuthorizedRepresentative" element
113          */
114         public boolean isSetAuthorizedRepresentative()
115         {
116             synchronized (monitor())
117             {
118                 check_orphaned();
119                 return get_store().count_elements(AUTHORIZEDREPRESENTATIVE$0) != 0;
120             }
121         }
122         
123         /**
124          * Sets the "AuthorizedRepresentative" element
125          */
126         public void setAuthorizedRepresentative(gov.grants.apply.system.globalLibraryV20.ContactPersonDataType authorizedRepresentative)
127         {
128             generatedSetterHelperImpl(authorizedRepresentative, AUTHORIZEDREPRESENTATIVE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
129         }
130         
131         /**
132          * Appends and returns a new empty "AuthorizedRepresentative" element
133          */
134         public gov.grants.apply.system.globalLibraryV20.ContactPersonDataType addNewAuthorizedRepresentative()
135         {
136             synchronized (monitor())
137             {
138                 check_orphaned();
139                 gov.grants.apply.system.globalLibraryV20.ContactPersonDataType target = null;
140                 target = (gov.grants.apply.system.globalLibraryV20.ContactPersonDataType)get_store().add_element_user(AUTHORIZEDREPRESENTATIVE$0);
141                 return target;
142             }
143         }
144         
145         /**
146          * Unsets the "AuthorizedRepresentative" element
147          */
148         public void unsetAuthorizedRepresentative()
149         {
150             synchronized (monitor())
151             {
152                 check_orphaned();
153                 get_store().remove_element(AUTHORIZEDREPRESENTATIVE$0, 0);
154             }
155         }
156         
157         /**
158          * Gets the "Payee" element
159          */
160         public gov.grants.apply.system.globalLibraryV20.ContactPersonDataType getPayee()
161         {
162             synchronized (monitor())
163             {
164                 check_orphaned();
165                 gov.grants.apply.system.globalLibraryV20.ContactPersonDataType target = null;
166                 target = (gov.grants.apply.system.globalLibraryV20.ContactPersonDataType)get_store().find_element_user(PAYEE$2, 0);
167                 if (target == null)
168                 {
169                     return null;
170                 }
171                 return target;
172             }
173         }
174         
175         /**
176          * True if has "Payee" element
177          */
178         public boolean isSetPayee()
179         {
180             synchronized (monitor())
181             {
182                 check_orphaned();
183                 return get_store().count_elements(PAYEE$2) != 0;
184             }
185         }
186         
187         /**
188          * Sets the "Payee" element
189          */
190         public void setPayee(gov.grants.apply.system.globalLibraryV20.ContactPersonDataType payee)
191         {
192             generatedSetterHelperImpl(payee, PAYEE$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
193         }
194         
195         /**
196          * Appends and returns a new empty "Payee" element
197          */
198         public gov.grants.apply.system.globalLibraryV20.ContactPersonDataType addNewPayee()
199         {
200             synchronized (monitor())
201             {
202                 check_orphaned();
203                 gov.grants.apply.system.globalLibraryV20.ContactPersonDataType target = null;
204                 target = (gov.grants.apply.system.globalLibraryV20.ContactPersonDataType)get_store().add_element_user(PAYEE$2);
205                 return target;
206             }
207         }
208         
209         /**
210          * Unsets the "Payee" element
211          */
212         public void unsetPayee()
213         {
214             synchronized (monitor())
215             {
216                 check_orphaned();
217                 get_store().remove_element(PAYEE$2, 0);
218             }
219         }
220         
221         /**
222          * Gets the "AdminstrativeContact" element
223          */
224         public gov.grants.apply.system.globalLibraryV20.ContactPersonDataType getAdminstrativeContact()
225         {
226             synchronized (monitor())
227             {
228                 check_orphaned();
229                 gov.grants.apply.system.globalLibraryV20.ContactPersonDataType target = null;
230                 target = (gov.grants.apply.system.globalLibraryV20.ContactPersonDataType)get_store().find_element_user(ADMINSTRATIVECONTACT$4, 0);
231                 if (target == null)
232                 {
233                     return null;
234                 }
235                 return target;
236             }
237         }
238         
239         /**
240          * True if has "AdminstrativeContact" element
241          */
242         public boolean isSetAdminstrativeContact()
243         {
244             synchronized (monitor())
245             {
246                 check_orphaned();
247                 return get_store().count_elements(ADMINSTRATIVECONTACT$4) != 0;
248             }
249         }
250         
251         /**
252          * Sets the "AdminstrativeContact" element
253          */
254         public void setAdminstrativeContact(gov.grants.apply.system.globalLibraryV20.ContactPersonDataType adminstrativeContact)
255         {
256             generatedSetterHelperImpl(adminstrativeContact, ADMINSTRATIVECONTACT$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
257         }
258         
259         /**
260          * Appends and returns a new empty "AdminstrativeContact" element
261          */
262         public gov.grants.apply.system.globalLibraryV20.ContactPersonDataType addNewAdminstrativeContact()
263         {
264             synchronized (monitor())
265             {
266                 check_orphaned();
267                 gov.grants.apply.system.globalLibraryV20.ContactPersonDataType target = null;
268                 target = (gov.grants.apply.system.globalLibraryV20.ContactPersonDataType)get_store().add_element_user(ADMINSTRATIVECONTACT$4);
269                 return target;
270             }
271         }
272         
273         /**
274          * Unsets the "AdminstrativeContact" element
275          */
276         public void unsetAdminstrativeContact()
277         {
278             synchronized (monitor())
279             {
280                 check_orphaned();
281                 get_store().remove_element(ADMINSTRATIVECONTACT$4, 0);
282             }
283         }
284         
285         /**
286          * Gets the "ProjectManager" element
287          */
288         public gov.grants.apply.system.globalLibraryV20.ContactPersonDataType getProjectManager()
289         {
290             synchronized (monitor())
291             {
292                 check_orphaned();
293                 gov.grants.apply.system.globalLibraryV20.ContactPersonDataType target = null;
294                 target = (gov.grants.apply.system.globalLibraryV20.ContactPersonDataType)get_store().find_element_user(PROJECTMANAGER$6, 0);
295                 if (target == null)
296                 {
297                     return null;
298                 }
299                 return target;
300             }
301         }
302         
303         /**
304          * True if has "ProjectManager" element
305          */
306         public boolean isSetProjectManager()
307         {
308             synchronized (monitor())
309             {
310                 check_orphaned();
311                 return get_store().count_elements(PROJECTMANAGER$6) != 0;
312             }
313         }
314         
315         /**
316          * Sets the "ProjectManager" element
317          */
318         public void setProjectManager(gov.grants.apply.system.globalLibraryV20.ContactPersonDataType projectManager)
319         {
320             generatedSetterHelperImpl(projectManager, PROJECTMANAGER$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
321         }
322         
323         /**
324          * Appends and returns a new empty "ProjectManager" element
325          */
326         public gov.grants.apply.system.globalLibraryV20.ContactPersonDataType addNewProjectManager()
327         {
328             synchronized (monitor())
329             {
330                 check_orphaned();
331                 gov.grants.apply.system.globalLibraryV20.ContactPersonDataType target = null;
332                 target = (gov.grants.apply.system.globalLibraryV20.ContactPersonDataType)get_store().add_element_user(PROJECTMANAGER$6);
333                 return target;
334             }
335         }
336         
337         /**
338          * Unsets the "ProjectManager" element
339          */
340         public void unsetProjectManager()
341         {
342             synchronized (monitor())
343             {
344                 check_orphaned();
345                 get_store().remove_element(PROJECTMANAGER$6, 0);
346             }
347         }
348         
349         /**
350          * Gets the "FormVersion" attribute
351          */
352         public java.lang.String getFormVersion()
353         {
354             synchronized (monitor())
355             {
356                 check_orphaned();
357                 org.apache.xmlbeans.SimpleValue target = null;
358                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$8);
359                 if (target == null)
360                 {
361                     target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$8);
362                 }
363                 if (target == null)
364                 {
365                     return null;
366                 }
367                 return target.getStringValue();
368             }
369         }
370         
371         /**
372          * Gets (as xml) the "FormVersion" attribute
373          */
374         public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
375         {
376             synchronized (monitor())
377             {
378                 check_orphaned();
379                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
380                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$8);
381                 if (target == null)
382                 {
383                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$8);
384                 }
385                 return target;
386             }
387         }
388         
389         /**
390          * Sets the "FormVersion" attribute
391          */
392         public void setFormVersion(java.lang.String formVersion)
393         {
394             synchronized (monitor())
395             {
396                 check_orphaned();
397                 org.apache.xmlbeans.SimpleValue target = null;
398                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$8);
399                 if (target == null)
400                 {
401                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$8);
402                 }
403                 target.setStringValue(formVersion);
404             }
405         }
406         
407         /**
408          * Sets (as xml) the "FormVersion" attribute
409          */
410         public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
411         {
412             synchronized (monitor())
413             {
414                 check_orphaned();
415                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
416                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$8);
417                 if (target == null)
418                 {
419                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$8);
420                 }
421                 target.set(formVersion);
422             }
423         }
424     }
425 }