KickJava   Java API By Example, From Geeks To Geeks.

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


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: Entity.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 Entity.
28  *
29  * @version $Revision: 1312 $ $Date: 2004-08-14 03:35:39 -0700 (Sat, 14 Aug 2004) $
30  */

31 public class Entity 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 _persistenceType
95      */

96     private java.lang.String JavaDoc _persistenceType;
97
98     /**
99      * Field _primKeyClass
100      */

101     private java.lang.String JavaDoc _primKeyClass;
102
103     /**
104      * Field _reentrant
105      */

106     private boolean _reentrant;
107
108     /**
109      * keeps track of state for field: _reentrant
110      */

111     private boolean _has_reentrant;
112
113     /**
114      * Field _cmpFieldList
115      */

116     private java.util.Vector JavaDoc _cmpFieldList;
117
118     /**
119      * Field _primkeyField
120      */

121     private java.lang.String JavaDoc _primkeyField;
122
123     /**
124      * Field _envEntryList
125      */

126     private java.util.Vector JavaDoc _envEntryList;
127
128     /**
129      * Field _ejbRefList
130      */

131     private java.util.Vector JavaDoc _ejbRefList;
132
133     /**
134      * Field _ejbLocalRefList
135      */

136     private java.util.Vector JavaDoc _ejbLocalRefList;
137
138     /**
139      * Field _securityRoleRefList
140      */

141     private java.util.Vector JavaDoc _securityRoleRefList;
142
143     /**
144      * Field _resourceRefList
145      */

146     private java.util.Vector JavaDoc _resourceRefList;
147
148
149       //----------------/
150
//- Constructors -/
151
//----------------/
152

153     public Entity() {
154         super();
155         _cmpFieldList = new Vector JavaDoc();
156         _envEntryList = new Vector JavaDoc();
157         _ejbRefList = new Vector JavaDoc();
158         _ejbLocalRefList = new Vector JavaDoc();
159         _securityRoleRefList = new Vector JavaDoc();
160         _resourceRefList = new Vector JavaDoc();
161     } //-- org.openejb.alt.config.ejb11.Entity()
162

163
164       //-----------/
165
//- Methods -/
166
//-----------/
167

168     /**
169      * Method addCmpField
170      *
171      * @param vCmpField
172      */

173     public void addCmpField(org.openejb.alt.config.ejb11.CmpField vCmpField)
174         throws java.lang.IndexOutOfBoundsException JavaDoc
175     {
176         _cmpFieldList.addElement(vCmpField);
177     } //-- void addCmpField(org.openejb.alt.config.ejb11.CmpField)
178

179     /**
180      * Method addCmpField
181      *
182      * @param index
183      * @param vCmpField
184      */

185     public void addCmpField(int index, org.openejb.alt.config.ejb11.CmpField vCmpField)
186         throws java.lang.IndexOutOfBoundsException JavaDoc
187     {
188         _cmpFieldList.insertElementAt(vCmpField, index);
189     } //-- void addCmpField(int, org.openejb.alt.config.ejb11.CmpField)
190

191     /**
192      * Method addEjbLocalRef
193      *
194      *
195      *
196      * @param vEjbLocalRef
197      */

198     public void addEjbLocalRef(org.openejb.alt.config.ejb11.EjbLocalRef vEjbLocalRef)
199         throws java.lang.IndexOutOfBoundsException JavaDoc
200     {
201         _ejbLocalRefList.addElement(vEjbLocalRef);
202     } //-- void addEjbLocalRef(org.openejb.alt.config.ejb11.EjbLocalRef)
203

204     /**
205      * Method addEjbLocalRef
206      *
207      *
208      *
209      * @param index
210      * @param vEjbLocalRef
211      */

212     public void addEjbLocalRef(int index, org.openejb.alt.config.ejb11.EjbLocalRef vEjbLocalRef)
213         throws java.lang.IndexOutOfBoundsException JavaDoc
214     {
215         _ejbLocalRefList.insertElementAt(vEjbLocalRef, index);
216     } //-- void addEjbLocalRef(int, org.openejb.alt.config.ejb11.EjbLocalRef)
217

218     /**
219      * Method addEjbRef
220      *
221      * @param vEjbRef
222      */

223     public void addEjbRef(org.openejb.alt.config.ejb11.EjbRef vEjbRef)
224         throws java.lang.IndexOutOfBoundsException JavaDoc
225     {
226         _ejbRefList.addElement(vEjbRef);
227     } //-- void addEjbRef(org.openejb.alt.config.ejb11.EjbRef)
228

229     /**
230      * Method addEjbRef
231      *
232      * @param index
233      * @param vEjbRef
234      */

235     public void addEjbRef(int index, org.openejb.alt.config.ejb11.EjbRef vEjbRef)
236         throws java.lang.IndexOutOfBoundsException JavaDoc
237     {
238         _ejbRefList.insertElementAt(vEjbRef, index);
239     } //-- void addEjbRef(int, org.openejb.alt.config.ejb11.EjbRef)
240

241     /**
242      * Method addEnvEntry
243      *
244      * @param vEnvEntry
245      */

246     public void addEnvEntry(org.openejb.alt.config.ejb11.EnvEntry vEnvEntry)
247         throws java.lang.IndexOutOfBoundsException JavaDoc
248     {
249         _envEntryList.addElement(vEnvEntry);
250     } //-- void addEnvEntry(org.openejb.alt.config.ejb11.EnvEntry)
251

252     /**
253      * Method addEnvEntry
254      *
255      * @param index
256      * @param vEnvEntry
257      */

258     public void addEnvEntry(int index, org.openejb.alt.config.ejb11.EnvEntry vEnvEntry)
259         throws java.lang.IndexOutOfBoundsException JavaDoc
260     {
261         _envEntryList.insertElementAt(vEnvEntry, index);
262     } //-- void addEnvEntry(int, org.openejb.alt.config.ejb11.EnvEntry)
263

264     /**
265      * Method addResourceRef
266      *
267      * @param vResourceRef
268      */

269     public void addResourceRef(org.openejb.alt.config.ejb11.ResourceRef vResourceRef)
270         throws java.lang.IndexOutOfBoundsException JavaDoc
271     {
272         _resourceRefList.addElement(vResourceRef);
273     } //-- void addResourceRef(org.openejb.alt.config.ejb11.ResourceRef)
274

275     /**
276      * Method addResourceRef
277      *
278      * @param index
279      * @param vResourceRef
280      */

281     public void addResourceRef(int index, org.openejb.alt.config.ejb11.ResourceRef vResourceRef)
282         throws java.lang.IndexOutOfBoundsException JavaDoc
283     {
284         _resourceRefList.insertElementAt(vResourceRef, index);
285     } //-- void addResourceRef(int, org.openejb.alt.config.ejb11.ResourceRef)
286

287     /**
288      * Method addSecurityRoleRef
289      *
290      * @param vSecurityRoleRef
291      */

292     public void addSecurityRoleRef(org.openejb.alt.config.ejb11.SecurityRoleRef vSecurityRoleRef)
293         throws java.lang.IndexOutOfBoundsException JavaDoc
294     {
295         _securityRoleRefList.addElement(vSecurityRoleRef);
296     } //-- void addSecurityRoleRef(org.openejb.alt.config.ejb11.SecurityRoleRef)
297

298     /**
299      * Method addSecurityRoleRef
300      *
301      * @param index
302      * @param vSecurityRoleRef
303      */

304     public void addSecurityRoleRef(int index, org.openejb.alt.config.ejb11.SecurityRoleRef vSecurityRoleRef)
305         throws java.lang.IndexOutOfBoundsException JavaDoc
306     {
307         _securityRoleRefList.insertElementAt(vSecurityRoleRef, index);
308     } //-- void addSecurityRoleRef(int, org.openejb.alt.config.ejb11.SecurityRoleRef)
309

310     /**
311      * Method deleteReentrant
312      */

313     public void deleteReentrant()
314     {
315         this._has_reentrant= false;
316     } //-- void deleteReentrant()
317

318     /**
319      * Method enumerateCmpField
320      */

321     public java.util.Enumeration JavaDoc enumerateCmpField()
322     {
323         return _cmpFieldList.elements();
324     } //-- java.util.Enumeration enumerateCmpField()
325

326     /**
327      * Method enumerateEjbLocalRef
328      *
329      *
330      *
331      * @return Enumeration
332      */

333     public java.util.Enumeration JavaDoc enumerateEjbLocalRef()
334     {
335         return _ejbLocalRefList.elements();
336     } //-- java.util.Enumeration enumerateEjbLocalRef()
337

338     /**
339      * Method enumerateEjbRef
340      */

341     public java.util.Enumeration JavaDoc enumerateEjbRef()
342     {
343         return _ejbRefList.elements();
344     } //-- java.util.Enumeration enumerateEjbRef()
345

346     /**
347      * Method enumerateEnvEntry
348      */

349     public java.util.Enumeration JavaDoc enumerateEnvEntry()
350     {
351         return _envEntryList.elements();
352     } //-- java.util.Enumeration enumerateEnvEntry()
353

354     /**
355      * Method enumerateResourceRef
356      */

357     public java.util.Enumeration JavaDoc enumerateResourceRef()
358     {
359         return _resourceRefList.elements();
360     } //-- java.util.Enumeration enumerateResourceRef()
361

362     /**
363      * Method enumerateSecurityRoleRef
364      */

365     public java.util.Enumeration JavaDoc enumerateSecurityRoleRef()
366     {
367         return _securityRoleRefList.elements();
368     } //-- java.util.Enumeration enumerateSecurityRoleRef()
369

370     /**
371      * Method getCmpField
372      *
373      * @param index
374      */

375     public org.openejb.alt.config.ejb11.CmpField getCmpField(int index)
376         throws java.lang.IndexOutOfBoundsException JavaDoc
377     {
378         //-- check bounds for index
379
if ((index < 0) || (index > _cmpFieldList.size())) {
380             throw new IndexOutOfBoundsException JavaDoc();
381         }
382         
383         return (org.openejb.alt.config.ejb11.CmpField) _cmpFieldList.elementAt(index);
384     } //-- org.openejb.alt.config.ejb11.CmpField getCmpField(int)
385

386     /**
387      * Method getCmpField
388      */

389     public org.openejb.alt.config.ejb11.CmpField[] getCmpField()
390     {
391         int size = _cmpFieldList.size();
392         org.openejb.alt.config.ejb11.CmpField[] mArray = new org.openejb.alt.config.ejb11.CmpField[size];
393         for (int index = 0; index < size; index++) {
394             mArray[index] = (org.openejb.alt.config.ejb11.CmpField) _cmpFieldList.elementAt(index);
395         }
396         return mArray;
397     } //-- org.openejb.alt.config.ejb11.CmpField[] getCmpField()
398

399     /**
400      * Method getCmpFieldCount
401      */

402     public int getCmpFieldCount()
403     {
404         return _cmpFieldList.size();
405     } //-- int getCmpFieldCount()
406

407     /**
408      * Returns the value of field 'description'.
409      *
410      * @return the value of field 'description'.
411      */

412     public java.lang.String JavaDoc getDescription()
413     {
414         return this._description;
415     } //-- java.lang.String getDescription()
416

417     /**
418      * Returns the value of field 'displayName'.
419      *
420      * @return the value of field 'displayName'.
421      */

422     public java.lang.String JavaDoc getDisplayName()
423     {
424         return this._displayName;
425     } //-- java.lang.String getDisplayName()
426

427     /**
428      * Returns the value of field 'ejbClass'.
429      *
430      * @return the value of field 'ejbClass'.
431      */

432     public java.lang.String JavaDoc getEjbClass()
433     {
434         return this._ejbClass;
435     } //-- java.lang.String getEjbClass()
436

437     /**
438      * Method getEjbLocalRef
439      *
440      *
441      *
442      * @param index
443      * @return EjbLocalRef
444      */

445     public org.openejb.alt.config.ejb11.EjbLocalRef getEjbLocalRef(int index)
446         throws java.lang.IndexOutOfBoundsException JavaDoc
447     {
448         //-- check bounds for index
449
if ((index < 0) || (index > _ejbLocalRefList.size())) {
450             throw new IndexOutOfBoundsException JavaDoc();
451         }
452         
453         return (org.openejb.alt.config.ejb11.EjbLocalRef) _ejbLocalRefList.elementAt(index);
454     } //-- org.openejb.alt.config.ejb11.EjbLocalRef getEjbLocalRef(int)
455

456     /**
457      * Method getEjbLocalRef
458      *
459      *
460      *
461      * @return EjbLocalRef
462      */

463     public org.openejb.alt.config.ejb11.EjbLocalRef[] getEjbLocalRef()
464     {
465         int size = _ejbLocalRefList.size();
466         org.openejb.alt.config.ejb11.EjbLocalRef[] mArray = new org.openejb.alt.config.ejb11.EjbLocalRef[size];
467         for (int index = 0; index < size; index++) {
468             mArray[index] = (org.openejb.alt.config.ejb11.EjbLocalRef) _ejbLocalRefList.elementAt(index);
469         }
470         return mArray;
471     } //-- org.openejb.alt.config.ejb11.EjbLocalRef[] getEjbLocalRef()
472

473     /**
474      * Method getEjbLocalRefCount
475      *
476      *
477      *
478      * @return int
479      */

480     public int getEjbLocalRefCount()
481     {
482         return _ejbLocalRefList.size();
483     } //-- int getEjbLocalRefCount()
484

485     /**
486      * Returns the value of field 'ejbName'.
487      *
488      * @return the value of field 'ejbName'.
489      */

490     public java.lang.String JavaDoc getEjbName()
491     {
492         return this._ejbName;
493     } //-- java.lang.String getEjbName()
494

495     /**
496      * Method getEjbRef
497      *
498      * @param index
499      */

500     public org.openejb.alt.config.ejb11.EjbRef getEjbRef(int index)
501         throws java.lang.IndexOutOfBoundsException JavaDoc
502     {
503         //-- check bounds for index
504
if ((index < 0) || (index > _ejbRefList.size())) {
505             throw new IndexOutOfBoundsException JavaDoc();
506         }
507         
508         return (org.openejb.alt.config.ejb11.EjbRef) _ejbRefList.elementAt(index);
509     } //-- org.openejb.alt.config.ejb11.EjbRef getEjbRef(int)
510

511     /**
512      * Method getEjbRef
513      */

514     public org.openejb.alt.config.ejb11.EjbRef[] getEjbRef()
515     {
516         int size = _ejbRefList.size();
517         org.openejb.alt.config.ejb11.EjbRef[] mArray = new org.openejb.alt.config.ejb11.EjbRef[size];
518         for (int index = 0; index < size; index++) {
519             mArray[index] = (org.openejb.alt.config.ejb11.EjbRef) _ejbRefList.elementAt(index);
520         }
521         return mArray;
522     } //-- org.openejb.alt.config.ejb11.EjbRef[] getEjbRef()
523

524     /**
525      * Method getEjbRefCount
526      */

527     public int getEjbRefCount()
528     {
529         return _ejbRefList.size();
530     } //-- int getEjbRefCount()
531

532     /**
533      * Method getEnvEntry
534      *
535      * @param index
536      */

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

548     /**
549      * Method getEnvEntry
550      */

551     public org.openejb.alt.config.ejb11.EnvEntry[] getEnvEntry()
552     {
553         int size = _envEntryList.size();
554         org.openejb.alt.config.ejb11.EnvEntry[] mArray = new org.openejb.alt.config.ejb11.EnvEntry[size];
555         for (int index = 0; index < size; index++) {
556             mArray[index] = (org.openejb.alt.config.ejb11.EnvEntry) _envEntryList.elementAt(index);
557         }
558         return mArray;
559     } //-- org.openejb.alt.config.ejb11.EnvEntry[] getEnvEntry()
560

561     /**
562      * Method getEnvEntryCount
563      */

564     public int getEnvEntryCount()
565     {
566         return _envEntryList.size();
567     } //-- int getEnvEntryCount()
568

569     /**
570      * Returns the value of field 'home'.
571      *
572      * @return the value of field 'home'.
573      */

574     public java.lang.String JavaDoc getHome()
575     {
576         return this._home;
577     } //-- java.lang.String getHome()
578

579     /**
580      * Returns the value of field 'id'.
581      *
582      * @return the value of field 'id'.
583      */

584     public java.lang.String JavaDoc getId()
585     {
586         return this._id;
587     } //-- java.lang.String getId()
588

589     /**
590      * Returns the value of field 'largeIcon'.
591      *
592      * @return the value of field 'largeIcon'.
593      */

594     public java.lang.String JavaDoc getLargeIcon()
595     {
596         return this._largeIcon;
597     } //-- java.lang.String getLargeIcon()
598

599     /**
600      * Returns the value of field 'local'.
601      *
602      * @return String
603      * @return the value of field 'local'.
604      */

605     public java.lang.String JavaDoc getLocal()
606     {
607         return this._local;
608     } //-- java.lang.String getLocal()
609

610     /**
611      * Returns the value of field 'localHome'.
612      *
613      * @return String
614      * @return the value of field 'localHome'.
615      */

616     public java.lang.String JavaDoc getLocalHome()
617     {
618         return this._localHome;
619     } //-- java.lang.String getLocalHome()
620

621     /**
622      * Returns the value of field 'persistenceType'.
623      *
624      * @return the value of field 'persistenceType'.
625      */

626     public java.lang.String JavaDoc getPersistenceType()
627     {
628         return this._persistenceType;
629     } //-- java.lang.String getPersistenceType()
630

631     /**
632      * Returns the value of field 'primKeyClass'.
633      *
634      * @return the value of field 'primKeyClass'.
635      */

636     public java.lang.String JavaDoc getPrimKeyClass()
637     {
638         return this._primKeyClass;
639     } //-- java.lang.String getPrimKeyClass()
640

641     /**
642      * Returns the value of field 'primkeyField'.
643      *
644      * @return the value of field 'primkeyField'.
645      */

646     public java.lang.String JavaDoc getPrimkeyField()
647     {
648         return this._primkeyField;
649     } //-- java.lang.String getPrimkeyField()
650

651     /**
652      * Returns the value of field 'reentrant'.
653      *
654      * @return the value of field 'reentrant'.
655      */

656     public boolean getReentrant()
657     {
658         return this._reentrant;
659     } //-- boolean getReentrant()
660

661     /**
662      * Returns the value of field 'remote'.
663      *
664      * @return the value of field 'remote'.
665      */

666     public java.lang.String JavaDoc getRemote()
667     {
668         return this._remote;
669     } //-- java.lang.String getRemote()
670

671     /**
672      * Method getResourceRef
673      *
674      * @param index
675      */

676     public org.openejb.alt.config.ejb11.ResourceRef getResourceRef(int index)
677         throws java.lang.IndexOutOfBoundsException JavaDoc
678     {
679         //-- check bounds for index
680
if ((index < 0) || (index > _resourceRefList.size())) {
681             throw new IndexOutOfBoundsException JavaDoc();
682         }
683         
684         return (org.openejb.alt.config.ejb11.ResourceRef) _resourceRefList.elementAt(index);
685     } //-- org.openejb.alt.config.ejb11.ResourceRef getResourceRef(int)
686

687     /**
688      * Method getResourceRef
689      */

690     public org.openejb.alt.config.ejb11.ResourceRef[] getResourceRef()
691     {
692         int size = _resourceRefList.size();
693         org.openejb.alt.config.ejb11.ResourceRef[] mArray = new org.openejb.alt.config.ejb11.ResourceRef[size];
694         for (int index = 0; index < size; index++) {
695             mArray[index] = (org.openejb.alt.config.ejb11.ResourceRef) _resourceRefList.elementAt(index);
696         }
697         return mArray;
698     } //-- org.openejb.alt.config.ejb11.ResourceRef[] getResourceRef()
699

700     /**
701      * Method getResourceRefCount
702      */

703     public int getResourceRefCount()
704     {
705         return _resourceRefList.size();
706     } //-- int getResourceRefCount()
707

708     /**
709      * Method getSecurityRoleRef
710      *
711      * @param index
712      */

713     public org.openejb.alt.config.ejb11.SecurityRoleRef getSecurityRoleRef(int index)
714         throws java.lang.IndexOutOfBoundsException JavaDoc
715     {
716         //-- check bounds for index
717
if ((index < 0) || (index > _securityRoleRefList.size())) {
718             throw new IndexOutOfBoundsException JavaDoc();
719         }
720         
721         return (org.openejb.alt.config.ejb11.SecurityRoleRef) _securityRoleRefList.elementAt(index);
722     } //-- org.openejb.alt.config.ejb11.SecurityRoleRef getSecurityRoleRef(int)
723

724     /**
725      * Method getSecurityRoleRef
726      */

727     public org.openejb.alt.config.ejb11.SecurityRoleRef[] getSecurityRoleRef()
728     {
729         int size = _securityRoleRefList.size();
730         org.openejb.alt.config.ejb11.SecurityRoleRef[] mArray = new org.openejb.alt.config.ejb11.SecurityRoleRef[size];
731         for (int index = 0; index < size; index++) {
732             mArray[index] = (org.openejb.alt.config.ejb11.SecurityRoleRef) _securityRoleRefList.elementAt(index);
733         }
734         return mArray;
735     } //-- org.openejb.alt.config.ejb11.SecurityRoleRef[] getSecurityRoleRef()
736

737     /**
738      * Method getSecurityRoleRefCount
739      */

740     public int getSecurityRoleRefCount()
741     {
742         return _securityRoleRefList.size();
743     } //-- int getSecurityRoleRefCount()
744

745     /**
746      * Returns the value of field 'smallIcon'.
747      *
748      * @return the value of field 'smallIcon'.
749      */

750     public java.lang.String JavaDoc getSmallIcon()
751     {
752         return this._smallIcon;
753     } //-- java.lang.String getSmallIcon()
754

755     /**
756      * Method hasReentrant
757      */

758     public boolean hasReentrant()
759     {
760         return this._has_reentrant;
761     } //-- boolean hasReentrant()
762

763     /**
764      * Method isValid
765      */

766     public boolean isValid()
767     {
768         try {
769             validate();
770         }
771         catch (org.exolab.castor.xml.ValidationException vex) {
772             return false;
773         }
774         return true;
775     } //-- boolean isValid()
776

777     /**
778      * Method marshal
779      *
780      * @param out
781      */

782     public void marshal(java.io.Writer JavaDoc out)
783         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
784     {
785         
786         Marshaller.marshal(this, out);
787     } //-- void marshal(java.io.Writer)
788

789     /**
790      * Method marshal
791      *
792      * @param handler
793      */

794     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
795         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
796     {
797         
798         Marshaller.marshal(this, handler);
799     } //-- void marshal(org.xml.sax.ContentHandler)
800

801     /**
802      * Method removeAllCmpField
803      */

804     public void removeAllCmpField()
805     {
806         _cmpFieldList.removeAllElements();
807     } //-- void removeAllCmpField()
808

809     /**
810      * Method removeAllEjbLocalRef
811      *
812      */

813     public void removeAllEjbLocalRef()
814     {
815         _ejbLocalRefList.removeAllElements();
816     } //-- void removeAllEjbLocalRef()
817

818     /**
819      * Method removeAllEjbRef
820      */

821     public void removeAllEjbRef()
822     {
823         _ejbRefList.removeAllElements();
824     } //-- void removeAllEjbRef()
825

826     /**
827      * Method removeAllEnvEntry
828      */

829     public void removeAllEnvEntry()
830     {
831         _envEntryList.removeAllElements();
832     } //-- void removeAllEnvEntry()
833

834     /**
835      * Method removeAllResourceRef
836      */

837     public void removeAllResourceRef()
838     {
839         _resourceRefList.removeAllElements();
840     } //-- void removeAllResourceRef()
841

842     /**
843      * Method removeAllSecurityRoleRef
844      */

845     public void removeAllSecurityRoleRef()
846     {
847         _securityRoleRefList.removeAllElements();
848     } //-- void removeAllSecurityRoleRef()
849

850     /**
851      * Method removeCmpField
852      *
853      * @param index
854      */

855     public org.openejb.alt.config.ejb11.CmpField removeCmpField(int index)
856     {
857         java.lang.Object JavaDoc obj = _cmpFieldList.elementAt(index);
858         _cmpFieldList.removeElementAt(index);
859         return (org.openejb.alt.config.ejb11.CmpField) obj;
860     } //-- org.openejb.alt.config.ejb11.CmpField removeCmpField(int)
861

862     /**
863      * Method removeEjbLocalRef
864      *
865      *
866      *
867      * @param index
868      * @return EjbLocalRef
869      */

870     public org.openejb.alt.config.ejb11.EjbLocalRef removeEjbLocalRef(int index)
871     {
872         java.lang.Object JavaDoc obj = _ejbLocalRefList.elementAt(index);
873         _ejbLocalRefList.removeElementAt(index);
874         return (org.openejb.alt.config.ejb11.EjbLocalRef) obj;
875     } //-- org.openejb.alt.config.ejb11.EjbLocalRef removeEjbLocalRef(int)
876

877     /**
878      * Method removeEjbRef
879      *
880      * @param index
881      */

882     public org.openejb.alt.config.ejb11.EjbRef removeEjbRef(int index)
883     {
884         java.lang.Object JavaDoc obj = _ejbRefList.elementAt(index);
885         _ejbRefList.removeElementAt(index);
886         return (org.openejb.alt.config.ejb11.EjbRef) obj;
887     } //-- org.openejb.alt.config.ejb11.EjbRef removeEjbRef(int)
888

889     /**
890      * Method removeEnvEntry
891      *
892      * @param index
893      */

894     public org.openejb.alt.config.ejb11.EnvEntry removeEnvEntry(int index)
895     {
896         java.lang.Object JavaDoc obj = _envEntryList.elementAt(index);
897         _envEntryList.removeElementAt(index);
898         return (org.openejb.alt.config.ejb11.EnvEntry) obj;
899     } //-- org.openejb.alt.config.ejb11.EnvEntry removeEnvEntry(int)
900

901     /**
902      * Method removeResourceRef
903      *
904      * @param index
905      */

906     public org.openejb.alt.config.ejb11.ResourceRef removeResourceRef(int index)
907     {
908         java.lang.Object JavaDoc obj = _resourceRefList.elementAt(index);
909         _resourceRefList.removeElementAt(index);
910         return (org.openejb.alt.config.ejb11.ResourceRef) obj;
911     } //-- org.openejb.alt.config.ejb11.ResourceRef removeResourceRef(int)
912

913     /**
914      * Method removeSecurityRoleRef
915      *
916      * @param index
917      */

918     public org.openejb.alt.config.ejb11.SecurityRoleRef removeSecurityRoleRef(int index)
919     {
920         java.lang.Object JavaDoc obj = _securityRoleRefList.elementAt(index);
921         _securityRoleRefList.removeElementAt(index);
922         return (org.openejb.alt.config.ejb11.SecurityRoleRef) obj;
923     } //-- org.openejb.alt.config.ejb11.SecurityRoleRef removeSecurityRoleRef(int)
924

925     /**
926      * Method setCmpField
927      *
928      * @param index
929      * @param vCmpField
930      */

931     public void setCmpField(int index, org.openejb.alt.config.ejb11.CmpField vCmpField)
932         throws java.lang.IndexOutOfBoundsException JavaDoc
933     {
934         //-- check bounds for index
935
if ((index < 0) || (index > _cmpFieldList.size())) {
936             throw new IndexOutOfBoundsException JavaDoc();
937         }
938         _cmpFieldList.setElementAt(vCmpField, index);
939     } //-- void setCmpField(int, org.openejb.alt.config.ejb11.CmpField)
940

941     /**
942      * Method setCmpField
943      *
944      * @param cmpFieldArray
945      */

946     public void setCmpField(org.openejb.alt.config.ejb11.CmpField[] cmpFieldArray)
947     {
948         //-- copy array
949
_cmpFieldList.removeAllElements();
950         for (int i = 0; i < cmpFieldArray.length; i++) {
951             _cmpFieldList.addElement(cmpFieldArray[i]);
952         }
953     } //-- void setCmpField(org.openejb.alt.config.ejb11.CmpField)
954

955     /**
956      * Sets the value of field 'description'.
957      *
958      * @param description the value of field 'description'.
959      */

960     public void setDescription(java.lang.String JavaDoc description)
961     {
962         this._description = description;
963     } //-- void setDescription(java.lang.String)
964

965     /**
966      * Sets the value of field 'displayName'.
967      *
968      * @param displayName the value of field 'displayName'.
969      */

970     public void setDisplayName(java.lang.String JavaDoc displayName)
971     {
972         this._displayName = displayName;
973     } //-- void setDisplayName(java.lang.String)
974

975     /**
976      * Sets the value of field 'ejbClass'.
977      *
978      * @param ejbClass the value of field 'ejbClass'.
979      */

980     public void setEjbClass(java.lang.String JavaDoc ejbClass)
981     {
982         this._ejbClass = ejbClass;
983     } //-- void setEjbClass(java.lang.String)
984

985     /**
986      * Method setEjbLocalRef
987      *
988      *
989      *
990      * @param index
991      * @param vEjbLocalRef
992      */

993     public void setEjbLocalRef(int index, org.openejb.alt.config.ejb11.EjbLocalRef vEjbLocalRef)
994         throws java.lang.IndexOutOfBoundsException JavaDoc
995     {
996         //-- check bounds for index
997
if ((index < 0) || (index > _ejbLocalRefList.size())) {
998             throw new IndexOutOfBoundsException JavaDoc();
999         }
1000        _ejbLocalRefList.setElementAt(vEjbLocalRef, index);
1001    } //-- void setEjbLocalRef(int, org.openejb.alt.config.ejb11.EjbLocalRef)
1002

1003    /**
1004     * Method setEjbLocalRef
1005     *
1006     *
1007     *
1008     * @param ejbLocalRefArray
1009     */

1010    public void setEjbLocalRef(org.openejb.alt.config.ejb11.EjbLocalRef[] ejbLocalRefArray)
1011    {
1012        //-- copy array
1013
_ejbLocalRefList.removeAllElements();
1014        for (int i = 0; i < ejbLocalRefArray.length; i++) {
1015            _ejbLocalRefList.addElement(ejbLocalRefArray[i]);
1016        }
1017    } //-- void setEjbLocalRef(org.openejb.alt.config.ejb11.EjbLocalRef)
1018

1019    /**
1020     * Sets the value of field 'ejbName'.
1021     *
1022     * @param ejbName the value of field 'ejbName'.
1023     */

1024    public void setEjbName(java.lang.String JavaDoc ejbName)
1025    {
1026        this._ejbName = ejbName;
1027    } //-- void setEjbName(java.lang.String)
1028

1029    /**
1030     * Method setEjbRef
1031     *
1032     * @param index
1033     * @param vEjbRef
1034     */

1035    public void setEjbRef(int index, org.openejb.alt.config.ejb11.EjbRef vEjbRef)
1036        throws java.lang.IndexOutOfBoundsException JavaDoc
1037    {
1038        //-- check bounds for index
1039
if ((index < 0) || (index > _ejbRefList.size())) {
1040            throw new IndexOutOfBoundsException JavaDoc();
1041        }
1042        _ejbRefList.setElementAt(vEjbRef, index);
1043    } //-- void setEjbRef(int, org.openejb.alt.config.ejb11.EjbRef)
1044

1045    /**
1046     * Method setEjbRef
1047     *
1048     * @param ejbRefArray
1049     */

1050    public void setEjbRef(org.openejb.alt.config.ejb11.EjbRef[] ejbRefArray)
1051    {
1052        //-- copy array
1053
_ejbRefList.removeAllElements();
1054        for (int i = 0; i < ejbRefArray.length; i++) {
1055            _ejbRefList.addElement(ejbRefArray[i]);
1056        }
1057    } //-- void setEjbRef(org.openejb.alt.config.ejb11.EjbRef)
1058

1059    /**
1060     * Method setEnvEntry
1061     *
1062     * @param index
1063     * @param vEnvEntry
1064     */

1065    public void setEnvEntry(int index, org.openejb.alt.config.ejb11.EnvEntry vEnvEntry)
1066        throws java.lang.IndexOutOfBoundsException JavaDoc
1067    {
1068        //-- check bounds for index
1069
if ((index < 0) || (index > _envEntryList.size())) {
1070            throw new IndexOutOfBoundsException JavaDoc();
1071        }
1072        _envEntryList.setElementAt(vEnvEntry, index);
1073    } //-- void setEnvEntry(int, org.openejb.alt.config.ejb11.EnvEntry)
1074

1075    /**
1076     * Method setEnvEntry
1077     *
1078     * @param envEntryArray
1079     */

1080    public void setEnvEntry(org.openejb.alt.config.ejb11.EnvEntry[] envEntryArray)
1081    {
1082        //-- copy array
1083
_envEntryList.removeAllElements();
1084        for (int i = 0; i < envEntryArray.length; i++) {
1085            _envEntryList.addElement(envEntryArray[i]);
1086        }
1087    } //-- void setEnvEntry(org.openejb.alt.config.ejb11.EnvEntry)
1088

1089    /**
1090     * Sets the value of field 'home'.
1091     *
1092     * @param home the value of field 'home'.
1093     */

1094    public void setHome(java.lang.String JavaDoc home)
1095    {
1096        this._home = home;
1097    } //-- void setHome(java.lang.String)
1098

1099    /**
1100     * Sets the value of field 'id'.
1101     *
1102     * @param id the value of field 'id'.
1103     */

1104    public void setId(java.lang.String JavaDoc id)
1105    {
1106        this._id = id;
1107    } //-- void setId(java.lang.String)
1108

1109    /**
1110     * Sets the value of field 'largeIcon'.
1111     *
1112     * @param largeIcon the value of field 'largeIcon'.
1113     */

1114    public void setLargeIcon(java.lang.String JavaDoc largeIcon)
1115    {
1116        this._largeIcon = largeIcon;
1117    } //-- void setLargeIcon(java.lang.String)
1118

1119    /**
1120     * Sets the value of field 'local'.
1121     *
1122     * @param local the value of field 'local'.
1123     */

1124    public void setLocal(java.lang.String JavaDoc local)
1125    {
1126        this._local = local;
1127    } //-- void setLocal(java.lang.String)
1128

1129    /**
1130     * Sets the value of field 'localHome'.
1131     *
1132     * @param localHome the value of field 'localHome'.
1133     */

1134    public void setLocalHome(java.lang.String JavaDoc localHome)
1135    {
1136        this._localHome = localHome;
1137    } //-- void setLocalHome(java.lang.String)
1138

1139    /**
1140     * Sets the value of field 'persistenceType'.
1141     *
1142     * @param persistenceType the value of field 'persistenceType'.
1143     */

1144    public void setPersistenceType(java.lang.String JavaDoc persistenceType)
1145    {
1146        this._persistenceType = persistenceType;
1147    } //-- void setPersistenceType(java.lang.String)
1148

1149    /**
1150     * Sets the value of field 'primKeyClass'.
1151     *
1152     * @param primKeyClass the value of field 'primKeyClass'.
1153     */

1154    public void setPrimKeyClass(java.lang.String JavaDoc primKeyClass)
1155    {
1156        this._primKeyClass = primKeyClass;
1157    } //-- void setPrimKeyClass(java.lang.String)
1158

1159    /**
1160     * Sets the value of field 'primkeyField'.
1161     *
1162     * @param primkeyField the value of field 'primkeyField'.
1163     */

1164    public void setPrimkeyField(java.lang.String JavaDoc primkeyField)
1165    {
1166        this._primkeyField = primkeyField;
1167    } //-- void setPrimkeyField(java.lang.String)
1168

1169    /**
1170     * Sets the value of field 'reentrant'.
1171     *
1172     * @param reentrant the value of field 'reentrant'.
1173     */

1174    public void setReentrant(boolean reentrant)
1175    {
1176        this._reentrant = reentrant;
1177        this._has_reentrant = true;
1178    } //-- void setReentrant(boolean)
1179

1180    /**
1181     * Sets the value of field 'remote'.
1182     *
1183     * @param remote the value of field 'remote'.
1184     */

1185    public void setRemote(java.lang.String JavaDoc remote)
1186    {
1187        this._remote = remote;
1188    } //-- void setRemote(java.lang.String)
1189

1190    /**
1191     * Method setResourceRef
1192     *
1193     * @param index
1194     * @param vResourceRef
1195     */

1196    public void setResourceRef(int index, org.openejb.alt.config.ejb11.ResourceRef vResourceRef)
1197        throws java.lang.IndexOutOfBoundsException JavaDoc
1198    {
1199        //-- check bounds for index
1200
if ((index < 0) || (index > _resourceRefList.size())) {
1201            throw new IndexOutOfBoundsException JavaDoc();
1202        }
1203        _resourceRefList.setElementAt(vResourceRef, index);
1204    } //-- void setResourceRef(int, org.openejb.alt.config.ejb11.ResourceRef)
1205

1206    /**
1207     * Method setResourceRef
1208     *
1209     * @param resourceRefArray
1210     */

1211    public void setResourceRef(org.openejb.alt.config.ejb11.ResourceRef[] resourceRefArray)
1212    {
1213        //-- copy array
1214
_resourceRefList.removeAllElements();
1215        for (int i = 0; i < resourceRefArray.length; i++) {
1216            _resourceRefList.addElement(resourceRefArray[i]);
1217        }
1218    } //-- void setResourceRef(org.openejb.alt.config.ejb11.ResourceRef)
1219

1220    /**
1221     * Method setSecurityRoleRef
1222     *
1223     * @param index
1224     * @param vSecurityRoleRef
1225     */

1226    public void setSecurityRoleRef(int index, org.openejb.alt.config.ejb11.SecurityRoleRef vSecurityRoleRef)
1227        throws java.lang.IndexOutOfBoundsException JavaDoc
1228    {
1229        //-- check bounds for index
1230
if ((index < 0) || (index > _securityRoleRefList.size())) {
1231            throw new IndexOutOfBoundsException JavaDoc();
1232        }
1233        _securityRoleRefList.setElementAt(vSecurityRoleRef, index);
1234    } //-- void setSecurityRoleRef(int, org.openejb.alt.config.ejb11.SecurityRoleRef)
1235

1236    /**
1237     * Method setSecurityRoleRef
1238     *
1239     * @param securityRoleRefArray
1240     */

1241    public void setSecurityRoleRef(org.openejb.alt.config.ejb11.SecurityRoleRef[] securityRoleRefArray)
1242    {
1243        //-- copy array
1244
_securityRoleRefList.removeAllElements();
1245        for (int i = 0; i < securityRoleRefArray.length; i++) {
1246            _securityRoleRefList.addElement(securityRoleRefArray[i]);
1247        }
1248    } //-- void setSecurityRoleRef(org.openejb.alt.config.ejb11.SecurityRoleRef)
1249

1250    /**
1251     * Sets the value of field 'smallIcon'.
1252     *
1253     * @param smallIcon the value of field 'smallIcon'.
1254     */

1255    public void setSmallIcon(java.lang.String JavaDoc smallIcon)
1256    {
1257        this._smallIcon = smallIcon;
1258    } //-- void setSmallIcon(java.lang.String)
1259

1260    /**
1261     * Method unmarshal
1262     *
1263     * @param reader
1264     */

1265    public static java.lang.Object JavaDoc unmarshal(java.io.Reader JavaDoc reader)
1266        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
1267    {
1268        return (org.openejb.alt.config.ejb11.Entity) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.Entity.class, reader);
1269    } //-- java.lang.Object unmarshal(java.io.Reader)
1270

1271    /**
1272     * Method validate
1273     */

1274    public void validate()
1275        throws org.exolab.castor.xml.ValidationException
1276    {
1277        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1278        validator.validate(this);
1279    } //-- void validate()
1280

1281}
1282
Popular Tags