View Javadoc
1   /*
2    * An XML document type.
3    * Localname: SaveAgencyNotesResult
4    * Namespace: http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0
5    * Java type: gov.grants.apply.system.agencyUpdateApplicationInfoV10.SaveAgencyNotesResultDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.system.agencyUpdateApplicationInfoV10.impl;
10  /**
11   * A document containing one SaveAgencyNotesResult(@http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class SaveAgencyNotesResultDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.agencyUpdateApplicationInfoV10.SaveAgencyNotesResultDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public SaveAgencyNotesResultDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName SAVEAGENCYNOTESRESULT$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0", "SaveAgencyNotesResult");
26      
27      
28      /**
29       * Gets the "SaveAgencyNotesResult" element
30       */
31      public gov.grants.apply.system.agencyUpdateApplicationInfoV10.SaveAgencyNotesResultDocument.SaveAgencyNotesResult getSaveAgencyNotesResult()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.system.agencyUpdateApplicationInfoV10.SaveAgencyNotesResultDocument.SaveAgencyNotesResult target = null;
37              target = (gov.grants.apply.system.agencyUpdateApplicationInfoV10.SaveAgencyNotesResultDocument.SaveAgencyNotesResult)get_store().find_element_user(SAVEAGENCYNOTESRESULT$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "SaveAgencyNotesResult" element
48       */
49      public void setSaveAgencyNotesResult(gov.grants.apply.system.agencyUpdateApplicationInfoV10.SaveAgencyNotesResultDocument.SaveAgencyNotesResult saveAgencyNotesResult)
50      {
51          generatedSetterHelperImpl(saveAgencyNotesResult, SAVEAGENCYNOTESRESULT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "SaveAgencyNotesResult" element
56       */
57      public gov.grants.apply.system.agencyUpdateApplicationInfoV10.SaveAgencyNotesResultDocument.SaveAgencyNotesResult addNewSaveAgencyNotesResult()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.system.agencyUpdateApplicationInfoV10.SaveAgencyNotesResultDocument.SaveAgencyNotesResult target = null;
63              target = (gov.grants.apply.system.agencyUpdateApplicationInfoV10.SaveAgencyNotesResultDocument.SaveAgencyNotesResult)get_store().add_element_user(SAVEAGENCYNOTESRESULT$0);
64              return target;
65          }
66      }
67      /**
68       * An XML SaveAgencyNotesResult(@http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class SaveAgencyNotesResultImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.agencyUpdateApplicationInfoV10.SaveAgencyNotesResultDocument.SaveAgencyNotesResult
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public SaveAgencyNotesResultImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName SUCCESS$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0", "Success");
83          private static final javax.xml.namespace.QName ERRORMESSAGE$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0", "ErrorMessage");
85          
86          
87          /**
88           * Gets the "Success" element
89           */
90          public boolean getSuccess()
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(SUCCESS$0, 0);
97                  if (target == null)
98                  {
99                      return false;
100                 }
101                 return target.getBooleanValue();
102             }
103         }
104         
105         /**
106          * Gets (as xml) the "Success" element
107          */
108         public org.apache.xmlbeans.XmlBoolean xgetSuccess()
109         {
110             synchronized (monitor())
111             {
112                 check_orphaned();
113                 org.apache.xmlbeans.XmlBoolean target = null;
114                 target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(SUCCESS$0, 0);
115                 return target;
116             }
117         }
118         
119         /**
120          * Sets the "Success" element
121          */
122         public void setSuccess(boolean success)
123         {
124             synchronized (monitor())
125             {
126                 check_orphaned();
127                 org.apache.xmlbeans.SimpleValue target = null;
128                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUCCESS$0, 0);
129                 if (target == null)
130                 {
131                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUCCESS$0);
132                 }
133                 target.setBooleanValue(success);
134             }
135         }
136         
137         /**
138          * Sets (as xml) the "Success" element
139          */
140         public void xsetSuccess(org.apache.xmlbeans.XmlBoolean success)
141         {
142             synchronized (monitor())
143             {
144                 check_orphaned();
145                 org.apache.xmlbeans.XmlBoolean target = null;
146                 target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(SUCCESS$0, 0);
147                 if (target == null)
148                 {
149                     target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(SUCCESS$0);
150                 }
151                 target.set(success);
152             }
153         }
154         
155         /**
156          * Gets the "ErrorMessage" element
157          */
158         public java.lang.String getErrorMessage()
159         {
160             synchronized (monitor())
161             {
162                 check_orphaned();
163                 org.apache.xmlbeans.SimpleValue target = null;
164                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ERRORMESSAGE$2, 0);
165                 if (target == null)
166                 {
167                     return null;
168                 }
169                 return target.getStringValue();
170             }
171         }
172         
173         /**
174          * Gets (as xml) the "ErrorMessage" element
175          */
176         public org.apache.xmlbeans.XmlString xgetErrorMessage()
177         {
178             synchronized (monitor())
179             {
180                 check_orphaned();
181                 org.apache.xmlbeans.XmlString target = null;
182                 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ERRORMESSAGE$2, 0);
183                 return target;
184             }
185         }
186         
187         /**
188          * True if has "ErrorMessage" element
189          */
190         public boolean isSetErrorMessage()
191         {
192             synchronized (monitor())
193             {
194                 check_orphaned();
195                 return get_store().count_elements(ERRORMESSAGE$2) != 0;
196             }
197         }
198         
199         /**
200          * Sets the "ErrorMessage" element
201          */
202         public void setErrorMessage(java.lang.String errorMessage)
203         {
204             synchronized (monitor())
205             {
206                 check_orphaned();
207                 org.apache.xmlbeans.SimpleValue target = null;
208                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ERRORMESSAGE$2, 0);
209                 if (target == null)
210                 {
211                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ERRORMESSAGE$2);
212                 }
213                 target.setStringValue(errorMessage);
214             }
215         }
216         
217         /**
218          * Sets (as xml) the "ErrorMessage" element
219          */
220         public void xsetErrorMessage(org.apache.xmlbeans.XmlString errorMessage)
221         {
222             synchronized (monitor())
223             {
224                 check_orphaned();
225                 org.apache.xmlbeans.XmlString target = null;
226                 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ERRORMESSAGE$2, 0);
227                 if (target == null)
228                 {
229                     target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ERRORMESSAGE$2);
230                 }
231                 target.set(errorMessage);
232             }
233         }
234         
235         /**
236          * Unsets the "ErrorMessage" element
237          */
238         public void unsetErrorMessage()
239         {
240             synchronized (monitor())
241             {
242                 check_orphaned();
243                 get_store().remove_element(ERRORMESSAGE$2, 0);
244             }
245         }
246     }
247 }