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