001 /* 002 * XML Type: sasMechType 003 * Namespace: http://openejb.apache.org/xml/ns/corba-css-config-2.1 004 * Java type: org.apache.geronimo.corba.xbeans.csiv2.css.CSSSasMechType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.corba.xbeans.csiv2.css.impl; 009 /** 010 * An XML sasMechType(@http://openejb.apache.org/xml/ns/corba-css-config-2.1). 011 * 012 * This is a complex type. 013 */ 014 public class CSSSasMechTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.corba.xbeans.csiv2.css.CSSSasMechType 015 { 016 017 public CSSSasMechTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName DESCRIPTION$0 = 023 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "description"); 024 private static final javax.xml.namespace.QName ITTABSENT$2 = 025 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "ITTAbsent"); 026 private static final javax.xml.namespace.QName ITTANONYMOUS$4 = 027 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "ITTAnonymous"); 028 private static final javax.xml.namespace.QName ITTPRINCIPALNAMESTATIC$6 = 029 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "ITTPrincipalNameStatic"); 030 private static final javax.xml.namespace.QName ITTPRINCIPALNAMEDYNAMIC$8 = 031 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "ITTPrincipalNameDynamic"); 032 033 034 /** 035 * Gets array of all "description" elements 036 */ 037 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType[] getDescriptionArray() 038 { 039 synchronized (monitor()) 040 { 041 check_orphaned(); 042 java.util.List targetList = new java.util.ArrayList(); 043 get_store().find_all_element_users(DESCRIPTION$0, targetList); 044 org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType[] result = new org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType[targetList.size()]; 045 targetList.toArray(result); 046 return result; 047 } 048 } 049 050 /** 051 * Gets ith "description" element 052 */ 053 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType getDescriptionArray(int i) 054 { 055 synchronized (monitor()) 056 { 057 check_orphaned(); 058 org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType target = null; 059 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType)get_store().find_element_user(DESCRIPTION$0, i); 060 if (target == null) 061 { 062 throw new IndexOutOfBoundsException(); 063 } 064 return target; 065 } 066 } 067 068 /** 069 * Returns number of "description" element 070 */ 071 public int sizeOfDescriptionArray() 072 { 073 synchronized (monitor()) 074 { 075 check_orphaned(); 076 return get_store().count_elements(DESCRIPTION$0); 077 } 078 } 079 080 /** 081 * Sets array of all "description" element 082 */ 083 public void setDescriptionArray(org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType[] descriptionArray) 084 { 085 synchronized (monitor()) 086 { 087 check_orphaned(); 088 arraySetterHelper(descriptionArray, DESCRIPTION$0); 089 } 090 } 091 092 /** 093 * Sets ith "description" element 094 */ 095 public void setDescriptionArray(int i, org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType description) 096 { 097 synchronized (monitor()) 098 { 099 check_orphaned(); 100 org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType target = null; 101 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType)get_store().find_element_user(DESCRIPTION$0, i); 102 if (target == null) 103 { 104 throw new IndexOutOfBoundsException(); 105 } 106 target.set(description); 107 } 108 } 109 110 /** 111 * Inserts and returns a new empty value (as xml) as the ith "description" element 112 */ 113 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType insertNewDescription(int i) 114 { 115 synchronized (monitor()) 116 { 117 check_orphaned(); 118 org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType target = null; 119 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType)get_store().insert_element_user(DESCRIPTION$0, i); 120 return target; 121 } 122 } 123 124 /** 125 * Appends and returns a new empty value (as xml) as the last "description" element 126 */ 127 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType addNewDescription() 128 { 129 synchronized (monitor()) 130 { 131 check_orphaned(); 132 org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType target = null; 133 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType)get_store().add_element_user(DESCRIPTION$0); 134 return target; 135 } 136 } 137 138 /** 139 * Removes the ith "description" element 140 */ 141 public void removeDescription(int i) 142 { 143 synchronized (monitor()) 144 { 145 check_orphaned(); 146 get_store().remove_element(DESCRIPTION$0, i); 147 } 148 } 149 150 /** 151 * Gets the "ITTAbsent" element 152 */ 153 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAbsentType getITTAbsent() 154 { 155 synchronized (monitor()) 156 { 157 check_orphaned(); 158 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAbsentType target = null; 159 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAbsentType)get_store().find_element_user(ITTABSENT$2, 0); 160 if (target == null) 161 { 162 return null; 163 } 164 return target; 165 } 166 } 167 168 /** 169 * True if has "ITTAbsent" element 170 */ 171 public boolean isSetITTAbsent() 172 { 173 synchronized (monitor()) 174 { 175 check_orphaned(); 176 return get_store().count_elements(ITTABSENT$2) != 0; 177 } 178 } 179 180 /** 181 * Sets the "ITTAbsent" element 182 */ 183 public void setITTAbsent(org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAbsentType ittAbsent) 184 { 185 synchronized (monitor()) 186 { 187 check_orphaned(); 188 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAbsentType target = null; 189 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAbsentType)get_store().find_element_user(ITTABSENT$2, 0); 190 if (target == null) 191 { 192 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAbsentType)get_store().add_element_user(ITTABSENT$2); 193 } 194 target.set(ittAbsent); 195 } 196 } 197 198 /** 199 * Appends and returns a new empty "ITTAbsent" element 200 */ 201 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAbsentType addNewITTAbsent() 202 { 203 synchronized (monitor()) 204 { 205 check_orphaned(); 206 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAbsentType target = null; 207 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAbsentType)get_store().add_element_user(ITTABSENT$2); 208 return target; 209 } 210 } 211 212 /** 213 * Unsets the "ITTAbsent" element 214 */ 215 public void unsetITTAbsent() 216 { 217 synchronized (monitor()) 218 { 219 check_orphaned(); 220 get_store().remove_element(ITTABSENT$2, 0); 221 } 222 } 223 224 /** 225 * Gets the "ITTAnonymous" element 226 */ 227 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAnonymousType getITTAnonymous() 228 { 229 synchronized (monitor()) 230 { 231 check_orphaned(); 232 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAnonymousType target = null; 233 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAnonymousType)get_store().find_element_user(ITTANONYMOUS$4, 0); 234 if (target == null) 235 { 236 return null; 237 } 238 return target; 239 } 240 } 241 242 /** 243 * True if has "ITTAnonymous" element 244 */ 245 public boolean isSetITTAnonymous() 246 { 247 synchronized (monitor()) 248 { 249 check_orphaned(); 250 return get_store().count_elements(ITTANONYMOUS$4) != 0; 251 } 252 } 253 254 /** 255 * Sets the "ITTAnonymous" element 256 */ 257 public void setITTAnonymous(org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAnonymousType ittAnonymous) 258 { 259 synchronized (monitor()) 260 { 261 check_orphaned(); 262 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAnonymousType target = null; 263 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAnonymousType)get_store().find_element_user(ITTANONYMOUS$4, 0); 264 if (target == null) 265 { 266 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAnonymousType)get_store().add_element_user(ITTANONYMOUS$4); 267 } 268 target.set(ittAnonymous); 269 } 270 } 271 272 /** 273 * Appends and returns a new empty "ITTAnonymous" element 274 */ 275 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAnonymousType addNewITTAnonymous() 276 { 277 synchronized (monitor()) 278 { 279 check_orphaned(); 280 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAnonymousType target = null; 281 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTAnonymousType)get_store().add_element_user(ITTANONYMOUS$4); 282 return target; 283 } 284 } 285 286 /** 287 * Unsets the "ITTAnonymous" element 288 */ 289 public void unsetITTAnonymous() 290 { 291 synchronized (monitor()) 292 { 293 check_orphaned(); 294 get_store().remove_element(ITTANONYMOUS$4, 0); 295 } 296 } 297 298 /** 299 * Gets the "ITTPrincipalNameStatic" element 300 */ 301 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType getITTPrincipalNameStatic() 302 { 303 synchronized (monitor()) 304 { 305 check_orphaned(); 306 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType target = null; 307 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType)get_store().find_element_user(ITTPRINCIPALNAMESTATIC$6, 0); 308 if (target == null) 309 { 310 return null; 311 } 312 return target; 313 } 314 } 315 316 /** 317 * True if has "ITTPrincipalNameStatic" element 318 */ 319 public boolean isSetITTPrincipalNameStatic() 320 { 321 synchronized (monitor()) 322 { 323 check_orphaned(); 324 return get_store().count_elements(ITTPRINCIPALNAMESTATIC$6) != 0; 325 } 326 } 327 328 /** 329 * Sets the "ITTPrincipalNameStatic" element 330 */ 331 public void setITTPrincipalNameStatic(org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType ittPrincipalNameStatic) 332 { 333 synchronized (monitor()) 334 { 335 check_orphaned(); 336 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType target = null; 337 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType)get_store().find_element_user(ITTPRINCIPALNAMESTATIC$6, 0); 338 if (target == null) 339 { 340 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType)get_store().add_element_user(ITTPRINCIPALNAMESTATIC$6); 341 } 342 target.set(ittPrincipalNameStatic); 343 } 344 } 345 346 /** 347 * Appends and returns a new empty "ITTPrincipalNameStatic" element 348 */ 349 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType addNewITTPrincipalNameStatic() 350 { 351 synchronized (monitor()) 352 { 353 check_orphaned(); 354 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType target = null; 355 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType)get_store().add_element_user(ITTPRINCIPALNAMESTATIC$6); 356 return target; 357 } 358 } 359 360 /** 361 * Unsets the "ITTPrincipalNameStatic" element 362 */ 363 public void unsetITTPrincipalNameStatic() 364 { 365 synchronized (monitor()) 366 { 367 check_orphaned(); 368 get_store().remove_element(ITTPRINCIPALNAMESTATIC$6, 0); 369 } 370 } 371 372 /** 373 * Gets the "ITTPrincipalNameDynamic" element 374 */ 375 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameDynamicType getITTPrincipalNameDynamic() 376 { 377 synchronized (monitor()) 378 { 379 check_orphaned(); 380 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameDynamicType target = null; 381 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameDynamicType)get_store().find_element_user(ITTPRINCIPALNAMEDYNAMIC$8, 0); 382 if (target == null) 383 { 384 return null; 385 } 386 return target; 387 } 388 } 389 390 /** 391 * True if has "ITTPrincipalNameDynamic" element 392 */ 393 public boolean isSetITTPrincipalNameDynamic() 394 { 395 synchronized (monitor()) 396 { 397 check_orphaned(); 398 return get_store().count_elements(ITTPRINCIPALNAMEDYNAMIC$8) != 0; 399 } 400 } 401 402 /** 403 * Sets the "ITTPrincipalNameDynamic" element 404 */ 405 public void setITTPrincipalNameDynamic(org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameDynamicType ittPrincipalNameDynamic) 406 { 407 synchronized (monitor()) 408 { 409 check_orphaned(); 410 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameDynamicType target = null; 411 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameDynamicType)get_store().find_element_user(ITTPRINCIPALNAMEDYNAMIC$8, 0); 412 if (target == null) 413 { 414 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameDynamicType)get_store().add_element_user(ITTPRINCIPALNAMEDYNAMIC$8); 415 } 416 target.set(ittPrincipalNameDynamic); 417 } 418 } 419 420 /** 421 * Appends and returns a new empty "ITTPrincipalNameDynamic" element 422 */ 423 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameDynamicType addNewITTPrincipalNameDynamic() 424 { 425 synchronized (monitor()) 426 { 427 check_orphaned(); 428 org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameDynamicType target = null; 429 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameDynamicType)get_store().add_element_user(ITTPRINCIPALNAMEDYNAMIC$8); 430 return target; 431 } 432 } 433 434 /** 435 * Unsets the "ITTPrincipalNameDynamic" element 436 */ 437 public void unsetITTPrincipalNameDynamic() 438 { 439 synchronized (monitor()) 440 { 441 check_orphaned(); 442 get_store().remove_element(ITTPRINCIPALNAMEDYNAMIC$8, 0); 443 } 444 } 445 }