001 /* 002 * XML Type: login-moduleType 003 * Namespace: http://geronimo.apache.org/xml/ns/loginconfig-2.0 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-2.0). 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-2.0", "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-2.0", "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-2.0", "option"); 028 private static final javax.xml.namespace.QName XMLOPTION$6 = 029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/loginconfig-2.0", "xml-option"); 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 array of all "xml-option" elements 286 */ 287 public org.apache.geronimo.deployment.xbeans.XmlAttributeType[] getXmlOptionArray() 288 { 289 synchronized (monitor()) 290 { 291 check_orphaned(); 292 java.util.List targetList = new java.util.ArrayList(); 293 get_store().find_all_element_users(XMLOPTION$6, targetList); 294 org.apache.geronimo.deployment.xbeans.XmlAttributeType[] result = new org.apache.geronimo.deployment.xbeans.XmlAttributeType[targetList.size()]; 295 targetList.toArray(result); 296 return result; 297 } 298 } 299 300 /** 301 * Gets ith "xml-option" element 302 */ 303 public org.apache.geronimo.deployment.xbeans.XmlAttributeType getXmlOptionArray(int i) 304 { 305 synchronized (monitor()) 306 { 307 check_orphaned(); 308 org.apache.geronimo.deployment.xbeans.XmlAttributeType target = null; 309 target = (org.apache.geronimo.deployment.xbeans.XmlAttributeType)get_store().find_element_user(XMLOPTION$6, i); 310 if (target == null) 311 { 312 throw new IndexOutOfBoundsException(); 313 } 314 return target; 315 } 316 } 317 318 /** 319 * Returns number of "xml-option" element 320 */ 321 public int sizeOfXmlOptionArray() 322 { 323 synchronized (monitor()) 324 { 325 check_orphaned(); 326 return get_store().count_elements(XMLOPTION$6); 327 } 328 } 329 330 /** 331 * Sets array of all "xml-option" element 332 */ 333 public void setXmlOptionArray(org.apache.geronimo.deployment.xbeans.XmlAttributeType[] xmlOptionArray) 334 { 335 synchronized (monitor()) 336 { 337 check_orphaned(); 338 arraySetterHelper(xmlOptionArray, XMLOPTION$6); 339 } 340 } 341 342 /** 343 * Sets ith "xml-option" element 344 */ 345 public void setXmlOptionArray(int i, org.apache.geronimo.deployment.xbeans.XmlAttributeType xmlOption) 346 { 347 synchronized (monitor()) 348 { 349 check_orphaned(); 350 org.apache.geronimo.deployment.xbeans.XmlAttributeType target = null; 351 target = (org.apache.geronimo.deployment.xbeans.XmlAttributeType)get_store().find_element_user(XMLOPTION$6, i); 352 if (target == null) 353 { 354 throw new IndexOutOfBoundsException(); 355 } 356 target.set(xmlOption); 357 } 358 } 359 360 /** 361 * Inserts and returns a new empty value (as xml) as the ith "xml-option" element 362 */ 363 public org.apache.geronimo.deployment.xbeans.XmlAttributeType insertNewXmlOption(int i) 364 { 365 synchronized (monitor()) 366 { 367 check_orphaned(); 368 org.apache.geronimo.deployment.xbeans.XmlAttributeType target = null; 369 target = (org.apache.geronimo.deployment.xbeans.XmlAttributeType)get_store().insert_element_user(XMLOPTION$6, i); 370 return target; 371 } 372 } 373 374 /** 375 * Appends and returns a new empty value (as xml) as the last "xml-option" element 376 */ 377 public org.apache.geronimo.deployment.xbeans.XmlAttributeType addNewXmlOption() 378 { 379 synchronized (monitor()) 380 { 381 check_orphaned(); 382 org.apache.geronimo.deployment.xbeans.XmlAttributeType target = null; 383 target = (org.apache.geronimo.deployment.xbeans.XmlAttributeType)get_store().add_element_user(XMLOPTION$6); 384 return target; 385 } 386 } 387 388 /** 389 * Removes the ith "xml-option" element 390 */ 391 public void removeXmlOption(int i) 392 { 393 synchronized (monitor()) 394 { 395 check_orphaned(); 396 get_store().remove_element(XMLOPTION$6, i); 397 } 398 } 399 }