View Javadoc
1   /*
2    * An XML document type.
3    * Localname: AuthorizedRepresentative
4    * Namespace: http://apply.grants.gov/forms/SF424B-V1.1
5    * Java type: gov.grants.apply.forms.sf424BV11.AuthorizedRepresentativeDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424BV11.impl;
10  /**
11   * A document containing one AuthorizedRepresentative(@http://apply.grants.gov/forms/SF424B-V1.1) element.
12   *
13   * This is a complex type.
14   */
15  public class AuthorizedRepresentativeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424BV11.AuthorizedRepresentativeDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public AuthorizedRepresentativeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName AUTHORIZEDREPRESENTATIVE$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424B-V1.1", "AuthorizedRepresentative");
26      
27      
28      /**
29       * Gets the "AuthorizedRepresentative" element
30       */
31      public gov.grants.apply.forms.sf424BV11.AuthorizedRepresentativeDocument.AuthorizedRepresentative getAuthorizedRepresentative()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424BV11.AuthorizedRepresentativeDocument.AuthorizedRepresentative target = null;
37              target = (gov.grants.apply.forms.sf424BV11.AuthorizedRepresentativeDocument.AuthorizedRepresentative)get_store().find_element_user(AUTHORIZEDREPRESENTATIVE$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "AuthorizedRepresentative" element
48       */
49      public void setAuthorizedRepresentative(gov.grants.apply.forms.sf424BV11.AuthorizedRepresentativeDocument.AuthorizedRepresentative authorizedRepresentative)
50      {
51          generatedSetterHelperImpl(authorizedRepresentative, AUTHORIZEDREPRESENTATIVE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "AuthorizedRepresentative" element
56       */
57      public gov.grants.apply.forms.sf424BV11.AuthorizedRepresentativeDocument.AuthorizedRepresentative addNewAuthorizedRepresentative()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424BV11.AuthorizedRepresentativeDocument.AuthorizedRepresentative target = null;
63              target = (gov.grants.apply.forms.sf424BV11.AuthorizedRepresentativeDocument.AuthorizedRepresentative)get_store().add_element_user(AUTHORIZEDREPRESENTATIVE$0);
64              return target;
65          }
66      }
67      /**
68       * An XML AuthorizedRepresentative(@http://apply.grants.gov/forms/SF424B-V1.1).
69       *
70       * This is a complex type.
71       */
72      public static class AuthorizedRepresentativeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424BV11.AuthorizedRepresentativeDocument.AuthorizedRepresentative
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public AuthorizedRepresentativeImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName REPRESENTATIVENAME$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424B-V1.1", "RepresentativeName");
83          private static final javax.xml.namespace.QName REPRESENTATIVETITLE$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424B-V1.1", "RepresentativeTitle");
85          
86          
87          /**
88           * Gets the "RepresentativeName" element
89           */
90          public java.lang.String getRepresentativeName()
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(REPRESENTATIVENAME$0, 0);
97                  if (target == null)
98                  {
99                      return null;
100                 }
101                 return target.getStringValue();
102             }
103         }
104         
105         /**
106          * Gets (as xml) the "RepresentativeName" element
107          */
108         public gov.grants.apply.system.globalLibraryV20.SignatureDataType xgetRepresentativeName()
109         {
110             synchronized (monitor())
111             {
112                 check_orphaned();
113                 gov.grants.apply.system.globalLibraryV20.SignatureDataType target = null;
114                 target = (gov.grants.apply.system.globalLibraryV20.SignatureDataType)get_store().find_element_user(REPRESENTATIVENAME$0, 0);
115                 return target;
116             }
117         }
118         
119         /**
120          * True if has "RepresentativeName" element
121          */
122         public boolean isSetRepresentativeName()
123         {
124             synchronized (monitor())
125             {
126                 check_orphaned();
127                 return get_store().count_elements(REPRESENTATIVENAME$0) != 0;
128             }
129         }
130         
131         /**
132          * Sets the "RepresentativeName" element
133          */
134         public void setRepresentativeName(java.lang.String representativeName)
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(REPRESENTATIVENAME$0, 0);
141                 if (target == null)
142                 {
143                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REPRESENTATIVENAME$0);
144                 }
145                 target.setStringValue(representativeName);
146             }
147         }
148         
149         /**
150          * Sets (as xml) the "RepresentativeName" element
151          */
152         public void xsetRepresentativeName(gov.grants.apply.system.globalLibraryV20.SignatureDataType representativeName)
153         {
154             synchronized (monitor())
155             {
156                 check_orphaned();
157                 gov.grants.apply.system.globalLibraryV20.SignatureDataType target = null;
158                 target = (gov.grants.apply.system.globalLibraryV20.SignatureDataType)get_store().find_element_user(REPRESENTATIVENAME$0, 0);
159                 if (target == null)
160                 {
161                     target = (gov.grants.apply.system.globalLibraryV20.SignatureDataType)get_store().add_element_user(REPRESENTATIVENAME$0);
162                 }
163                 target.set(representativeName);
164             }
165         }
166         
167         /**
168          * Unsets the "RepresentativeName" element
169          */
170         public void unsetRepresentativeName()
171         {
172             synchronized (monitor())
173             {
174                 check_orphaned();
175                 get_store().remove_element(REPRESENTATIVENAME$0, 0);
176             }
177         }
178         
179         /**
180          * Gets the "RepresentativeTitle" element
181          */
182         public java.lang.String getRepresentativeTitle()
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(REPRESENTATIVETITLE$2, 0);
189                 if (target == null)
190                 {
191                     return null;
192                 }
193                 return target.getStringValue();
194             }
195         }
196         
197         /**
198          * Gets (as xml) the "RepresentativeTitle" element
199          */
200         public gov.grants.apply.system.globalLibraryV20.HumanTitleDataType xgetRepresentativeTitle()
201         {
202             synchronized (monitor())
203             {
204                 check_orphaned();
205                 gov.grants.apply.system.globalLibraryV20.HumanTitleDataType target = null;
206                 target = (gov.grants.apply.system.globalLibraryV20.HumanTitleDataType)get_store().find_element_user(REPRESENTATIVETITLE$2, 0);
207                 return target;
208             }
209         }
210         
211         /**
212          * True if has "RepresentativeTitle" element
213          */
214         public boolean isSetRepresentativeTitle()
215         {
216             synchronized (monitor())
217             {
218                 check_orphaned();
219                 return get_store().count_elements(REPRESENTATIVETITLE$2) != 0;
220             }
221         }
222         
223         /**
224          * Sets the "RepresentativeTitle" element
225          */
226         public void setRepresentativeTitle(java.lang.String representativeTitle)
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(REPRESENTATIVETITLE$2, 0);
233                 if (target == null)
234                 {
235                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REPRESENTATIVETITLE$2);
236                 }
237                 target.setStringValue(representativeTitle);
238             }
239         }
240         
241         /**
242          * Sets (as xml) the "RepresentativeTitle" element
243          */
244         public void xsetRepresentativeTitle(gov.grants.apply.system.globalLibraryV20.HumanTitleDataType representativeTitle)
245         {
246             synchronized (monitor())
247             {
248                 check_orphaned();
249                 gov.grants.apply.system.globalLibraryV20.HumanTitleDataType target = null;
250                 target = (gov.grants.apply.system.globalLibraryV20.HumanTitleDataType)get_store().find_element_user(REPRESENTATIVETITLE$2, 0);
251                 if (target == null)
252                 {
253                     target = (gov.grants.apply.system.globalLibraryV20.HumanTitleDataType)get_store().add_element_user(REPRESENTATIVETITLE$2);
254                 }
255                 target.set(representativeTitle);
256             }
257         }
258         
259         /**
260          * Unsets the "RepresentativeTitle" element
261          */
262         public void unsetRepresentativeTitle()
263         {
264             synchronized (monitor())
265             {
266                 check_orphaned();
267                 get_store().remove_element(REPRESENTATIVETITLE$2, 0);
268             }
269         }
270     }
271 }