001 /*
002 * XML Type: portType
003 * Namespace: http://geronimo.apache.org/xml/ns/naming-1.2
004 * Java type: org.apache.geronimo.xbeans.geronimo.naming.GerPortType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.naming.impl;
009 /**
010 * An XML portType(@http://geronimo.apache.org/xml/ns/naming-1.2).
011 *
012 * This is a complex type.
013 */
014 public class GerPortTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.naming.GerPortType
015 {
016
017 public GerPortTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName PORTNAME$0 =
023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "port-name");
024 private static final javax.xml.namespace.QName PROTOCOL$2 =
025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "protocol");
026 private static final javax.xml.namespace.QName HOST$4 =
027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "host");
028 private static final javax.xml.namespace.QName PORT$6 =
029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "port");
030 private static final javax.xml.namespace.QName URI$8 =
031 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "uri");
032 private static final javax.xml.namespace.QName CREDENTIALSNAME$10 =
033 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "credentials-name");
034
035
036 /**
037 * Gets the "port-name" element
038 */
039 public java.lang.String getPortName()
040 {
041 synchronized (monitor())
042 {
043 check_orphaned();
044 org.apache.xmlbeans.SimpleValue target = null;
045 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PORTNAME$0, 0);
046 if (target == null)
047 {
048 return null;
049 }
050 return target.getStringValue();
051 }
052 }
053
054 /**
055 * Gets (as xml) the "port-name" element
056 */
057 public org.apache.xmlbeans.XmlString xgetPortName()
058 {
059 synchronized (monitor())
060 {
061 check_orphaned();
062 org.apache.xmlbeans.XmlString target = null;
063 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PORTNAME$0, 0);
064 return target;
065 }
066 }
067
068 /**
069 * Sets the "port-name" element
070 */
071 public void setPortName(java.lang.String portName)
072 {
073 synchronized (monitor())
074 {
075 check_orphaned();
076 org.apache.xmlbeans.SimpleValue target = null;
077 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PORTNAME$0, 0);
078 if (target == null)
079 {
080 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PORTNAME$0);
081 }
082 target.setStringValue(portName);
083 }
084 }
085
086 /**
087 * Sets (as xml) the "port-name" element
088 */
089 public void xsetPortName(org.apache.xmlbeans.XmlString portName)
090 {
091 synchronized (monitor())
092 {
093 check_orphaned();
094 org.apache.xmlbeans.XmlString target = null;
095 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PORTNAME$0, 0);
096 if (target == null)
097 {
098 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PORTNAME$0);
099 }
100 target.set(portName);
101 }
102 }
103
104 /**
105 * Gets the "protocol" element
106 */
107 public java.lang.String getProtocol()
108 {
109 synchronized (monitor())
110 {
111 check_orphaned();
112 org.apache.xmlbeans.SimpleValue target = null;
113 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROTOCOL$2, 0);
114 if (target == null)
115 {
116 return null;
117 }
118 return target.getStringValue();
119 }
120 }
121
122 /**
123 * Gets (as xml) the "protocol" element
124 */
125 public org.apache.xmlbeans.XmlString xgetProtocol()
126 {
127 synchronized (monitor())
128 {
129 check_orphaned();
130 org.apache.xmlbeans.XmlString target = null;
131 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROTOCOL$2, 0);
132 return target;
133 }
134 }
135
136 /**
137 * True if has "protocol" element
138 */
139 public boolean isSetProtocol()
140 {
141 synchronized (monitor())
142 {
143 check_orphaned();
144 return get_store().count_elements(PROTOCOL$2) != 0;
145 }
146 }
147
148 /**
149 * Sets the "protocol" element
150 */
151 public void setProtocol(java.lang.String protocol)
152 {
153 synchronized (monitor())
154 {
155 check_orphaned();
156 org.apache.xmlbeans.SimpleValue target = null;
157 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROTOCOL$2, 0);
158 if (target == null)
159 {
160 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROTOCOL$2);
161 }
162 target.setStringValue(protocol);
163 }
164 }
165
166 /**
167 * Sets (as xml) the "protocol" element
168 */
169 public void xsetProtocol(org.apache.xmlbeans.XmlString protocol)
170 {
171 synchronized (monitor())
172 {
173 check_orphaned();
174 org.apache.xmlbeans.XmlString target = null;
175 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROTOCOL$2, 0);
176 if (target == null)
177 {
178 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROTOCOL$2);
179 }
180 target.set(protocol);
181 }
182 }
183
184 /**
185 * Unsets the "protocol" element
186 */
187 public void unsetProtocol()
188 {
189 synchronized (monitor())
190 {
191 check_orphaned();
192 get_store().remove_element(PROTOCOL$2, 0);
193 }
194 }
195
196 /**
197 * Gets the "host" element
198 */
199 public java.lang.String getHost()
200 {
201 synchronized (monitor())
202 {
203 check_orphaned();
204 org.apache.xmlbeans.SimpleValue target = null;
205 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOST$4, 0);
206 if (target == null)
207 {
208 return null;
209 }
210 return target.getStringValue();
211 }
212 }
213
214 /**
215 * Gets (as xml) the "host" element
216 */
217 public org.apache.xmlbeans.XmlString xgetHost()
218 {
219 synchronized (monitor())
220 {
221 check_orphaned();
222 org.apache.xmlbeans.XmlString target = null;
223 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOST$4, 0);
224 return target;
225 }
226 }
227
228 /**
229 * True if has "host" element
230 */
231 public boolean isSetHost()
232 {
233 synchronized (monitor())
234 {
235 check_orphaned();
236 return get_store().count_elements(HOST$4) != 0;
237 }
238 }
239
240 /**
241 * Sets the "host" element
242 */
243 public void setHost(java.lang.String host)
244 {
245 synchronized (monitor())
246 {
247 check_orphaned();
248 org.apache.xmlbeans.SimpleValue target = null;
249 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOST$4, 0);
250 if (target == null)
251 {
252 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HOST$4);
253 }
254 target.setStringValue(host);
255 }
256 }
257
258 /**
259 * Sets (as xml) the "host" element
260 */
261 public void xsetHost(org.apache.xmlbeans.XmlString host)
262 {
263 synchronized (monitor())
264 {
265 check_orphaned();
266 org.apache.xmlbeans.XmlString target = null;
267 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOST$4, 0);
268 if (target == null)
269 {
270 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(HOST$4);
271 }
272 target.set(host);
273 }
274 }
275
276 /**
277 * Unsets the "host" element
278 */
279 public void unsetHost()
280 {
281 synchronized (monitor())
282 {
283 check_orphaned();
284 get_store().remove_element(HOST$4, 0);
285 }
286 }
287
288 /**
289 * Gets the "port" element
290 */
291 public int getPort()
292 {
293 synchronized (monitor())
294 {
295 check_orphaned();
296 org.apache.xmlbeans.SimpleValue target = null;
297 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PORT$6, 0);
298 if (target == null)
299 {
300 return 0;
301 }
302 return target.getIntValue();
303 }
304 }
305
306 /**
307 * Gets (as xml) the "port" element
308 */
309 public org.apache.xmlbeans.XmlInt xgetPort()
310 {
311 synchronized (monitor())
312 {
313 check_orphaned();
314 org.apache.xmlbeans.XmlInt target = null;
315 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(PORT$6, 0);
316 return target;
317 }
318 }
319
320 /**
321 * True if has "port" element
322 */
323 public boolean isSetPort()
324 {
325 synchronized (monitor())
326 {
327 check_orphaned();
328 return get_store().count_elements(PORT$6) != 0;
329 }
330 }
331
332 /**
333 * Sets the "port" element
334 */
335 public void setPort(int port)
336 {
337 synchronized (monitor())
338 {
339 check_orphaned();
340 org.apache.xmlbeans.SimpleValue target = null;
341 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PORT$6, 0);
342 if (target == null)
343 {
344 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PORT$6);
345 }
346 target.setIntValue(port);
347 }
348 }
349
350 /**
351 * Sets (as xml) the "port" element
352 */
353 public void xsetPort(org.apache.xmlbeans.XmlInt port)
354 {
355 synchronized (monitor())
356 {
357 check_orphaned();
358 org.apache.xmlbeans.XmlInt target = null;
359 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(PORT$6, 0);
360 if (target == null)
361 {
362 target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(PORT$6);
363 }
364 target.set(port);
365 }
366 }
367
368 /**
369 * Unsets the "port" element
370 */
371 public void unsetPort()
372 {
373 synchronized (monitor())
374 {
375 check_orphaned();
376 get_store().remove_element(PORT$6, 0);
377 }
378 }
379
380 /**
381 * Gets the "uri" element
382 */
383 public java.lang.String getUri()
384 {
385 synchronized (monitor())
386 {
387 check_orphaned();
388 org.apache.xmlbeans.SimpleValue target = null;
389 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URI$8, 0);
390 if (target == null)
391 {
392 return null;
393 }
394 return target.getStringValue();
395 }
396 }
397
398 /**
399 * Gets (as xml) the "uri" element
400 */
401 public org.apache.xmlbeans.XmlString xgetUri()
402 {
403 synchronized (monitor())
404 {
405 check_orphaned();
406 org.apache.xmlbeans.XmlString target = null;
407 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URI$8, 0);
408 return target;
409 }
410 }
411
412 /**
413 * Sets the "uri" element
414 */
415 public void setUri(java.lang.String uri)
416 {
417 synchronized (monitor())
418 {
419 check_orphaned();
420 org.apache.xmlbeans.SimpleValue target = null;
421 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URI$8, 0);
422 if (target == null)
423 {
424 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(URI$8);
425 }
426 target.setStringValue(uri);
427 }
428 }
429
430 /**
431 * Sets (as xml) the "uri" element
432 */
433 public void xsetUri(org.apache.xmlbeans.XmlString uri)
434 {
435 synchronized (monitor())
436 {
437 check_orphaned();
438 org.apache.xmlbeans.XmlString target = null;
439 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URI$8, 0);
440 if (target == null)
441 {
442 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(URI$8);
443 }
444 target.set(uri);
445 }
446 }
447
448 /**
449 * Gets the "credentials-name" element
450 */
451 public java.lang.String getCredentialsName()
452 {
453 synchronized (monitor())
454 {
455 check_orphaned();
456 org.apache.xmlbeans.SimpleValue target = null;
457 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CREDENTIALSNAME$10, 0);
458 if (target == null)
459 {
460 return null;
461 }
462 return target.getStringValue();
463 }
464 }
465
466 /**
467 * Gets (as xml) the "credentials-name" element
468 */
469 public org.apache.xmlbeans.XmlString xgetCredentialsName()
470 {
471 synchronized (monitor())
472 {
473 check_orphaned();
474 org.apache.xmlbeans.XmlString target = null;
475 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CREDENTIALSNAME$10, 0);
476 return target;
477 }
478 }
479
480 /**
481 * True if has "credentials-name" element
482 */
483 public boolean isSetCredentialsName()
484 {
485 synchronized (monitor())
486 {
487 check_orphaned();
488 return get_store().count_elements(CREDENTIALSNAME$10) != 0;
489 }
490 }
491
492 /**
493 * Sets the "credentials-name" element
494 */
495 public void setCredentialsName(java.lang.String credentialsName)
496 {
497 synchronized (monitor())
498 {
499 check_orphaned();
500 org.apache.xmlbeans.SimpleValue target = null;
501 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CREDENTIALSNAME$10, 0);
502 if (target == null)
503 {
504 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CREDENTIALSNAME$10);
505 }
506 target.setStringValue(credentialsName);
507 }
508 }
509
510 /**
511 * Sets (as xml) the "credentials-name" element
512 */
513 public void xsetCredentialsName(org.apache.xmlbeans.XmlString credentialsName)
514 {
515 synchronized (monitor())
516 {
517 check_orphaned();
518 org.apache.xmlbeans.XmlString target = null;
519 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CREDENTIALSNAME$10, 0);
520 if (target == null)
521 {
522 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CREDENTIALSNAME$10);
523 }
524 target.set(credentialsName);
525 }
526 }
527
528 /**
529 * Unsets the "credentials-name" element
530 */
531 public void unsetCredentialsName()
532 {
533 synchronized (monitor())
534 {
535 check_orphaned();
536 get_store().remove_element(CREDENTIALSNAME$10, 0);
537 }
538 }
539 }