View Javadoc
1   /*
2    * An XML document type.
3    * Localname: AgencyContact
4    * Namespace: http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0
5    * Java type: gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.system.grantsFundingSynopsisV20.impl;
10  /**
11   * A document containing one AgencyContact(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0) element.
12   *
13   * This is a complex type.
14   */
15  public class AgencyContactDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public AgencyContactDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName AGENCYCONTACT$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0", "AgencyContact");
26      
27      
28      /**
29       * Gets the "AgencyContact" element
30       */
31      public gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact getAgencyContact()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact target = null;
37              target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact)get_store().find_element_user(AGENCYCONTACT$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "AgencyContact" element
48       */
49      public void setAgencyContact(gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact agencyContact)
50      {
51          generatedSetterHelperImpl(agencyContact, AGENCYCONTACT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "AgencyContact" element
56       */
57      public gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact addNewAgencyContact()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact target = null;
63              target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact)get_store().add_element_user(AGENCYCONTACT$0);
64              return target;
65          }
66      }
67      /**
68       * An XML AgencyContact(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0).
69       *
70       * This is a complex type.
71       */
72      public static class AgencyContactImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public AgencyContactImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName AGENCYCONTACTDESCRIPTION$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0", "AgencyContactDescription");
83          private static final javax.xml.namespace.QName AGENCYEMAILADDRESS$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0", "AgencyEmailAddress");
85          private static final javax.xml.namespace.QName AGENCYEMAILDESCRIPTION$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0", "AgencyEmailDescription");
87          
88          
89          /**
90           * Gets the "AgencyContactDescription" element
91           */
92          public java.lang.String getAgencyContactDescription()
93          {
94              synchronized (monitor())
95              {
96                  check_orphaned();
97                  org.apache.xmlbeans.SimpleValue target = null;
98                  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AGENCYCONTACTDESCRIPTION$0, 0);
99                  if (target == null)
100                 {
101                     return null;
102                 }
103                 return target.getStringValue();
104             }
105         }
106         
107         /**
108          * Gets (as xml) the "AgencyContactDescription" element
109          */
110         public gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyContactDescription xgetAgencyContactDescription()
111         {
112             synchronized (monitor())
113             {
114                 check_orphaned();
115                 gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyContactDescription target = null;
116                 target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyContactDescription)get_store().find_element_user(AGENCYCONTACTDESCRIPTION$0, 0);
117                 return target;
118             }
119         }
120         
121         /**
122          * Sets the "AgencyContactDescription" element
123          */
124         public void setAgencyContactDescription(java.lang.String agencyContactDescription)
125         {
126             synchronized (monitor())
127             {
128                 check_orphaned();
129                 org.apache.xmlbeans.SimpleValue target = null;
130                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AGENCYCONTACTDESCRIPTION$0, 0);
131                 if (target == null)
132                 {
133                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AGENCYCONTACTDESCRIPTION$0);
134                 }
135                 target.setStringValue(agencyContactDescription);
136             }
137         }
138         
139         /**
140          * Sets (as xml) the "AgencyContactDescription" element
141          */
142         public void xsetAgencyContactDescription(gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyContactDescription agencyContactDescription)
143         {
144             synchronized (monitor())
145             {
146                 check_orphaned();
147                 gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyContactDescription target = null;
148                 target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyContactDescription)get_store().find_element_user(AGENCYCONTACTDESCRIPTION$0, 0);
149                 if (target == null)
150                 {
151                     target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyContactDescription)get_store().add_element_user(AGENCYCONTACTDESCRIPTION$0);
152                 }
153                 target.set(agencyContactDescription);
154             }
155         }
156         
157         /**
158          * Gets the "AgencyEmailAddress" element
159          */
160         public java.lang.String getAgencyEmailAddress()
161         {
162             synchronized (monitor())
163             {
164                 check_orphaned();
165                 org.apache.xmlbeans.SimpleValue target = null;
166                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AGENCYEMAILADDRESS$2, 0);
167                 if (target == null)
168                 {
169                     return null;
170                 }
171                 return target.getStringValue();
172             }
173         }
174         
175         /**
176          * Gets (as xml) the "AgencyEmailAddress" element
177          */
178         public gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailAddress xgetAgencyEmailAddress()
179         {
180             synchronized (monitor())
181             {
182                 check_orphaned();
183                 gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailAddress target = null;
184                 target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailAddress)get_store().find_element_user(AGENCYEMAILADDRESS$2, 0);
185                 return target;
186             }
187         }
188         
189         /**
190          * Sets the "AgencyEmailAddress" element
191          */
192         public void setAgencyEmailAddress(java.lang.String agencyEmailAddress)
193         {
194             synchronized (monitor())
195             {
196                 check_orphaned();
197                 org.apache.xmlbeans.SimpleValue target = null;
198                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AGENCYEMAILADDRESS$2, 0);
199                 if (target == null)
200                 {
201                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AGENCYEMAILADDRESS$2);
202                 }
203                 target.setStringValue(agencyEmailAddress);
204             }
205         }
206         
207         /**
208          * Sets (as xml) the "AgencyEmailAddress" element
209          */
210         public void xsetAgencyEmailAddress(gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailAddress agencyEmailAddress)
211         {
212             synchronized (monitor())
213             {
214                 check_orphaned();
215                 gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailAddress target = null;
216                 target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailAddress)get_store().find_element_user(AGENCYEMAILADDRESS$2, 0);
217                 if (target == null)
218                 {
219                     target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailAddress)get_store().add_element_user(AGENCYEMAILADDRESS$2);
220                 }
221                 target.set(agencyEmailAddress);
222             }
223         }
224         
225         /**
226          * Gets the "AgencyEmailDescription" element
227          */
228         public java.lang.String getAgencyEmailDescription()
229         {
230             synchronized (monitor())
231             {
232                 check_orphaned();
233                 org.apache.xmlbeans.SimpleValue target = null;
234                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AGENCYEMAILDESCRIPTION$4, 0);
235                 if (target == null)
236                 {
237                     return null;
238                 }
239                 return target.getStringValue();
240             }
241         }
242         
243         /**
244          * Gets (as xml) the "AgencyEmailDescription" element
245          */
246         public gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailDescription xgetAgencyEmailDescription()
247         {
248             synchronized (monitor())
249             {
250                 check_orphaned();
251                 gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailDescription target = null;
252                 target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailDescription)get_store().find_element_user(AGENCYEMAILDESCRIPTION$4, 0);
253                 return target;
254             }
255         }
256         
257         /**
258          * Sets the "AgencyEmailDescription" element
259          */
260         public void setAgencyEmailDescription(java.lang.String agencyEmailDescription)
261         {
262             synchronized (monitor())
263             {
264                 check_orphaned();
265                 org.apache.xmlbeans.SimpleValue target = null;
266                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AGENCYEMAILDESCRIPTION$4, 0);
267                 if (target == null)
268                 {
269                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AGENCYEMAILDESCRIPTION$4);
270                 }
271                 target.setStringValue(agencyEmailDescription);
272             }
273         }
274         
275         /**
276          * Sets (as xml) the "AgencyEmailDescription" element
277          */
278         public void xsetAgencyEmailDescription(gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailDescription agencyEmailDescription)
279         {
280             synchronized (monitor())
281             {
282                 check_orphaned();
283                 gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailDescription target = null;
284                 target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailDescription)get_store().find_element_user(AGENCYEMAILDESCRIPTION$4, 0);
285                 if (target == null)
286                 {
287                     target = (gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailDescription)get_store().add_element_user(AGENCYEMAILDESCRIPTION$4);
288                 }
289                 target.set(agencyEmailDescription);
290             }
291         }
292         /**
293          * An XML AgencyContactDescription(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0).
294          *
295          * This is an atomic type that is a restriction of gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument$AgencyContact$AgencyContactDescription.
296          */
297         public static class AgencyContactDescriptionImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyContactDescription
298         {
299             private static final long serialVersionUID = 1L;
300             
301             public AgencyContactDescriptionImpl(org.apache.xmlbeans.SchemaType sType)
302             {
303                 super(sType, false);
304             }
305             
306             protected AgencyContactDescriptionImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
307             {
308                 super(sType, b);
309             }
310         }
311         /**
312          * An XML AgencyEmailAddress(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0).
313          *
314          * This is an atomic type that is a restriction of gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument$AgencyContact$AgencyEmailAddress.
315          */
316         public static class AgencyEmailAddressImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailAddress
317         {
318             private static final long serialVersionUID = 1L;
319             
320             public AgencyEmailAddressImpl(org.apache.xmlbeans.SchemaType sType)
321             {
322                 super(sType, false);
323             }
324             
325             protected AgencyEmailAddressImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
326             {
327                 super(sType, b);
328             }
329         }
330         /**
331          * An XML AgencyEmailDescription(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0).
332          *
333          * This is an atomic type that is a restriction of gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument$AgencyContact$AgencyEmailDescription.
334          */
335         public static class AgencyEmailDescriptionImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.system.grantsFundingSynopsisV20.AgencyContactDocument.AgencyContact.AgencyEmailDescription
336         {
337             private static final long serialVersionUID = 1L;
338             
339             public AgencyEmailDescriptionImpl(org.apache.xmlbeans.SchemaType sType)
340             {
341                 super(sType, false);
342             }
343             
344             protected AgencyEmailDescriptionImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
345             {
346                 super(sType, b);
347             }
348         }
349     }
350 }