001 /*
002 * XML Type: jetty-configType
003 * Namespace: http://geronimo.apache.org/xml/ns/web/jetty/config-1.0.1
004 * Java type: org.apache.geronimo.xbeans.geronimo.web.jetty.config.GerJettyConfigType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.web.jetty.config.impl;
009 /**
010 * An XML jetty-configType(@http://geronimo.apache.org/xml/ns/web/jetty/config-1.0.1).
011 *
012 * This is a complex type.
013 */
014 public class GerJettyConfigTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.web.jetty.config.GerJettyConfigType
015 {
016
017 public GerJettyConfigTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName HOST$0 =
023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/jetty/config-1.0.1", "host");
024 private static final javax.xml.namespace.QName VIRTUALHOST$2 =
025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/jetty/config-1.0.1", "virtual-host");
026 private static final javax.xml.namespace.QName SESSIONMANAGER$4 =
027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/jetty/config-1.0.1", "session-manager");
028 private static final javax.xml.namespace.QName COMPACTPATH$6 =
029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/jetty/config-1.0.1", "compact-path");
030
031
032 /**
033 * Gets array of all "host" elements
034 */
035 public java.lang.String[] getHostArray()
036 {
037 synchronized (monitor())
038 {
039 check_orphaned();
040 java.util.List targetList = new java.util.ArrayList();
041 get_store().find_all_element_users(HOST$0, targetList);
042 java.lang.String[] result = new java.lang.String[targetList.size()];
043 for (int i = 0, len = targetList.size() ; i < len ; i++)
044 result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
045 return result;
046 }
047 }
048
049 /**
050 * Gets ith "host" element
051 */
052 public java.lang.String getHostArray(int i)
053 {
054 synchronized (monitor())
055 {
056 check_orphaned();
057 org.apache.xmlbeans.SimpleValue target = null;
058 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOST$0, i);
059 if (target == null)
060 {
061 throw new IndexOutOfBoundsException();
062 }
063 return target.getStringValue();
064 }
065 }
066
067 /**
068 * Gets (as xml) array of all "host" elements
069 */
070 public org.apache.xmlbeans.XmlString[] xgetHostArray()
071 {
072 synchronized (monitor())
073 {
074 check_orphaned();
075 java.util.List targetList = new java.util.ArrayList();
076 get_store().find_all_element_users(HOST$0, targetList);
077 org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
078 targetList.toArray(result);
079 return result;
080 }
081 }
082
083 /**
084 * Gets (as xml) ith "host" element
085 */
086 public org.apache.xmlbeans.XmlString xgetHostArray(int i)
087 {
088 synchronized (monitor())
089 {
090 check_orphaned();
091 org.apache.xmlbeans.XmlString target = null;
092 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOST$0, i);
093 if (target == null)
094 {
095 throw new IndexOutOfBoundsException();
096 }
097 return (org.apache.xmlbeans.XmlString)target;
098 }
099 }
100
101 /**
102 * Returns number of "host" element
103 */
104 public int sizeOfHostArray()
105 {
106 synchronized (monitor())
107 {
108 check_orphaned();
109 return get_store().count_elements(HOST$0);
110 }
111 }
112
113 /**
114 * Sets array of all "host" element
115 */
116 public void setHostArray(java.lang.String[] hostArray)
117 {
118 synchronized (monitor())
119 {
120 check_orphaned();
121 arraySetterHelper(hostArray, HOST$0);
122 }
123 }
124
125 /**
126 * Sets ith "host" element
127 */
128 public void setHostArray(int i, java.lang.String host)
129 {
130 synchronized (monitor())
131 {
132 check_orphaned();
133 org.apache.xmlbeans.SimpleValue target = null;
134 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOST$0, i);
135 if (target == null)
136 {
137 throw new IndexOutOfBoundsException();
138 }
139 target.setStringValue(host);
140 }
141 }
142
143 /**
144 * Sets (as xml) array of all "host" element
145 */
146 public void xsetHostArray(org.apache.xmlbeans.XmlString[]hostArray)
147 {
148 synchronized (monitor())
149 {
150 check_orphaned();
151 arraySetterHelper(hostArray, HOST$0);
152 }
153 }
154
155 /**
156 * Sets (as xml) ith "host" element
157 */
158 public void xsetHostArray(int i, org.apache.xmlbeans.XmlString host)
159 {
160 synchronized (monitor())
161 {
162 check_orphaned();
163 org.apache.xmlbeans.XmlString target = null;
164 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOST$0, i);
165 if (target == null)
166 {
167 throw new IndexOutOfBoundsException();
168 }
169 target.set(host);
170 }
171 }
172
173 /**
174 * Inserts the value as the ith "host" element
175 */
176 public void insertHost(int i, java.lang.String host)
177 {
178 synchronized (monitor())
179 {
180 check_orphaned();
181 org.apache.xmlbeans.SimpleValue target =
182 (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(HOST$0, i);
183 target.setStringValue(host);
184 }
185 }
186
187 /**
188 * Appends the value as the last "host" element
189 */
190 public void addHost(java.lang.String host)
191 {
192 synchronized (monitor())
193 {
194 check_orphaned();
195 org.apache.xmlbeans.SimpleValue target = null;
196 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HOST$0);
197 target.setStringValue(host);
198 }
199 }
200
201 /**
202 * Inserts and returns a new empty value (as xml) as the ith "host" element
203 */
204 public org.apache.xmlbeans.XmlString insertNewHost(int i)
205 {
206 synchronized (monitor())
207 {
208 check_orphaned();
209 org.apache.xmlbeans.XmlString target = null;
210 target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(HOST$0, i);
211 return target;
212 }
213 }
214
215 /**
216 * Appends and returns a new empty value (as xml) as the last "host" element
217 */
218 public org.apache.xmlbeans.XmlString addNewHost()
219 {
220 synchronized (monitor())
221 {
222 check_orphaned();
223 org.apache.xmlbeans.XmlString target = null;
224 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(HOST$0);
225 return target;
226 }
227 }
228
229 /**
230 * Removes the ith "host" element
231 */
232 public void removeHost(int i)
233 {
234 synchronized (monitor())
235 {
236 check_orphaned();
237 get_store().remove_element(HOST$0, i);
238 }
239 }
240
241 /**
242 * Gets array of all "virtual-host" elements
243 */
244 public java.lang.String[] getVirtualHostArray()
245 {
246 synchronized (monitor())
247 {
248 check_orphaned();
249 java.util.List targetList = new java.util.ArrayList();
250 get_store().find_all_element_users(VIRTUALHOST$2, targetList);
251 java.lang.String[] result = new java.lang.String[targetList.size()];
252 for (int i = 0, len = targetList.size() ; i < len ; i++)
253 result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
254 return result;
255 }
256 }
257
258 /**
259 * Gets ith "virtual-host" element
260 */
261 public java.lang.String getVirtualHostArray(int i)
262 {
263 synchronized (monitor())
264 {
265 check_orphaned();
266 org.apache.xmlbeans.SimpleValue target = null;
267 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VIRTUALHOST$2, i);
268 if (target == null)
269 {
270 throw new IndexOutOfBoundsException();
271 }
272 return target.getStringValue();
273 }
274 }
275
276 /**
277 * Gets (as xml) array of all "virtual-host" elements
278 */
279 public org.apache.xmlbeans.XmlString[] xgetVirtualHostArray()
280 {
281 synchronized (monitor())
282 {
283 check_orphaned();
284 java.util.List targetList = new java.util.ArrayList();
285 get_store().find_all_element_users(VIRTUALHOST$2, targetList);
286 org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
287 targetList.toArray(result);
288 return result;
289 }
290 }
291
292 /**
293 * Gets (as xml) ith "virtual-host" element
294 */
295 public org.apache.xmlbeans.XmlString xgetVirtualHostArray(int i)
296 {
297 synchronized (monitor())
298 {
299 check_orphaned();
300 org.apache.xmlbeans.XmlString target = null;
301 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VIRTUALHOST$2, i);
302 if (target == null)
303 {
304 throw new IndexOutOfBoundsException();
305 }
306 return (org.apache.xmlbeans.XmlString)target;
307 }
308 }
309
310 /**
311 * Returns number of "virtual-host" element
312 */
313 public int sizeOfVirtualHostArray()
314 {
315 synchronized (monitor())
316 {
317 check_orphaned();
318 return get_store().count_elements(VIRTUALHOST$2);
319 }
320 }
321
322 /**
323 * Sets array of all "virtual-host" element
324 */
325 public void setVirtualHostArray(java.lang.String[] virtualHostArray)
326 {
327 synchronized (monitor())
328 {
329 check_orphaned();
330 arraySetterHelper(virtualHostArray, VIRTUALHOST$2);
331 }
332 }
333
334 /**
335 * Sets ith "virtual-host" element
336 */
337 public void setVirtualHostArray(int i, java.lang.String virtualHost)
338 {
339 synchronized (monitor())
340 {
341 check_orphaned();
342 org.apache.xmlbeans.SimpleValue target = null;
343 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VIRTUALHOST$2, i);
344 if (target == null)
345 {
346 throw new IndexOutOfBoundsException();
347 }
348 target.setStringValue(virtualHost);
349 }
350 }
351
352 /**
353 * Sets (as xml) array of all "virtual-host" element
354 */
355 public void xsetVirtualHostArray(org.apache.xmlbeans.XmlString[]virtualHostArray)
356 {
357 synchronized (monitor())
358 {
359 check_orphaned();
360 arraySetterHelper(virtualHostArray, VIRTUALHOST$2);
361 }
362 }
363
364 /**
365 * Sets (as xml) ith "virtual-host" element
366 */
367 public void xsetVirtualHostArray(int i, org.apache.xmlbeans.XmlString virtualHost)
368 {
369 synchronized (monitor())
370 {
371 check_orphaned();
372 org.apache.xmlbeans.XmlString target = null;
373 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VIRTUALHOST$2, i);
374 if (target == null)
375 {
376 throw new IndexOutOfBoundsException();
377 }
378 target.set(virtualHost);
379 }
380 }
381
382 /**
383 * Inserts the value as the ith "virtual-host" element
384 */
385 public void insertVirtualHost(int i, java.lang.String virtualHost)
386 {
387 synchronized (monitor())
388 {
389 check_orphaned();
390 org.apache.xmlbeans.SimpleValue target =
391 (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(VIRTUALHOST$2, i);
392 target.setStringValue(virtualHost);
393 }
394 }
395
396 /**
397 * Appends the value as the last "virtual-host" element
398 */
399 public void addVirtualHost(java.lang.String virtualHost)
400 {
401 synchronized (monitor())
402 {
403 check_orphaned();
404 org.apache.xmlbeans.SimpleValue target = null;
405 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VIRTUALHOST$2);
406 target.setStringValue(virtualHost);
407 }
408 }
409
410 /**
411 * Inserts and returns a new empty value (as xml) as the ith "virtual-host" element
412 */
413 public org.apache.xmlbeans.XmlString insertNewVirtualHost(int i)
414 {
415 synchronized (monitor())
416 {
417 check_orphaned();
418 org.apache.xmlbeans.XmlString target = null;
419 target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(VIRTUALHOST$2, i);
420 return target;
421 }
422 }
423
424 /**
425 * Appends and returns a new empty value (as xml) as the last "virtual-host" element
426 */
427 public org.apache.xmlbeans.XmlString addNewVirtualHost()
428 {
429 synchronized (monitor())
430 {
431 check_orphaned();
432 org.apache.xmlbeans.XmlString target = null;
433 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VIRTUALHOST$2);
434 return target;
435 }
436 }
437
438 /**
439 * Removes the ith "virtual-host" element
440 */
441 public void removeVirtualHost(int i)
442 {
443 synchronized (monitor())
444 {
445 check_orphaned();
446 get_store().remove_element(VIRTUALHOST$2, i);
447 }
448 }
449
450 /**
451 * Gets the "session-manager" element
452 */
453 public java.lang.String getSessionManager()
454 {
455 synchronized (monitor())
456 {
457 check_orphaned();
458 org.apache.xmlbeans.SimpleValue target = null;
459 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SESSIONMANAGER$4, 0);
460 if (target == null)
461 {
462 return null;
463 }
464 return target.getStringValue();
465 }
466 }
467
468 /**
469 * Gets (as xml) the "session-manager" element
470 */
471 public org.apache.xmlbeans.XmlString xgetSessionManager()
472 {
473 synchronized (monitor())
474 {
475 check_orphaned();
476 org.apache.xmlbeans.XmlString target = null;
477 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SESSIONMANAGER$4, 0);
478 return target;
479 }
480 }
481
482 /**
483 * True if has "session-manager" element
484 */
485 public boolean isSetSessionManager()
486 {
487 synchronized (monitor())
488 {
489 check_orphaned();
490 return get_store().count_elements(SESSIONMANAGER$4) != 0;
491 }
492 }
493
494 /**
495 * Sets the "session-manager" element
496 */
497 public void setSessionManager(java.lang.String sessionManager)
498 {
499 synchronized (monitor())
500 {
501 check_orphaned();
502 org.apache.xmlbeans.SimpleValue target = null;
503 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SESSIONMANAGER$4, 0);
504 if (target == null)
505 {
506 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SESSIONMANAGER$4);
507 }
508 target.setStringValue(sessionManager);
509 }
510 }
511
512 /**
513 * Sets (as xml) the "session-manager" element
514 */
515 public void xsetSessionManager(org.apache.xmlbeans.XmlString sessionManager)
516 {
517 synchronized (monitor())
518 {
519 check_orphaned();
520 org.apache.xmlbeans.XmlString target = null;
521 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SESSIONMANAGER$4, 0);
522 if (target == null)
523 {
524 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SESSIONMANAGER$4);
525 }
526 target.set(sessionManager);
527 }
528 }
529
530 /**
531 * Unsets the "session-manager" element
532 */
533 public void unsetSessionManager()
534 {
535 synchronized (monitor())
536 {
537 check_orphaned();
538 get_store().remove_element(SESSIONMANAGER$4, 0);
539 }
540 }
541
542 /**
543 * Gets the "compact-path" element
544 */
545 public boolean getCompactPath()
546 {
547 synchronized (monitor())
548 {
549 check_orphaned();
550 org.apache.xmlbeans.SimpleValue target = null;
551 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMPACTPATH$6, 0);
552 if (target == null)
553 {
554 return false;
555 }
556 return target.getBooleanValue();
557 }
558 }
559
560 /**
561 * Gets (as xml) the "compact-path" element
562 */
563 public org.apache.xmlbeans.XmlBoolean xgetCompactPath()
564 {
565 synchronized (monitor())
566 {
567 check_orphaned();
568 org.apache.xmlbeans.XmlBoolean target = null;
569 target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(COMPACTPATH$6, 0);
570 return target;
571 }
572 }
573
574 /**
575 * True if has "compact-path" element
576 */
577 public boolean isSetCompactPath()
578 {
579 synchronized (monitor())
580 {
581 check_orphaned();
582 return get_store().count_elements(COMPACTPATH$6) != 0;
583 }
584 }
585
586 /**
587 * Sets the "compact-path" element
588 */
589 public void setCompactPath(boolean compactPath)
590 {
591 synchronized (monitor())
592 {
593 check_orphaned();
594 org.apache.xmlbeans.SimpleValue target = null;
595 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMPACTPATH$6, 0);
596 if (target == null)
597 {
598 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COMPACTPATH$6);
599 }
600 target.setBooleanValue(compactPath);
601 }
602 }
603
604 /**
605 * Sets (as xml) the "compact-path" element
606 */
607 public void xsetCompactPath(org.apache.xmlbeans.XmlBoolean compactPath)
608 {
609 synchronized (monitor())
610 {
611 check_orphaned();
612 org.apache.xmlbeans.XmlBoolean target = null;
613 target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(COMPACTPATH$6, 0);
614 if (target == null)
615 {
616 target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(COMPACTPATH$6);
617 }
618 target.set(compactPath);
619 }
620 }
621
622 /**
623 * Unsets the "compact-path" element
624 */
625 public void unsetCompactPath()
626 {
627 synchronized (monitor())
628 {
629 check_orphaned();
630 get_store().remove_element(COMPACTPATH$6, 0);
631 }
632 }
633 }