View Javadoc
1   /*
2    * An XML document type.
3    * Localname: PHS_CoverLetter_1_2
4    * Namespace: http://apply.grants.gov/forms/PHS_CoverLetter_1_2-V1.2
5    * Java type: gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.phsCoverLetter12V12.impl;
10  /**
11   * A document containing one PHS_CoverLetter_1_2(@http://apply.grants.gov/forms/PHS_CoverLetter_1_2-V1.2) element.
12   *
13   * This is a complex type.
14   */
15  public class PHSCoverLetter12DocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public PHSCoverLetter12DocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName PHSCOVERLETTER12$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/PHS_CoverLetter_1_2-V1.2", "PHS_CoverLetter_1_2");
26      
27      
28      /**
29       * Gets the "PHS_CoverLetter_1_2" element
30       */
31      public gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12 getPHSCoverLetter12()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12 target = null;
37              target = (gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12)get_store().find_element_user(PHSCOVERLETTER12$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "PHS_CoverLetter_1_2" element
48       */
49      public void setPHSCoverLetter12(gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12 phsCoverLetter12)
50      {
51          generatedSetterHelperImpl(phsCoverLetter12, PHSCOVERLETTER12$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "PHS_CoverLetter_1_2" element
56       */
57      public gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12 addNewPHSCoverLetter12()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12 target = null;
63              target = (gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12)get_store().add_element_user(PHSCOVERLETTER12$0);
64              return target;
65          }
66      }
67      /**
68       * An XML PHS_CoverLetter_1_2(@http://apply.grants.gov/forms/PHS_CoverLetter_1_2-V1.2).
69       *
70       * This is a complex type.
71       */
72      public static class PHSCoverLetter12Impl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public PHSCoverLetter12Impl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName COVERLETTERFILE$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/PHS_CoverLetter_1_2-V1.2", "CoverLetterFile");
83          private static final javax.xml.namespace.QName FORMVERSION$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/PHS_CoverLetter_1_2-V1.2", "FormVersion");
85          
86          
87          /**
88           * Gets the "CoverLetterFile" element
89           */
90          public gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12.CoverLetterFile getCoverLetterFile()
91          {
92              synchronized (monitor())
93              {
94                  check_orphaned();
95                  gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12.CoverLetterFile target = null;
96                  target = (gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12.CoverLetterFile)get_store().find_element_user(COVERLETTERFILE$0, 0);
97                  if (target == null)
98                  {
99                      return null;
100                 }
101                 return target;
102             }
103         }
104         
105         /**
106          * Sets the "CoverLetterFile" element
107          */
108         public void setCoverLetterFile(gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12.CoverLetterFile coverLetterFile)
109         {
110             generatedSetterHelperImpl(coverLetterFile, COVERLETTERFILE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
111         }
112         
113         /**
114          * Appends and returns a new empty "CoverLetterFile" element
115          */
116         public gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12.CoverLetterFile addNewCoverLetterFile()
117         {
118             synchronized (monitor())
119             {
120                 check_orphaned();
121                 gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12.CoverLetterFile target = null;
122                 target = (gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12.CoverLetterFile)get_store().add_element_user(COVERLETTERFILE$0);
123                 return target;
124             }
125         }
126         
127         /**
128          * Gets the "FormVersion" attribute
129          */
130         public java.lang.String getFormVersion()
131         {
132             synchronized (monitor())
133             {
134                 check_orphaned();
135                 org.apache.xmlbeans.SimpleValue target = null;
136                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$2);
137                 if (target == null)
138                 {
139                     target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$2);
140                 }
141                 if (target == null)
142                 {
143                     return null;
144                 }
145                 return target.getStringValue();
146             }
147         }
148         
149         /**
150          * Gets (as xml) the "FormVersion" attribute
151          */
152         public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
153         {
154             synchronized (monitor())
155             {
156                 check_orphaned();
157                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
158                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$2);
159                 if (target == null)
160                 {
161                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$2);
162                 }
163                 return target;
164             }
165         }
166         
167         /**
168          * Sets the "FormVersion" attribute
169          */
170         public void setFormVersion(java.lang.String formVersion)
171         {
172             synchronized (monitor())
173             {
174                 check_orphaned();
175                 org.apache.xmlbeans.SimpleValue target = null;
176                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$2);
177                 if (target == null)
178                 {
179                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$2);
180                 }
181                 target.setStringValue(formVersion);
182             }
183         }
184         
185         /**
186          * Sets (as xml) the "FormVersion" attribute
187          */
188         public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
189         {
190             synchronized (monitor())
191             {
192                 check_orphaned();
193                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
194                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$2);
195                 if (target == null)
196                 {
197                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$2);
198                 }
199                 target.set(formVersion);
200             }
201         }
202         /**
203          * An XML CoverLetterFile(@http://apply.grants.gov/forms/PHS_CoverLetter_1_2-V1.2).
204          *
205          * This is a complex type.
206          */
207         public static class CoverLetterFileImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.phsCoverLetter12V12.PHSCoverLetter12Document.PHSCoverLetter12.CoverLetterFile
208         {
209             private static final long serialVersionUID = 1L;
210             
211             public CoverLetterFileImpl(org.apache.xmlbeans.SchemaType sType)
212             {
213                 super(sType);
214             }
215             
216             private static final javax.xml.namespace.QName COVERLETTERFILENAME$0 = 
217                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/PHS_CoverLetter_1_2-V1.2", "CoverLetterFilename");
218             
219             
220             /**
221              * Gets the "CoverLetterFilename" element
222              */
223             public gov.grants.apply.system.attachmentsV10.AttachedFileDataType getCoverLetterFilename()
224             {
225                 synchronized (monitor())
226                 {
227                     check_orphaned();
228                     gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
229                     target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().find_element_user(COVERLETTERFILENAME$0, 0);
230                     if (target == null)
231                     {
232                       return null;
233                     }
234                     return target;
235                 }
236             }
237             
238             /**
239              * Sets the "CoverLetterFilename" element
240              */
241             public void setCoverLetterFilename(gov.grants.apply.system.attachmentsV10.AttachedFileDataType coverLetterFilename)
242             {
243                 generatedSetterHelperImpl(coverLetterFilename, COVERLETTERFILENAME$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
244             }
245             
246             /**
247              * Appends and returns a new empty "CoverLetterFilename" element
248              */
249             public gov.grants.apply.system.attachmentsV10.AttachedFileDataType addNewCoverLetterFilename()
250             {
251                 synchronized (monitor())
252                 {
253                     check_orphaned();
254                     gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
255                     target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().add_element_user(COVERLETTERFILENAME$0);
256                     return target;
257                 }
258             }
259         }
260     }
261 }