001 /*
002 * XML Type: login-moduleType
003 * Namespace: http://geronimo.apache.org/xml/ns/loginconfig-1.2
004 * Java type: org.apache.geronimo.xbeans.geronimo.loginconfig.GerLoginModuleType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.loginconfig.impl;
009 /**
010 * An XML login-moduleType(@http://geronimo.apache.org/xml/ns/loginconfig-1.2).
011 *
012 * This is a complex type.
013 */
014 public class GerLoginModuleTypeImpl extends org.apache.geronimo.xbeans.geronimo.loginconfig.impl.GerAbstractLoginModuleTypeImpl implements org.apache.geronimo.xbeans.geronimo.loginconfig.GerLoginModuleType
015 {
016
017 public GerLoginModuleTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName LOGINDOMAINNAME$0 =
023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/loginconfig-1.2", "login-domain-name");
024 private static final javax.xml.namespace.QName LOGINMODULECLASS$2 =
025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/loginconfig-1.2", "login-module-class");
026 private static final javax.xml.namespace.QName OPTION$4 =
027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/loginconfig-1.2", "option");
028 private static final javax.xml.namespace.QName SERVERSIDE$6 =
029 new javax.xml.namespace.QName("", "server-side");
030
031
032 /**
033 * Gets the "login-domain-name" element
034 */
035 public java.lang.String getLoginDomainName()
036 {
037 synchronized (monitor())
038 {
039 check_orphaned();
040 org.apache.xmlbeans.SimpleValue target = null;
041 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOGINDOMAINNAME$0, 0);
042 if (target == null)
043 {
044 return null;
045 }
046 return target.getStringValue();
047 }
048 }
049
050 /**
051 * Gets (as xml) the "login-domain-name" element
052 */
053 public org.apache.xmlbeans.XmlString xgetLoginDomainName()
054 {
055 synchronized (monitor())
056 {
057 check_orphaned();
058 org.apache.xmlbeans.XmlString target = null;
059 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LOGINDOMAINNAME$0, 0);
060 return target;
061 }
062 }
063
064 /**
065 * Sets the "login-domain-name" element
066 */
067 public void setLoginDomainName(java.lang.String loginDomainName)
068 {
069 synchronized (monitor())
070 {
071 check_orphaned();
072 org.apache.xmlbeans.SimpleValue target = null;
073 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOGINDOMAINNAME$0, 0);
074 if (target == null)
075 {
076 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOGINDOMAINNAME$0);
077 }
078 target.setStringValue(loginDomainName);
079 }
080 }
081
082 /**
083 * Sets (as xml) the "login-domain-name" element
084 */
085 public void xsetLoginDomainName(org.apache.xmlbeans.XmlString loginDomainName)
086 {
087 synchronized (monitor())
088 {
089 check_orphaned();
090 org.apache.xmlbeans.XmlString target = null;
091 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LOGINDOMAINNAME$0, 0);
092 if (target == null)
093 {
094 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LOGINDOMAINNAME$0);
095 }
096 target.set(loginDomainName);
097 }
098 }
099
100 /**
101 * Gets the "login-module-class" element
102 */
103 public java.lang.String getLoginModuleClass()
104 {
105 synchronized (monitor())
106 {
107 check_orphaned();
108 org.apache.xmlbeans.SimpleValue target = null;
109 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOGINMODULECLASS$2, 0);
110 if (target == null)
111 {
112 return null;
113 }
114 return target.getStringValue();
115 }
116 }
117
118 /**
119 * Gets (as xml) the "login-module-class" element
120 */
121 public org.apache.xmlbeans.XmlString xgetLoginModuleClass()
122 {
123 synchronized (monitor())
124 {
125 check_orphaned();
126 org.apache.xmlbeans.XmlString target = null;
127 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LOGINMODULECLASS$2, 0);
128 return target;
129 }
130 }
131
132 /**
133 * Sets the "login-module-class" element
134 */
135 public void setLoginModuleClass(java.lang.String loginModuleClass)
136 {
137 synchronized (monitor())
138 {
139 check_orphaned();
140 org.apache.xmlbeans.SimpleValue target = null;
141 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOGINMODULECLASS$2, 0);
142 if (target == null)
143 {
144 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOGINMODULECLASS$2);
145 }
146 target.setStringValue(loginModuleClass);
147 }
148 }
149
150 /**
151 * Sets (as xml) the "login-module-class" element
152 */
153 public void xsetLoginModuleClass(org.apache.xmlbeans.XmlString loginModuleClass)
154 {
155 synchronized (monitor())
156 {
157 check_orphaned();
158 org.apache.xmlbeans.XmlString target = null;
159 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LOGINMODULECLASS$2, 0);
160 if (target == null)
161 {
162 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LOGINMODULECLASS$2);
163 }
164 target.set(loginModuleClass);
165 }
166 }
167
168 /**
169 * Gets array of all "option" elements
170 */
171 public org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType[] getOptionArray()
172 {
173 synchronized (monitor())
174 {
175 check_orphaned();
176 java.util.List targetList = new java.util.ArrayList();
177 get_store().find_all_element_users(OPTION$4, targetList);
178 org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType[] result = new org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType[targetList.size()];
179 targetList.toArray(result);
180 return result;
181 }
182 }
183
184 /**
185 * Gets ith "option" element
186 */
187 public org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType getOptionArray(int i)
188 {
189 synchronized (monitor())
190 {
191 check_orphaned();
192 org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType target = null;
193 target = (org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType)get_store().find_element_user(OPTION$4, i);
194 if (target == null)
195 {
196 throw new IndexOutOfBoundsException();
197 }
198 return target;
199 }
200 }
201
202 /**
203 * Returns number of "option" element
204 */
205 public int sizeOfOptionArray()
206 {
207 synchronized (monitor())
208 {
209 check_orphaned();
210 return get_store().count_elements(OPTION$4);
211 }
212 }
213
214 /**
215 * Sets array of all "option" element
216 */
217 public void setOptionArray(org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType[] optionArray)
218 {
219 synchronized (monitor())
220 {
221 check_orphaned();
222 arraySetterHelper(optionArray, OPTION$4);
223 }
224 }
225
226 /**
227 * Sets ith "option" element
228 */
229 public void setOptionArray(int i, org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType option)
230 {
231 synchronized (monitor())
232 {
233 check_orphaned();
234 org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType target = null;
235 target = (org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType)get_store().find_element_user(OPTION$4, i);
236 if (target == null)
237 {
238 throw new IndexOutOfBoundsException();
239 }
240 target.set(option);
241 }
242 }
243
244 /**
245 * Inserts and returns a new empty value (as xml) as the ith "option" element
246 */
247 public org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType insertNewOption(int i)
248 {
249 synchronized (monitor())
250 {
251 check_orphaned();
252 org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType target = null;
253 target = (org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType)get_store().insert_element_user(OPTION$4, i);
254 return target;
255 }
256 }
257
258 /**
259 * Appends and returns a new empty value (as xml) as the last "option" element
260 */
261 public org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType addNewOption()
262 {
263 synchronized (monitor())
264 {
265 check_orphaned();
266 org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType target = null;
267 target = (org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType)get_store().add_element_user(OPTION$4);
268 return target;
269 }
270 }
271
272 /**
273 * Removes the ith "option" element
274 */
275 public void removeOption(int i)
276 {
277 synchronized (monitor())
278 {
279 check_orphaned();
280 get_store().remove_element(OPTION$4, i);
281 }
282 }
283
284 /**
285 * Gets the "server-side" attribute
286 */
287 public boolean getServerSide()
288 {
289 synchronized (monitor())
290 {
291 check_orphaned();
292 org.apache.xmlbeans.SimpleValue target = null;
293 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SERVERSIDE$6);
294 if (target == null)
295 {
296 return false;
297 }
298 return target.getBooleanValue();
299 }
300 }
301
302 /**
303 * Gets (as xml) the "server-side" attribute
304 */
305 public org.apache.xmlbeans.XmlBoolean xgetServerSide()
306 {
307 synchronized (monitor())
308 {
309 check_orphaned();
310 org.apache.xmlbeans.XmlBoolean target = null;
311 target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SERVERSIDE$6);
312 return target;
313 }
314 }
315
316 /**
317 * Sets the "server-side" attribute
318 */
319 public void setServerSide(boolean serverSide)
320 {
321 synchronized (monitor())
322 {
323 check_orphaned();
324 org.apache.xmlbeans.SimpleValue target = null;
325 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SERVERSIDE$6);
326 if (target == null)
327 {
328 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SERVERSIDE$6);
329 }
330 target.setBooleanValue(serverSide);
331 }
332 }
333
334 /**
335 * Sets (as xml) the "server-side" attribute
336 */
337 public void xsetServerSide(org.apache.xmlbeans.XmlBoolean serverSide)
338 {
339 synchronized (monitor())
340 {
341 check_orphaned();
342 org.apache.xmlbeans.XmlBoolean target = null;
343 target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SERVERSIDE$6);
344 if (target == null)
345 {
346 target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(SERVERSIDE$6);
347 }
348 target.set(serverSide);
349 }
350 }
351 }