001 /*
002 * XML Type: roleType
003 * Namespace: http://geronimo.apache.org/xml/ns/security-2.0
004 * Java type: org.apache.geronimo.xbeans.geronimo.security.GerRoleType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.security.impl;
009 /**
010 * An XML roleType(@http://geronimo.apache.org/xml/ns/security-2.0).
011 *
012 * This is a complex type.
013 */
014 public class GerRoleTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.security.GerRoleType
015 {
016
017 public GerRoleTypeImpl(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://geronimo.apache.org/xml/ns/security-2.0", "description");
024 private static final javax.xml.namespace.QName RUNASSUBJECT$2 =
025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/security-2.0", "run-as-subject");
026 private static final javax.xml.namespace.QName REALMPRINCIPAL$4 =
027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/security-2.0", "realm-principal");
028 private static final javax.xml.namespace.QName LOGINDOMAINPRINCIPAL$6 =
029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/security-2.0", "login-domain-principal");
030 private static final javax.xml.namespace.QName PRINCIPAL$8 =
031 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/security-2.0", "principal");
032 private static final javax.xml.namespace.QName DISTINGUISHEDNAME$10 =
033 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/security-2.0", "distinguished-name");
034 private static final javax.xml.namespace.QName ROLENAME$12 =
035 new javax.xml.namespace.QName("", "role-name");
036
037
038 /**
039 * Gets array of all "description" elements
040 */
041 public org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType[] getDescriptionArray()
042 {
043 synchronized (monitor())
044 {
045 check_orphaned();
046 java.util.List targetList = new java.util.ArrayList();
047 get_store().find_all_element_users(DESCRIPTION$0, targetList);
048 org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType[] result = new org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType[targetList.size()];
049 targetList.toArray(result);
050 return result;
051 }
052 }
053
054 /**
055 * Gets ith "description" element
056 */
057 public org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType getDescriptionArray(int i)
058 {
059 synchronized (monitor())
060 {
061 check_orphaned();
062 org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType target = null;
063 target = (org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType)get_store().find_element_user(DESCRIPTION$0, i);
064 if (target == null)
065 {
066 throw new IndexOutOfBoundsException();
067 }
068 return target;
069 }
070 }
071
072 /**
073 * Returns number of "description" element
074 */
075 public int sizeOfDescriptionArray()
076 {
077 synchronized (monitor())
078 {
079 check_orphaned();
080 return get_store().count_elements(DESCRIPTION$0);
081 }
082 }
083
084 /**
085 * Sets array of all "description" element
086 */
087 public void setDescriptionArray(org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType[] descriptionArray)
088 {
089 synchronized (monitor())
090 {
091 check_orphaned();
092 arraySetterHelper(descriptionArray, DESCRIPTION$0);
093 }
094 }
095
096 /**
097 * Sets ith "description" element
098 */
099 public void setDescriptionArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType description)
100 {
101 synchronized (monitor())
102 {
103 check_orphaned();
104 org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType target = null;
105 target = (org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType)get_store().find_element_user(DESCRIPTION$0, i);
106 if (target == null)
107 {
108 throw new IndexOutOfBoundsException();
109 }
110 target.set(description);
111 }
112 }
113
114 /**
115 * Inserts and returns a new empty value (as xml) as the ith "description" element
116 */
117 public org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType insertNewDescription(int i)
118 {
119 synchronized (monitor())
120 {
121 check_orphaned();
122 org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType target = null;
123 target = (org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType)get_store().insert_element_user(DESCRIPTION$0, i);
124 return target;
125 }
126 }
127
128 /**
129 * Appends and returns a new empty value (as xml) as the last "description" element
130 */
131 public org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType addNewDescription()
132 {
133 synchronized (monitor())
134 {
135 check_orphaned();
136 org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType target = null;
137 target = (org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType)get_store().add_element_user(DESCRIPTION$0);
138 return target;
139 }
140 }
141
142 /**
143 * Removes the ith "description" element
144 */
145 public void removeDescription(int i)
146 {
147 synchronized (monitor())
148 {
149 check_orphaned();
150 get_store().remove_element(DESCRIPTION$0, i);
151 }
152 }
153
154 /**
155 * Gets the "run-as-subject" element
156 */
157 public org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType getRunAsSubject()
158 {
159 synchronized (monitor())
160 {
161 check_orphaned();
162 org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType target = null;
163 target = (org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType)get_store().find_element_user(RUNASSUBJECT$2, 0);
164 if (target == null)
165 {
166 return null;
167 }
168 return target;
169 }
170 }
171
172 /**
173 * True if has "run-as-subject" element
174 */
175 public boolean isSetRunAsSubject()
176 {
177 synchronized (monitor())
178 {
179 check_orphaned();
180 return get_store().count_elements(RUNASSUBJECT$2) != 0;
181 }
182 }
183
184 /**
185 * Sets the "run-as-subject" element
186 */
187 public void setRunAsSubject(org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType runAsSubject)
188 {
189 synchronized (monitor())
190 {
191 check_orphaned();
192 org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType target = null;
193 target = (org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType)get_store().find_element_user(RUNASSUBJECT$2, 0);
194 if (target == null)
195 {
196 target = (org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType)get_store().add_element_user(RUNASSUBJECT$2);
197 }
198 target.set(runAsSubject);
199 }
200 }
201
202 /**
203 * Appends and returns a new empty "run-as-subject" element
204 */
205 public org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType addNewRunAsSubject()
206 {
207 synchronized (monitor())
208 {
209 check_orphaned();
210 org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType target = null;
211 target = (org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType)get_store().add_element_user(RUNASSUBJECT$2);
212 return target;
213 }
214 }
215
216 /**
217 * Unsets the "run-as-subject" element
218 */
219 public void unsetRunAsSubject()
220 {
221 synchronized (monitor())
222 {
223 check_orphaned();
224 get_store().remove_element(RUNASSUBJECT$2, 0);
225 }
226 }
227
228 /**
229 * Gets array of all "realm-principal" elements
230 */
231 public org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType[] getRealmPrincipalArray()
232 {
233 synchronized (monitor())
234 {
235 check_orphaned();
236 java.util.List targetList = new java.util.ArrayList();
237 get_store().find_all_element_users(REALMPRINCIPAL$4, targetList);
238 org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType[] result = new org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType[targetList.size()];
239 targetList.toArray(result);
240 return result;
241 }
242 }
243
244 /**
245 * Gets ith "realm-principal" element
246 */
247 public org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType getRealmPrincipalArray(int i)
248 {
249 synchronized (monitor())
250 {
251 check_orphaned();
252 org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType target = null;
253 target = (org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType)get_store().find_element_user(REALMPRINCIPAL$4, i);
254 if (target == null)
255 {
256 throw new IndexOutOfBoundsException();
257 }
258 return target;
259 }
260 }
261
262 /**
263 * Returns number of "realm-principal" element
264 */
265 public int sizeOfRealmPrincipalArray()
266 {
267 synchronized (monitor())
268 {
269 check_orphaned();
270 return get_store().count_elements(REALMPRINCIPAL$4);
271 }
272 }
273
274 /**
275 * Sets array of all "realm-principal" element
276 */
277 public void setRealmPrincipalArray(org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType[] realmPrincipalArray)
278 {
279 synchronized (monitor())
280 {
281 check_orphaned();
282 arraySetterHelper(realmPrincipalArray, REALMPRINCIPAL$4);
283 }
284 }
285
286 /**
287 * Sets ith "realm-principal" element
288 */
289 public void setRealmPrincipalArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType realmPrincipal)
290 {
291 synchronized (monitor())
292 {
293 check_orphaned();
294 org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType target = null;
295 target = (org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType)get_store().find_element_user(REALMPRINCIPAL$4, i);
296 if (target == null)
297 {
298 throw new IndexOutOfBoundsException();
299 }
300 target.set(realmPrincipal);
301 }
302 }
303
304 /**
305 * Inserts and returns a new empty value (as xml) as the ith "realm-principal" element
306 */
307 public org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType insertNewRealmPrincipal(int i)
308 {
309 synchronized (monitor())
310 {
311 check_orphaned();
312 org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType target = null;
313 target = (org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType)get_store().insert_element_user(REALMPRINCIPAL$4, i);
314 return target;
315 }
316 }
317
318 /**
319 * Appends and returns a new empty value (as xml) as the last "realm-principal" element
320 */
321 public org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType addNewRealmPrincipal()
322 {
323 synchronized (monitor())
324 {
325 check_orphaned();
326 org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType target = null;
327 target = (org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType)get_store().add_element_user(REALMPRINCIPAL$4);
328 return target;
329 }
330 }
331
332 /**
333 * Removes the ith "realm-principal" element
334 */
335 public void removeRealmPrincipal(int i)
336 {
337 synchronized (monitor())
338 {
339 check_orphaned();
340 get_store().remove_element(REALMPRINCIPAL$4, i);
341 }
342 }
343
344 /**
345 * Gets array of all "login-domain-principal" elements
346 */
347 public org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType[] getLoginDomainPrincipalArray()
348 {
349 synchronized (monitor())
350 {
351 check_orphaned();
352 java.util.List targetList = new java.util.ArrayList();
353 get_store().find_all_element_users(LOGINDOMAINPRINCIPAL$6, targetList);
354 org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType[] result = new org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType[targetList.size()];
355 targetList.toArray(result);
356 return result;
357 }
358 }
359
360 /**
361 * Gets ith "login-domain-principal" element
362 */
363 public org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType getLoginDomainPrincipalArray(int i)
364 {
365 synchronized (monitor())
366 {
367 check_orphaned();
368 org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType target = null;
369 target = (org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType)get_store().find_element_user(LOGINDOMAINPRINCIPAL$6, i);
370 if (target == null)
371 {
372 throw new IndexOutOfBoundsException();
373 }
374 return target;
375 }
376 }
377
378 /**
379 * Returns number of "login-domain-principal" element
380 */
381 public int sizeOfLoginDomainPrincipalArray()
382 {
383 synchronized (monitor())
384 {
385 check_orphaned();
386 return get_store().count_elements(LOGINDOMAINPRINCIPAL$6);
387 }
388 }
389
390 /**
391 * Sets array of all "login-domain-principal" element
392 */
393 public void setLoginDomainPrincipalArray(org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType[] loginDomainPrincipalArray)
394 {
395 synchronized (monitor())
396 {
397 check_orphaned();
398 arraySetterHelper(loginDomainPrincipalArray, LOGINDOMAINPRINCIPAL$6);
399 }
400 }
401
402 /**
403 * Sets ith "login-domain-principal" element
404 */
405 public void setLoginDomainPrincipalArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType loginDomainPrincipal)
406 {
407 synchronized (monitor())
408 {
409 check_orphaned();
410 org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType target = null;
411 target = (org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType)get_store().find_element_user(LOGINDOMAINPRINCIPAL$6, i);
412 if (target == null)
413 {
414 throw new IndexOutOfBoundsException();
415 }
416 target.set(loginDomainPrincipal);
417 }
418 }
419
420 /**
421 * Inserts and returns a new empty value (as xml) as the ith "login-domain-principal" element
422 */
423 public org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType insertNewLoginDomainPrincipal(int i)
424 {
425 synchronized (monitor())
426 {
427 check_orphaned();
428 org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType target = null;
429 target = (org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType)get_store().insert_element_user(LOGINDOMAINPRINCIPAL$6, i);
430 return target;
431 }
432 }
433
434 /**
435 * Appends and returns a new empty value (as xml) as the last "login-domain-principal" element
436 */
437 public org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType addNewLoginDomainPrincipal()
438 {
439 synchronized (monitor())
440 {
441 check_orphaned();
442 org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType target = null;
443 target = (org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType)get_store().add_element_user(LOGINDOMAINPRINCIPAL$6);
444 return target;
445 }
446 }
447
448 /**
449 * Removes the ith "login-domain-principal" element
450 */
451 public void removeLoginDomainPrincipal(int i)
452 {
453 synchronized (monitor())
454 {
455 check_orphaned();
456 get_store().remove_element(LOGINDOMAINPRINCIPAL$6, i);
457 }
458 }
459
460 /**
461 * Gets array of all "principal" elements
462 */
463 public org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType[] getPrincipalArray()
464 {
465 synchronized (monitor())
466 {
467 check_orphaned();
468 java.util.List targetList = new java.util.ArrayList();
469 get_store().find_all_element_users(PRINCIPAL$8, targetList);
470 org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType[] result = new org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType[targetList.size()];
471 targetList.toArray(result);
472 return result;
473 }
474 }
475
476 /**
477 * Gets ith "principal" element
478 */
479 public org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType getPrincipalArray(int i)
480 {
481 synchronized (monitor())
482 {
483 check_orphaned();
484 org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType target = null;
485 target = (org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType)get_store().find_element_user(PRINCIPAL$8, i);
486 if (target == null)
487 {
488 throw new IndexOutOfBoundsException();
489 }
490 return target;
491 }
492 }
493
494 /**
495 * Returns number of "principal" element
496 */
497 public int sizeOfPrincipalArray()
498 {
499 synchronized (monitor())
500 {
501 check_orphaned();
502 return get_store().count_elements(PRINCIPAL$8);
503 }
504 }
505
506 /**
507 * Sets array of all "principal" element
508 */
509 public void setPrincipalArray(org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType[] principalArray)
510 {
511 synchronized (monitor())
512 {
513 check_orphaned();
514 arraySetterHelper(principalArray, PRINCIPAL$8);
515 }
516 }
517
518 /**
519 * Sets ith "principal" element
520 */
521 public void setPrincipalArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType principal)
522 {
523 synchronized (monitor())
524 {
525 check_orphaned();
526 org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType target = null;
527 target = (org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType)get_store().find_element_user(PRINCIPAL$8, i);
528 if (target == null)
529 {
530 throw new IndexOutOfBoundsException();
531 }
532 target.set(principal);
533 }
534 }
535
536 /**
537 * Inserts and returns a new empty value (as xml) as the ith "principal" element
538 */
539 public org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType insertNewPrincipal(int i)
540 {
541 synchronized (monitor())
542 {
543 check_orphaned();
544 org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType target = null;
545 target = (org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType)get_store().insert_element_user(PRINCIPAL$8, i);
546 return target;
547 }
548 }
549
550 /**
551 * Appends and returns a new empty value (as xml) as the last "principal" element
552 */
553 public org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType addNewPrincipal()
554 {
555 synchronized (monitor())
556 {
557 check_orphaned();
558 org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType target = null;
559 target = (org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType)get_store().add_element_user(PRINCIPAL$8);
560 return target;
561 }
562 }
563
564 /**
565 * Removes the ith "principal" element
566 */
567 public void removePrincipal(int i)
568 {
569 synchronized (monitor())
570 {
571 check_orphaned();
572 get_store().remove_element(PRINCIPAL$8, i);
573 }
574 }
575
576 /**
577 * Gets array of all "distinguished-name" elements
578 */
579 public org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType[] getDistinguishedNameArray()
580 {
581 synchronized (monitor())
582 {
583 check_orphaned();
584 java.util.List targetList = new java.util.ArrayList();
585 get_store().find_all_element_users(DISTINGUISHEDNAME$10, targetList);
586 org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType[] result = new org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType[targetList.size()];
587 targetList.toArray(result);
588 return result;
589 }
590 }
591
592 /**
593 * Gets ith "distinguished-name" element
594 */
595 public org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType getDistinguishedNameArray(int i)
596 {
597 synchronized (monitor())
598 {
599 check_orphaned();
600 org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType target = null;
601 target = (org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType)get_store().find_element_user(DISTINGUISHEDNAME$10, i);
602 if (target == null)
603 {
604 throw new IndexOutOfBoundsException();
605 }
606 return target;
607 }
608 }
609
610 /**
611 * Returns number of "distinguished-name" element
612 */
613 public int sizeOfDistinguishedNameArray()
614 {
615 synchronized (monitor())
616 {
617 check_orphaned();
618 return get_store().count_elements(DISTINGUISHEDNAME$10);
619 }
620 }
621
622 /**
623 * Sets array of all "distinguished-name" element
624 */
625 public void setDistinguishedNameArray(org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType[] distinguishedNameArray)
626 {
627 synchronized (monitor())
628 {
629 check_orphaned();
630 arraySetterHelper(distinguishedNameArray, DISTINGUISHEDNAME$10);
631 }
632 }
633
634 /**
635 * Sets ith "distinguished-name" element
636 */
637 public void setDistinguishedNameArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType distinguishedName)
638 {
639 synchronized (monitor())
640 {
641 check_orphaned();
642 org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType target = null;
643 target = (org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType)get_store().find_element_user(DISTINGUISHEDNAME$10, i);
644 if (target == null)
645 {
646 throw new IndexOutOfBoundsException();
647 }
648 target.set(distinguishedName);
649 }
650 }
651
652 /**
653 * Inserts and returns a new empty value (as xml) as the ith "distinguished-name" element
654 */
655 public org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType insertNewDistinguishedName(int i)
656 {
657 synchronized (monitor())
658 {
659 check_orphaned();
660 org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType target = null;
661 target = (org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType)get_store().insert_element_user(DISTINGUISHEDNAME$10, i);
662 return target;
663 }
664 }
665
666 /**
667 * Appends and returns a new empty value (as xml) as the last "distinguished-name" element
668 */
669 public org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType addNewDistinguishedName()
670 {
671 synchronized (monitor())
672 {
673 check_orphaned();
674 org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType target = null;
675 target = (org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType)get_store().add_element_user(DISTINGUISHEDNAME$10);
676 return target;
677 }
678 }
679
680 /**
681 * Removes the ith "distinguished-name" element
682 */
683 public void removeDistinguishedName(int i)
684 {
685 synchronized (monitor())
686 {
687 check_orphaned();
688 get_store().remove_element(DISTINGUISHEDNAME$10, i);
689 }
690 }
691
692 /**
693 * Gets the "role-name" attribute
694 */
695 public java.lang.String getRoleName()
696 {
697 synchronized (monitor())
698 {
699 check_orphaned();
700 org.apache.xmlbeans.SimpleValue target = null;
701 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ROLENAME$12);
702 if (target == null)
703 {
704 return null;
705 }
706 return target.getStringValue();
707 }
708 }
709
710 /**
711 * Gets (as xml) the "role-name" attribute
712 */
713 public org.apache.xmlbeans.XmlString xgetRoleName()
714 {
715 synchronized (monitor())
716 {
717 check_orphaned();
718 org.apache.xmlbeans.XmlString target = null;
719 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ROLENAME$12);
720 return target;
721 }
722 }
723
724 /**
725 * Sets the "role-name" attribute
726 */
727 public void setRoleName(java.lang.String roleName)
728 {
729 synchronized (monitor())
730 {
731 check_orphaned();
732 org.apache.xmlbeans.SimpleValue target = null;
733 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ROLENAME$12);
734 if (target == null)
735 {
736 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROLENAME$12);
737 }
738 target.setStringValue(roleName);
739 }
740 }
741
742 /**
743 * Sets (as xml) the "role-name" attribute
744 */
745 public void xsetRoleName(org.apache.xmlbeans.XmlString roleName)
746 {
747 synchronized (monitor())
748 {
749 check_orphaned();
750 org.apache.xmlbeans.XmlString target = null;
751 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ROLENAME$12);
752 if (target == null)
753 {
754 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ROLENAME$12);
755 }
756 target.set(roleName);
757 }
758 }
759 }