View Javadoc
1   /*
2    * An XML document type.
3    * Localname: AdditionalInformation
4    * Namespace: http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0
5    * Java type: gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.system.grantsFundingSynopsisV20.impl;
10  /**
11   * A document containing one AdditionalInformation(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0) element.
12   *
13   * This is a complex type.
14   */
15  public class AdditionalInformationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public AdditionalInformationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName ADDITIONALINFORMATION$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0", "AdditionalInformation");
26      
27      
28      /**
29       * Gets the "AdditionalInformation" element
30       */
31      public gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation getAdditionalInformation()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation target = null;
37              target = (gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation)get_store().find_element_user(ADDITIONALINFORMATION$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "AdditionalInformation" element
48       */
49      public void setAdditionalInformation(gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation additionalInformation)
50      {
51          generatedSetterHelperImpl(additionalInformation, ADDITIONALINFORMATION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "AdditionalInformation" element
56       */
57      public gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation addNewAdditionalInformation()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation target = null;
63              target = (gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation)get_store().add_element_user(ADDITIONALINFORMATION$0);
64              return target;
65          }
66      }
67      /**
68       * An XML AdditionalInformation(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0).
69       *
70       * This is a complex type.
71       */
72      public static class AdditionalInformationImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public AdditionalInformationImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName ADDITIONALINFORMATIONURL$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0", "AdditionalInformationURL");
83          private static final javax.xml.namespace.QName URLDESCRIPTION$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0", "URLDescription");
85          
86          
87          /**
88           * Gets the "AdditionalInformationURL" element
89           */
90          public java.lang.String getAdditionalInformationURL()
91          {
92              synchronized (monitor())
93              {
94                  check_orphaned();
95                  org.apache.xmlbeans.SimpleValue target = null;
96                  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADDITIONALINFORMATIONURL$0, 0);
97                  if (target == null)
98                  {
99                      return null;
100                 }
101                 return target.getStringValue();
102             }
103         }
104         
105         /**
106          * Gets (as xml) the "AdditionalInformationURL" element
107          */
108         public gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.AdditionalInformationURL xgetAdditionalInformationURL()
109         {
110             synchronized (monitor())
111             {
112                 check_orphaned();
113                 gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.AdditionalInformationURL target = null;
114                 target = (gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.AdditionalInformationURL)get_store().find_element_user(ADDITIONALINFORMATIONURL$0, 0);
115                 return target;
116             }
117         }
118         
119         /**
120          * True if has "AdditionalInformationURL" element
121          */
122         public boolean isSetAdditionalInformationURL()
123         {
124             synchronized (monitor())
125             {
126                 check_orphaned();
127                 return get_store().count_elements(ADDITIONALINFORMATIONURL$0) != 0;
128             }
129         }
130         
131         /**
132          * Sets the "AdditionalInformationURL" element
133          */
134         public void setAdditionalInformationURL(java.lang.String additionalInformationURL)
135         {
136             synchronized (monitor())
137             {
138                 check_orphaned();
139                 org.apache.xmlbeans.SimpleValue target = null;
140                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADDITIONALINFORMATIONURL$0, 0);
141                 if (target == null)
142                 {
143                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADDITIONALINFORMATIONURL$0);
144                 }
145                 target.setStringValue(additionalInformationURL);
146             }
147         }
148         
149         /**
150          * Sets (as xml) the "AdditionalInformationURL" element
151          */
152         public void xsetAdditionalInformationURL(gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.AdditionalInformationURL additionalInformationURL)
153         {
154             synchronized (monitor())
155             {
156                 check_orphaned();
157                 gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.AdditionalInformationURL target = null;
158                 target = (gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.AdditionalInformationURL)get_store().find_element_user(ADDITIONALINFORMATIONURL$0, 0);
159                 if (target == null)
160                 {
161                     target = (gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.AdditionalInformationURL)get_store().add_element_user(ADDITIONALINFORMATIONURL$0);
162                 }
163                 target.set(additionalInformationURL);
164             }
165         }
166         
167         /**
168          * Unsets the "AdditionalInformationURL" element
169          */
170         public void unsetAdditionalInformationURL()
171         {
172             synchronized (monitor())
173             {
174                 check_orphaned();
175                 get_store().remove_element(ADDITIONALINFORMATIONURL$0, 0);
176             }
177         }
178         
179         /**
180          * Gets the "URLDescription" element
181          */
182         public java.lang.String getURLDescription()
183         {
184             synchronized (monitor())
185             {
186                 check_orphaned();
187                 org.apache.xmlbeans.SimpleValue target = null;
188                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URLDESCRIPTION$2, 0);
189                 if (target == null)
190                 {
191                     return null;
192                 }
193                 return target.getStringValue();
194             }
195         }
196         
197         /**
198          * Gets (as xml) the "URLDescription" element
199          */
200         public gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.URLDescription xgetURLDescription()
201         {
202             synchronized (monitor())
203             {
204                 check_orphaned();
205                 gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.URLDescription target = null;
206                 target = (gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.URLDescription)get_store().find_element_user(URLDESCRIPTION$2, 0);
207                 return target;
208             }
209         }
210         
211         /**
212          * True if has "URLDescription" element
213          */
214         public boolean isSetURLDescription()
215         {
216             synchronized (monitor())
217             {
218                 check_orphaned();
219                 return get_store().count_elements(URLDESCRIPTION$2) != 0;
220             }
221         }
222         
223         /**
224          * Sets the "URLDescription" element
225          */
226         public void setURLDescription(java.lang.String urlDescription)
227         {
228             synchronized (monitor())
229             {
230                 check_orphaned();
231                 org.apache.xmlbeans.SimpleValue target = null;
232                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URLDESCRIPTION$2, 0);
233                 if (target == null)
234                 {
235                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(URLDESCRIPTION$2);
236                 }
237                 target.setStringValue(urlDescription);
238             }
239         }
240         
241         /**
242          * Sets (as xml) the "URLDescription" element
243          */
244         public void xsetURLDescription(gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.URLDescription urlDescription)
245         {
246             synchronized (monitor())
247             {
248                 check_orphaned();
249                 gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.URLDescription target = null;
250                 target = (gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.URLDescription)get_store().find_element_user(URLDESCRIPTION$2, 0);
251                 if (target == null)
252                 {
253                     target = (gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.URLDescription)get_store().add_element_user(URLDESCRIPTION$2);
254                 }
255                 target.set(urlDescription);
256             }
257         }
258         
259         /**
260          * Unsets the "URLDescription" element
261          */
262         public void unsetURLDescription()
263         {
264             synchronized (monitor())
265             {
266                 check_orphaned();
267                 get_store().remove_element(URLDESCRIPTION$2, 0);
268             }
269         }
270         /**
271          * An XML AdditionalInformationURL(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0).
272          *
273          * This is an atomic type that is a restriction of gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument$AdditionalInformation$AdditionalInformationURL.
274          */
275         public static class AdditionalInformationURLImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.AdditionalInformationURL
276         {
277             private static final long serialVersionUID = 1L;
278             
279             public AdditionalInformationURLImpl(org.apache.xmlbeans.SchemaType sType)
280             {
281                 super(sType, false);
282             }
283             
284             protected AdditionalInformationURLImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
285             {
286                 super(sType, b);
287             }
288         }
289         /**
290          * An XML URLDescription(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0).
291          *
292          * This is an atomic type that is a restriction of gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument$AdditionalInformation$URLDescription.
293          */
294         public static class URLDescriptionImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.system.grantsFundingSynopsisV20.AdditionalInformationDocument.AdditionalInformation.URLDescription
295         {
296             private static final long serialVersionUID = 1L;
297             
298             public URLDescriptionImpl(org.apache.xmlbeans.SchemaType sType)
299             {
300                 super(sType, false);
301             }
302             
303             protected URLDescriptionImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
304             {
305                 super(sType, b);
306             }
307         }
308     }
309 }