KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openejb > alt > config > ejb11 > Session


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
4  * Schema.
5  * $Id: Session.java 1312 2004-08-14 10:35:39Z dblevins $
6  */

7
8 package org.openejb.alt.config.ejb11;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import java.io.IOException JavaDoc;
15 import java.io.Reader JavaDoc;
16 import java.io.Serializable JavaDoc;
17 import java.io.Writer JavaDoc;
18 import java.util.Enumeration JavaDoc;
19 import java.util.Vector JavaDoc;
20 import org.exolab.castor.xml.MarshalException;
21 import org.exolab.castor.xml.Marshaller;
22 import org.exolab.castor.xml.Unmarshaller;
23 import org.exolab.castor.xml.ValidationException;
24 import org.xml.sax.ContentHandler JavaDoc;
25
26 /**
27  * Class Session.
28  *
29  * @version $Revision: 1312 $ $Date: 2004-08-14 03:35:39 -0700 (Sat, 14 Aug 2004) $
30  */

31 public class Session implements java.io.Serializable JavaDoc {
32
33
34       //--------------------------/
35
//- Class/Member Variables -/
36
//--------------------------/
37

38     /**
39      * Field _id
40      */

41     private java.lang.String JavaDoc _id;
42
43     /**
44      * Field _description
45      */

46     private java.lang.String JavaDoc _description;
47
48     /**
49      * Field _displayName
50      */

51     private java.lang.String JavaDoc _displayName;
52
53     /**
54      * Field _smallIcon
55      */

56     private java.lang.String JavaDoc _smallIcon;
57
58     /**
59      * Field _largeIcon
60      */

61     private java.lang.String JavaDoc _largeIcon;
62
63     /**
64      * Field _ejbName
65      */

66     private java.lang.String JavaDoc _ejbName;
67
68     /**
69      * Field _home
70      */

71     private java.lang.String JavaDoc _home;
72
73     /**
74      * Field _remote
75      */

76     private java.lang.String JavaDoc _remote;
77
78     /**
79      * Field _localHome
80      */

81     private java.lang.String JavaDoc _localHome;
82
83     /**
84      * Field _local
85      */

86     private java.lang.String JavaDoc _local;
87
88     /**
89      * Field _ejbClass
90      */

91     private java.lang.String JavaDoc _ejbClass;
92
93     /**
94      * Field _sessionType
95      */

96     private java.lang.String JavaDoc _sessionType;
97
98     /**
99      * Field _transactionType
100      */

101     private java.lang.String JavaDoc _transactionType;
102
103     /**
104      * Field _envEntryList
105      */

106     private java.util.Vector JavaDoc _envEntryList;
107
108     /**
109      * Field _ejbRefList
110      */

111     private java.util.Vector JavaDoc _ejbRefList;
112
113     /**
114      * Field _ejbLocalRefList
115      */

116     private java.util.Vector JavaDoc _ejbLocalRefList;
117
118     /**
119      * Field _securityRoleRefList
120      */

121     private java.util.Vector JavaDoc _securityRoleRefList;
122
123     /**
124      * Field _resourceRefList
125      */

126     private java.util.Vector JavaDoc _resourceRefList;
127
128
129       //----------------/
130
//- Constructors -/
131
//----------------/
132

133     public Session() {
134         super();
135         _envEntryList = new Vector JavaDoc();
136         _ejbRefList = new Vector JavaDoc();
137         _ejbLocalRefList = new Vector JavaDoc();
138         _securityRoleRefList = new Vector JavaDoc();
139         _resourceRefList = new Vector JavaDoc();
140     } //-- org.openejb.alt.config.ejb11.Session()
141

142
143       //-----------/
144
//- Methods -/
145
//-----------/
146

147     /**
148      * Method addEjbLocalRef
149      *
150      *
151      *
152      * @param vEjbLocalRef
153      */

154     public void addEjbLocalRef(org.openejb.alt.config.ejb11.EjbLocalRef vEjbLocalRef)
155         throws java.lang.IndexOutOfBoundsException JavaDoc
156     {
157         _ejbLocalRefList.addElement(vEjbLocalRef);
158     } //-- void addEjbLocalRef(org.openejb.alt.config.ejb11.EjbLocalRef)
159

160     /**
161      * Method addEjbLocalRef
162      *
163      *
164      *
165      * @param index
166      * @param vEjbLocalRef
167      */

168     public void addEjbLocalRef(int index, org.openejb.alt.config.ejb11.EjbLocalRef vEjbLocalRef)
169         throws java.lang.IndexOutOfBoundsException JavaDoc
170     {
171         _ejbLocalRefList.insertElementAt(vEjbLocalRef, index);
172     } //-- void addEjbLocalRef(int, org.openejb.alt.config.ejb11.EjbLocalRef)
173

174     /**
175      * Method addEjbRef
176      *
177      * @param vEjbRef
178      */

179     public void addEjbRef(org.openejb.alt.config.ejb11.EjbRef vEjbRef)
180         throws java.lang.IndexOutOfBoundsException JavaDoc
181     {
182         _ejbRefList.addElement(vEjbRef);
183     } //-- void addEjbRef(org.openejb.alt.config.ejb11.EjbRef)
184

185     /**
186      * Method addEjbRef
187      *
188      * @param index
189      * @param vEjbRef
190      */

191     public void addEjbRef(int index, org.openejb.alt.config.ejb11.EjbRef vEjbRef)
192         throws java.lang.IndexOutOfBoundsException JavaDoc
193     {
194         _ejbRefList.insertElementAt(vEjbRef, index);
195     } //-- void addEjbRef(int, org.openejb.alt.config.ejb11.EjbRef)
196

197     /**
198      * Method addEnvEntry
199      *
200      * @param vEnvEntry
201      */

202     public void addEnvEntry(org.openejb.alt.config.ejb11.EnvEntry vEnvEntry)
203         throws java.lang.IndexOutOfBoundsException JavaDoc
204     {
205         _envEntryList.addElement(vEnvEntry);
206     } //-- void addEnvEntry(org.openejb.alt.config.ejb11.EnvEntry)
207

208     /**
209      * Method addEnvEntry
210      *
211      * @param index
212      * @param vEnvEntry
213      */

214     public void addEnvEntry(int index, org.openejb.alt.config.ejb11.EnvEntry vEnvEntry)
215         throws java.lang.IndexOutOfBoundsException JavaDoc
216     {
217         _envEntryList.insertElementAt(vEnvEntry, index);
218     } //-- void addEnvEntry(int, org.openejb.alt.config.ejb11.EnvEntry)
219

220     /**
221      * Method addResourceRef
222      *
223      * @param vResourceRef
224      */

225     public void addResourceRef(org.openejb.alt.config.ejb11.ResourceRef vResourceRef)
226         throws java.lang.IndexOutOfBoundsException JavaDoc
227     {
228         _resourceRefList.addElement(vResourceRef);
229     } //-- void addResourceRef(org.openejb.alt.config.ejb11.ResourceRef)
230

231     /**
232      * Method addResourceRef
233      *
234      * @param index
235      * @param vResourceRef
236      */

237     public void addResourceRef(int index, org.openejb.alt.config.ejb11.ResourceRef vResourceRef)
238         throws java.lang.IndexOutOfBoundsException JavaDoc
239     {
240         _resourceRefList.insertElementAt(vResourceRef, index);
241     } //-- void addResourceRef(int, org.openejb.alt.config.ejb11.ResourceRef)
242

243     /**
244      * Method addSecurityRoleRef
245      *
246      * @param vSecurityRoleRef
247      */

248     public void addSecurityRoleRef(org.openejb.alt.config.ejb11.SecurityRoleRef vSecurityRoleRef)
249         throws java.lang.IndexOutOfBoundsException JavaDoc
250     {
251         _securityRoleRefList.addElement(vSecurityRoleRef);
252     } //-- void addSecurityRoleRef(org.openejb.alt.config.ejb11.SecurityRoleRef)
253

254     /**
255      * Method addSecurityRoleRef
256      *
257      * @param index
258      * @param vSecurityRoleRef
259      */

260     public void addSecurityRoleRef(int index, org.openejb.alt.config.ejb11.SecurityRoleRef vSecurityRoleRef)
261         throws java.lang.IndexOutOfBoundsException JavaDoc
262     {
263         _securityRoleRefList.insertElementAt(vSecurityRoleRef, index);
264     } //-- void addSecurityRoleRef(int, org.openejb.alt.config.ejb11.SecurityRoleRef)
265

266     /**
267      * Method enumerateEjbLocalRef
268      *
269      *
270      *
271      * @return Enumeration
272      */

273     public java.util.Enumeration JavaDoc enumerateEjbLocalRef()
274     {
275         return _ejbLocalRefList.elements();
276     } //-- java.util.Enumeration enumerateEjbLocalRef()
277

278     /**
279      * Method enumerateEjbRef
280      */

281     public java.util.Enumeration JavaDoc enumerateEjbRef()
282     {
283         return _ejbRefList.elements();
284     } //-- java.util.Enumeration enumerateEjbRef()
285

286     /**
287      * Method enumerateEnvEntry
288      */

289     public java.util.Enumeration JavaDoc enumerateEnvEntry()
290     {
291         return _envEntryList.elements();
292     } //-- java.util.Enumeration enumerateEnvEntry()
293

294     /**
295      * Method enumerateResourceRef
296      */

297     public java.util.Enumeration JavaDoc enumerateResourceRef()
298     {
299         return _resourceRefList.elements();
300     } //-- java.util.Enumeration enumerateResourceRef()
301

302     /**
303      * Method enumerateSecurityRoleRef
304      */

305     public java.util.Enumeration JavaDoc enumerateSecurityRoleRef()
306     {
307         return _securityRoleRefList.elements();
308     } //-- java.util.Enumeration enumerateSecurityRoleRef()
309

310     /**
311      * Returns the value of field 'description'.
312      *
313      * @return the value of field 'description'.
314      */

315     public java.lang.String JavaDoc getDescription()
316     {
317         return this._description;
318     } //-- java.lang.String getDescription()
319

320     /**
321      * Returns the value of field 'displayName'.
322      *
323      * @return the value of field 'displayName'.
324      */

325     public java.lang.String JavaDoc getDisplayName()
326     {
327         return this._displayName;
328     } //-- java.lang.String getDisplayName()
329

330     /**
331      * Returns the value of field 'ejbClass'.
332      *
333      * @return the value of field 'ejbClass'.
334      */

335     public java.lang.String JavaDoc getEjbClass()
336     {
337         return this._ejbClass;
338     } //-- java.lang.String getEjbClass()
339

340     /**
341      * Method getEjbLocalRef
342      *
343      *
344      *
345      * @param index
346      * @return EjbLocalRef
347      */

348     public org.openejb.alt.config.ejb11.EjbLocalRef getEjbLocalRef(int index)
349         throws java.lang.IndexOutOfBoundsException JavaDoc
350     {
351         //-- check bounds for index
352
if ((index < 0) || (index > _ejbLocalRefList.size())) {
353             throw new IndexOutOfBoundsException JavaDoc();
354         }
355         
356         return (org.openejb.alt.config.ejb11.EjbLocalRef) _ejbLocalRefList.elementAt(index);
357     } //-- org.openejb.alt.config.ejb11.EjbLocalRef getEjbLocalRef(int)
358

359     /**
360      * Method getEjbLocalRef
361      *
362      *
363      *
364      * @return EjbLocalRef
365      */

366     public org.openejb.alt.config.ejb11.EjbLocalRef[] getEjbLocalRef()
367     {
368         int size = _ejbLocalRefList.size();
369         org.openejb.alt.config.ejb11.EjbLocalRef[] mArray = new org.openejb.alt.config.ejb11.EjbLocalRef[size];
370         for (int index = 0; index < size; index++) {
371             mArray[index] = (org.openejb.alt.config.ejb11.EjbLocalRef) _ejbLocalRefList.elementAt(index);
372         }
373         return mArray;
374     } //-- org.openejb.alt.config.ejb11.EjbLocalRef[] getEjbLocalRef()
375

376     /**
377      * Method getEjbLocalRefCount
378      *
379      *
380      *
381      * @return int
382      */

383     public int getEjbLocalRefCount()
384     {
385         return _ejbLocalRefList.size();
386     } //-- int getEjbLocalRefCount()
387

388     /**
389      * Returns the value of field 'ejbName'.
390      *
391      * @return the value of field 'ejbName'.
392      */

393     public java.lang.String JavaDoc getEjbName()
394     {
395         return this._ejbName;
396     } //-- java.lang.String getEjbName()
397

398     /**
399      * Method getEjbRef
400      *
401      * @param index
402      */

403     public org.openejb.alt.config.ejb11.EjbRef getEjbRef(int index)
404         throws java.lang.IndexOutOfBoundsException JavaDoc
405     {
406         //-- check bounds for index
407
if ((index < 0) || (index > _ejbRefList.size())) {
408             throw new IndexOutOfBoundsException JavaDoc();
409         }
410         
411         return (org.openejb.alt.config.ejb11.EjbRef) _ejbRefList.elementAt(index);
412     } //-- org.openejb.alt.config.ejb11.EjbRef getEjbRef(int)
413

414     /**
415      * Method getEjbRef
416      */

417     public org.openejb.alt.config.ejb11.EjbRef[] getEjbRef()
418     {
419         int size = _ejbRefList.size();
420         org.openejb.alt.config.ejb11.EjbRef[] mArray = new org.openejb.alt.config.ejb11.EjbRef[size];
421         for (int index = 0; index < size; index++) {
422             mArray[index] = (org.openejb.alt.config.ejb11.EjbRef) _ejbRefList.elementAt(index);
423         }
424         return mArray;
425     } //-- org.openejb.alt.config.ejb11.EjbRef[] getEjbRef()
426

427     /**
428      * Method getEjbRefCount
429      */

430     public int getEjbRefCount()
431     {
432         return _ejbRefList.size();
433     } //-- int getEjbRefCount()
434

435     /**
436      * Method getEnvEntry
437      *
438      * @param index
439      */

440     public org.openejb.alt.config.ejb11.EnvEntry getEnvEntry(int index)
441         throws java.lang.IndexOutOfBoundsException JavaDoc
442     {
443         //-- check bounds for index
444
if ((index < 0) || (index > _envEntryList.size())) {
445             throw new IndexOutOfBoundsException JavaDoc();
446         }
447         
448         return (org.openejb.alt.config.ejb11.EnvEntry) _envEntryList.elementAt(index);
449     } //-- org.openejb.alt.config.ejb11.EnvEntry getEnvEntry(int)
450

451     /**
452      * Method getEnvEntry
453      */

454     public org.openejb.alt.config.ejb11.EnvEntry[] getEnvEntry()
455     {
456         int size = _envEntryList.size();
457         org.openejb.alt.config.ejb11.EnvEntry[] mArray = new org.openejb.alt.config.ejb11.EnvEntry[size];
458         for (int index = 0; index < size; index++) {
459             mArray[index] = (org.openejb.alt.config.ejb11.EnvEntry) _envEntryList.elementAt(index);
460         }
461         return mArray;
462     } //-- org.openejb.alt.config.ejb11.EnvEntry[] getEnvEntry()
463

464     /**
465      * Method getEnvEntryCount
466      */

467     public int getEnvEntryCount()
468     {
469         return _envEntryList.size();
470     } //-- int getEnvEntryCount()
471

472     /**
473      * Returns the value of field 'home'.
474      *
475      * @return the value of field 'home'.
476      */

477     public java.lang.String JavaDoc getHome()
478     {
479         return this._home;
480     } //-- java.lang.String getHome()
481

482     /**
483      * Returns the value of field 'id'.
484      *
485      * @return the value of field 'id'.
486      */

487     public java.lang.String JavaDoc getId()
488     {
489         return this._id;
490     } //-- java.lang.String getId()
491

492     /**
493      * Returns the value of field 'largeIcon'.
494      *
495      * @return the value of field 'largeIcon'.
496      */

497     public java.lang.String JavaDoc getLargeIcon()
498     {
499         return this._largeIcon;
500     } //-- java.lang.String getLargeIcon()
501

502     /**
503      * Returns the value of field 'local'.
504      *
505      * @return String
506      * @return the value of field 'local'.
507      */

508     public java.lang.String JavaDoc getLocal()
509     {
510         return this._local;
511     } //-- java.lang.String getLocal()
512

513     /**
514      * Returns the value of field 'localHome'.
515      *
516      * @return String
517      * @return the value of field 'localHome'.
518      */

519     public java.lang.String JavaDoc getLocalHome()
520     {
521         return this._localHome;
522     } //-- java.lang.String getLocalHome()
523

524     /**
525      * Returns the value of field 'remote'.
526      *
527      * @return the value of field 'remote'.
528      */

529     public java.lang.String JavaDoc getRemote()
530     {
531         return this._remote;
532     } //-- java.lang.String getRemote()
533

534     /**
535      * Method getResourceRef
536      *
537      * @param index
538      */

539     public org.openejb.alt.config.ejb11.ResourceRef getResourceRef(int index)
540         throws java.lang.IndexOutOfBoundsException JavaDoc
541     {
542         //-- check bounds for index
543
if ((index < 0) || (index > _resourceRefList.size())) {
544             throw new IndexOutOfBoundsException JavaDoc();
545         }
546         
547         return (org.openejb.alt.config.ejb11.ResourceRef) _resourceRefList.elementAt(index);
548     } //-- org.openejb.alt.config.ejb11.ResourceRef getResourceRef(int)
549

550     /**
551      * Method getResourceRef
552      */

553     public org.openejb.alt.config.ejb11.ResourceRef[] getResourceRef()
554     {
555         int size = _resourceRefList.size();
556         org.openejb.alt.config.ejb11.ResourceRef[] mArray = new org.openejb.alt.config.ejb11.ResourceRef[size];
557         for (int index = 0; index < size; index++) {
558             mArray[index] = (org.openejb.alt.config.ejb11.ResourceRef) _resourceRefList.elementAt(index);
559         }
560         return mArray;
561     } //-- org.openejb.alt.config.ejb11.ResourceRef[] getResourceRef()
562

563     /**
564      * Method getResourceRefCount
565      */

566     public int getResourceRefCount()
567     {
568         return _resourceRefList.size();
569     } //-- int getResourceRefCount()
570

571     /**
572      * Method getSecurityRoleRef
573      *
574      * @param index
575      */

576     public org.openejb.alt.config.ejb11.SecurityRoleRef getSecurityRoleRef(int index)
577         throws java.lang.IndexOutOfBoundsException JavaDoc
578     {
579         //-- check bounds for index
580
if ((index < 0) || (index > _securityRoleRefList.size())) {
581             throw new IndexOutOfBoundsException JavaDoc();
582         }
583         
584         return (org.openejb.alt.config.ejb11.SecurityRoleRef) _securityRoleRefList.elementAt(index);
585     } //-- org.openejb.alt.config.ejb11.SecurityRoleRef getSecurityRoleRef(int)
586

587     /**
588      * Method getSecurityRoleRef
589      */

590     public org.openejb.alt.config.ejb11.SecurityRoleRef[] getSecurityRoleRef()
591     {
592         int size = _securityRoleRefList.size();
593         org.openejb.alt.config.ejb11.SecurityRoleRef[] mArray = new org.openejb.alt.config.ejb11.SecurityRoleRef[size];
594         for (int index = 0; index < size; index++) {
595             mArray[index] = (org.openejb.alt.config.ejb11.SecurityRoleRef) _securityRoleRefList.elementAt(index);
596         }
597         return mArray;
598     } //-- org.openejb.alt.config.ejb11.SecurityRoleRef[] getSecurityRoleRef()
599

600     /**
601      * Method getSecurityRoleRefCount
602      */

603     public int getSecurityRoleRefCount()
604     {
605         return _securityRoleRefList.size();
606     } //-- int getSecurityRoleRefCount()
607

608     /**
609      * Returns the value of field 'sessionType'.
610      *
611      * @return the value of field 'sessionType'.
612      */

613     public java.lang.String JavaDoc getSessionType()
614     {
615         return this._sessionType;
616     } //-- java.lang.String getSessionType()
617

618     /**
619      * Returns the value of field 'smallIcon'.
620      *
621      * @return the value of field 'smallIcon'.
622      */

623     public java.lang.String JavaDoc getSmallIcon()
624     {
625         return this._smallIcon;
626     } //-- java.lang.String getSmallIcon()
627

628     /**
629      * Returns the value of field 'transactionType'.
630      *
631      * @return the value of field 'transactionType'.
632      */

633     public java.lang.String JavaDoc getTransactionType()
634     {
635         return this._transactionType;
636     } //-- java.lang.String getTransactionType()
637

638     /**
639      * Method isValid
640      */

641     public boolean isValid()
642     {
643         try {
644             validate();
645         }
646         catch (org.exolab.castor.xml.ValidationException vex) {
647             return false;
648         }
649         return true;
650     } //-- boolean isValid()
651

652     /**
653      * Method marshal
654      *
655      * @param out
656      */

657     public void marshal(java.io.Writer JavaDoc out)
658         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
659     {
660         
661         Marshaller.marshal(this, out);
662     } //-- void marshal(java.io.Writer)
663

664     /**
665      * Method marshal
666      *
667      * @param handler
668      */

669     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
670         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
671     {
672         
673         Marshaller.marshal(this, handler);
674     } //-- void marshal(org.xml.sax.ContentHandler)
675

676     /**
677      * Method removeAllEjbLocalRef
678      *
679      */

680     public void removeAllEjbLocalRef()
681     {
682         _ejbLocalRefList.removeAllElements();
683     } //-- void removeAllEjbLocalRef()
684

685     /**
686      * Method removeAllEjbRef
687      */

688     public void removeAllEjbRef()
689     {
690         _ejbRefList.removeAllElements();
691     } //-- void removeAllEjbRef()
692

693     /**
694      * Method removeAllEnvEntry
695      */

696     public void removeAllEnvEntry()
697     {
698         _envEntryList.removeAllElements();
699     } //-- void removeAllEnvEntry()
700

701     /**
702      * Method removeAllResourceRef
703      */

704     public void removeAllResourceRef()
705     {
706         _resourceRefList.removeAllElements();
707     } //-- void removeAllResourceRef()
708

709     /**
710      * Method removeAllSecurityRoleRef
711      */

712     public void removeAllSecurityRoleRef()
713     {
714         _securityRoleRefList.removeAllElements();
715     } //-- void removeAllSecurityRoleRef()
716

717     /**
718      * Method removeEjbLocalRef
719      *
720      *
721      *
722      * @param index
723      * @return EjbLocalRef
724      */

725     public org.openejb.alt.config.ejb11.EjbLocalRef removeEjbLocalRef(int index)
726     {
727         java.lang.Object JavaDoc obj = _ejbLocalRefList.elementAt(index);
728         _ejbLocalRefList.removeElementAt(index);
729         return (org.openejb.alt.config.ejb11.EjbLocalRef) obj;
730     } //-- org.openejb.alt.config.ejb11.EjbLocalRef removeEjbLocalRef(int)
731

732     /**
733      * Method removeEjbRef
734      *
735      * @param index
736      */

737     public org.openejb.alt.config.ejb11.EjbRef removeEjbRef(int index)
738     {
739         java.lang.Object JavaDoc obj = _ejbRefList.elementAt(index);
740         _ejbRefList.removeElementAt(index);
741         return (org.openejb.alt.config.ejb11.EjbRef) obj;
742     } //-- org.openejb.alt.config.ejb11.EjbRef removeEjbRef(int)
743

744     /**
745      * Method removeEnvEntry
746      *
747      * @param index
748      */

749     public org.openejb.alt.config.ejb11.EnvEntry removeEnvEntry(int index)
750     {
751         java.lang.Object JavaDoc obj = _envEntryList.elementAt(index);
752         _envEntryList.removeElementAt(index);
753         return (org.openejb.alt.config.ejb11.EnvEntry) obj;
754     } //-- org.openejb.alt.config.ejb11.EnvEntry removeEnvEntry(int)
755

756     /**
757      * Method removeResourceRef
758      *
759      * @param index
760      */

761     public org.openejb.alt.config.ejb11.ResourceRef removeResourceRef(int index)
762     {
763         java.lang.Object JavaDoc obj = _resourceRefList.elementAt(index);
764         _resourceRefList.removeElementAt(index);
765         return (org.openejb.alt.config.ejb11.ResourceRef) obj;
766     } //-- org.openejb.alt.config.ejb11.ResourceRef removeResourceRef(int)
767

768     /**
769      * Method removeSecurityRoleRef
770      *
771      * @param index
772      */

773     public org.openejb.alt.config.ejb11.SecurityRoleRef removeSecurityRoleRef(int index)
774     {
775         java.lang.Object JavaDoc obj = _securityRoleRefList.elementAt(index);
776         _securityRoleRefList.removeElementAt(index);
777         return (org.openejb.alt.config.ejb11.SecurityRoleRef) obj;
778     } //-- org.openejb.alt.config.ejb11.SecurityRoleRef removeSecurityRoleRef(int)
779

780     /**
781      * Sets the value of field 'description'.
782      *
783      * @param description the value of field 'description'.
784      */

785     public void setDescription(java.lang.String JavaDoc description)
786     {
787         this._description = description;
788     } //-- void setDescription(java.lang.String)
789

790     /**
791      * Sets the value of field 'displayName'.
792      *
793      * @param displayName the value of field 'displayName'.
794      */

795     public void setDisplayName(java.lang.String JavaDoc displayName)
796     {
797         this._displayName = displayName;
798     } //-- void setDisplayName(java.lang.String)
799

800     /**
801      * Sets the value of field 'ejbClass'.
802      *
803      * @param ejbClass the value of field 'ejbClass'.
804      */

805     public void setEjbClass(java.lang.String JavaDoc ejbClass)
806     {
807         this._ejbClass = ejbClass;
808     } //-- void setEjbClass(java.lang.String)
809

810     /**
811      * Method setEjbLocalRef
812      *
813      *
814      *
815      * @param index
816      * @param vEjbLocalRef
817      */

818     public void setEjbLocalRef(int index, org.openejb.alt.config.ejb11.EjbLocalRef vEjbLocalRef)
819         throws java.lang.IndexOutOfBoundsException JavaDoc
820     {
821         //-- check bounds for index
822
if ((index < 0) || (index > _ejbLocalRefList.size())) {
823             throw new IndexOutOfBoundsException JavaDoc();
824         }
825         _ejbLocalRefList.setElementAt(vEjbLocalRef, index);
826     } //-- void setEjbLocalRef(int, org.openejb.alt.config.ejb11.EjbLocalRef)
827

828     /**
829      * Method setEjbLocalRef
830      *
831      *
832      *
833      * @param ejbLocalRefArray
834      */

835     public void setEjbLocalRef(org.openejb.alt.config.ejb11.EjbLocalRef[] ejbLocalRefArray)
836     {
837         //-- copy array
838
_ejbLocalRefList.removeAllElements();
839         for (int i = 0; i < ejbLocalRefArray.length; i++) {
840             _ejbLocalRefList.addElement(ejbLocalRefArray[i]);
841         }
842     } //-- void setEjbLocalRef(org.openejb.alt.config.ejb11.EjbLocalRef)
843

844     /**
845      * Sets the value of field 'ejbName'.
846      *
847      * @param ejbName the value of field 'ejbName'.
848      */

849     public void setEjbName(java.lang.String JavaDoc ejbName)
850     {
851         this._ejbName = ejbName;
852     } //-- void setEjbName(java.lang.String)
853

854     /**
855      * Method setEjbRef
856      *
857      * @param index
858      * @param vEjbRef
859      */

860     public void setEjbRef(int index, org.openejb.alt.config.ejb11.EjbRef vEjbRef)
861         throws java.lang.IndexOutOfBoundsException JavaDoc
862     {
863         //-- check bounds for index
864
if ((index < 0) || (index > _ejbRefList.size())) {
865             throw new IndexOutOfBoundsException JavaDoc();
866         }
867         _ejbRefList.setElementAt(vEjbRef, index);
868     } //-- void setEjbRef(int, org.openejb.alt.config.ejb11.EjbRef)
869

870     /**
871      * Method setEjbRef
872      *
873      * @param ejbRefArray
874      */

875     public void setEjbRef(org.openejb.alt.config.ejb11.EjbRef[] ejbRefArray)
876     {
877         //-- copy array
878
_ejbRefList.removeAllElements();
879         for (int i = 0; i < ejbRefArray.length; i++) {
880             _ejbRefList.addElement(ejbRefArray[i]);
881         }
882     } //-- void setEjbRef(org.openejb.alt.config.ejb11.EjbRef)
883

884     /**
885      * Method setEnvEntry
886      *
887      * @param index
888      * @param vEnvEntry
889      */

890     public void setEnvEntry(int index, org.openejb.alt.config.ejb11.EnvEntry vEnvEntry)
891         throws java.lang.IndexOutOfBoundsException JavaDoc
892     {
893         //-- check bounds for index
894
if ((index < 0) || (index > _envEntryList.size())) {
895             throw new IndexOutOfBoundsException JavaDoc();
896         }
897         _envEntryList.setElementAt(vEnvEntry, index);
898     } //-- void setEnvEntry(int, org.openejb.alt.config.ejb11.EnvEntry)
899

900     /**
901      * Method setEnvEntry
902      *
903      * @param envEntryArray
904      */

905     public void setEnvEntry(org.openejb.alt.config.ejb11.EnvEntry[] envEntryArray)
906     {
907         //-- copy array
908
_envEntryList.removeAllElements();
909         for (int i = 0; i < envEntryArray.length; i++) {
910             _envEntryList.addElement(envEntryArray[i]);
911         }
912     } //-- void setEnvEntry(org.openejb.alt.config.ejb11.EnvEntry)
913

914     /**
915      * Sets the value of field 'home'.
916      *
917      * @param home the value of field 'home'.
918      */

919     public void setHome(java.lang.String JavaDoc home)
920     {
921         this._home = home;
922     } //-- void setHome(java.lang.String)
923

924     /**
925      * Sets the value of field 'id'.
926      *
927      * @param id the value of field 'id'.
928      */

929     public void setId(java.lang.String JavaDoc id)
930     {
931         this._id = id;
932     } //-- void setId(java.lang.String)
933

934     /**
935      * Sets the value of field 'largeIcon'.
936      *
937      * @param largeIcon the value of field 'largeIcon'.
938      */

939     public void setLargeIcon(java.lang.String JavaDoc largeIcon)
940     {
941         this._largeIcon = largeIcon;
942     } //-- void setLargeIcon(java.lang.String)
943

944     /**
945      * Sets the value of field 'local'.
946      *
947      * @param local the value of field 'local'.
948      */

949     public void setLocal(java.lang.String JavaDoc local)
950     {
951         this._local = local;
952     } //-- void setLocal(java.lang.String)
953

954     /**
955      * Sets the value of field 'localHome'.
956      *
957      * @param localHome the value of field 'localHome'.
958      */

959     public void setLocalHome(java.lang.String JavaDoc localHome)
960     {
961         this._localHome = localHome;
962     } //-- void setLocalHome(java.lang.String)
963

964     /**
965      * Sets the value of field 'remote'.
966      *
967      * @param remote the value of field 'remote'.
968      */

969     public void setRemote(java.lang.String JavaDoc remote)
970     {
971         this._remote = remote;
972     } //-- void setRemote(java.lang.String)
973

974     /**
975      * Method setResourceRef
976      *
977      * @param index
978      * @param vResourceRef
979      */

980     public void setResourceRef(int index, org.openejb.alt.config.ejb11.ResourceRef vResourceRef)
981         throws java.lang.IndexOutOfBoundsException JavaDoc
982     {
983         //-- check bounds for index
984
if ((index < 0) || (index > _resourceRefList.size())) {
985             throw new IndexOutOfBoundsException JavaDoc();
986         }
987         _resourceRefList.setElementAt(vResourceRef, index);
988     } //-- void setResourceRef(int, org.openejb.alt.config.ejb11.ResourceRef)
989

990     /**
991      * Method setResourceRef
992      *
993      * @param resourceRefArray
994      */

995     public void setResourceRef(org.openejb.alt.config.ejb11.ResourceRef[] resourceRefArray)
996     {
997         //-- copy array
998
_resourceRefList.removeAllElements();
999         for (int i = 0; i < resourceRefArray.length; i++) {
1000            _resourceRefList.addElement(resourceRefArray[i]);
1001        }
1002    } //-- void setResourceRef(org.openejb.alt.config.ejb11.ResourceRef)
1003

1004    /**
1005     * Method setSecurityRoleRef
1006     *
1007     * @param index
1008     * @param vSecurityRoleRef
1009     */

1010    public void setSecurityRoleRef(int index, org.openejb.alt.config.ejb11.SecurityRoleRef vSecurityRoleRef)
1011        throws java.lang.IndexOutOfBoundsException JavaDoc
1012    {
1013        //-- check bounds for index
1014
if ((index < 0) || (index > _securityRoleRefList.size())) {
1015            throw new IndexOutOfBoundsException JavaDoc();
1016        }
1017        _securityRoleRefList.setElementAt(vSecurityRoleRef, index);
1018    } //-- void setSecurityRoleRef(int, org.openejb.alt.config.ejb11.SecurityRoleRef)
1019

1020    /**
1021     * Method setSecurityRoleRef
1022     *
1023     * @param securityRoleRefArray
1024     */

1025    public void setSecurityRoleRef(org.openejb.alt.config.ejb11.SecurityRoleRef[] securityRoleRefArray)
1026    {
1027        //-- copy array
1028
_securityRoleRefList.removeAllElements();
1029        for (int i = 0; i < securityRoleRefArray.length; i++) {
1030            _securityRoleRefList.addElement(securityRoleRefArray[i]);
1031        }
1032    } //-- void setSecurityRoleRef(org.openejb.alt.config.ejb11.SecurityRoleRef)
1033

1034    /**
1035     * Sets the value of field 'sessionType'.
1036     *
1037     * @param sessionType the value of field 'sessionType'.
1038     */

1039    public void setSessionType(java.lang.String JavaDoc sessionType)
1040    {
1041        this._sessionType = sessionType;
1042    } //-- void setSessionType(java.lang.String)
1043

1044    /**
1045     * Sets the value of field 'smallIcon'.
1046     *
1047     * @param smallIcon the value of field 'smallIcon'.
1048     */

1049    public void setSmallIcon(java.lang.String JavaDoc smallIcon)
1050    {
1051        this._smallIcon = smallIcon;
1052    } //-- void setSmallIcon(java.lang.String)
1053

1054    /**
1055     * Sets the value of field 'transactionType'.
1056     *
1057     * @param transactionType the value of field 'transactionType'.
1058     */

1059    public void setTransactionType(java.lang.String JavaDoc transactionType)
1060    {
1061        this._transactionType = transactionType;
1062    } //-- void setTransactionType(java.lang.String)
1063

1064    /**
1065     * Method unmarshal
1066     *
1067     * @param reader
1068     */

1069    public static java.lang.Object JavaDoc unmarshal(java.io.Reader JavaDoc reader)
1070        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
1071    {
1072        return (org.openejb.alt.config.ejb11.Session) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.Session.class, reader);
1073    } //-- java.lang.Object unmarshal(java.io.Reader)
1074

1075    /**
1076     * Method validate
1077     */

1078    public void validate()
1079        throws org.exolab.castor.xml.ValidationException
1080    {
1081        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1082        validator.validate(this);
1083    } //-- void validate()
1084

1085}
1086
Popular Tags