KickJava   Java API By Example, From Geeks To Geeks.

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


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: EjbLocalRef.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 org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.Marshaller;
20 import org.exolab.castor.xml.Unmarshaller;
21 import org.exolab.castor.xml.ValidationException;
22 import org.xml.sax.ContentHandler JavaDoc;
23
24 /**
25  * Class EjbLocalRef.
26  *
27  * @version $Revision: 1312 $ $Date: 2004-08-14 03:35:39 -0700 (Sat, 14 Aug 2004) $
28  */

29 public class EjbLocalRef implements java.io.Serializable JavaDoc {
30
31
32       //--------------------------/
33
//- Class/Member Variables -/
34
//--------------------------/
35

36     /**
37      * Field _id
38      */

39     private java.lang.String JavaDoc _id;
40
41     /**
42      * Field _description
43      */

44     private java.lang.String JavaDoc _description;
45
46     /**
47      * Field _ejbRefName
48      */

49     private java.lang.String JavaDoc _ejbRefName;
50
51     /**
52      * Field _ejbRefType
53      */

54     private java.lang.String JavaDoc _ejbRefType;
55
56     /**
57      * Field _localHome
58      */

59     private java.lang.String JavaDoc _localHome;
60
61     /**
62      * Field _local
63      */

64     private java.lang.String JavaDoc _local;
65
66     /**
67      * Field _ejbLink
68      */

69     private java.lang.String JavaDoc _ejbLink;
70
71
72       //----------------/
73
//- Constructors -/
74
//----------------/
75

76     public EjbLocalRef() {
77         super();
78     } //-- org.openejb.alt.config.ejb11.EjbLocalRef()
79

80
81       //-----------/
82
//- Methods -/
83
//-----------/
84

85     /**
86      * Returns the value of field 'description'.
87      *
88      * @return String
89      * @return the value of field 'description'.
90      */

91     public java.lang.String JavaDoc getDescription()
92     {
93         return this._description;
94     } //-- java.lang.String getDescription()
95

96     /**
97      * Returns the value of field 'ejbLink'.
98      *
99      * @return String
100      * @return the value of field 'ejbLink'.
101      */

102     public java.lang.String JavaDoc getEjbLink()
103     {
104         return this._ejbLink;
105     } //-- java.lang.String getEjbLink()
106

107     /**
108      * Returns the value of field 'ejbRefName'.
109      *
110      * @return String
111      * @return the value of field 'ejbRefName'.
112      */

113     public java.lang.String JavaDoc getEjbRefName()
114     {
115         return this._ejbRefName;
116     } //-- java.lang.String getEjbRefName()
117

118     /**
119      * Returns the value of field 'ejbRefType'.
120      *
121      * @return String
122      * @return the value of field 'ejbRefType'.
123      */

124     public java.lang.String JavaDoc getEjbRefType()
125     {
126         return this._ejbRefType;
127     } //-- java.lang.String getEjbRefType()
128

129     /**
130      * Returns the value of field 'id'.
131      *
132      * @return String
133      * @return the value of field 'id'.
134      */

135     public java.lang.String JavaDoc getId()
136     {
137         return this._id;
138     } //-- java.lang.String getId()
139

140     /**
141      * Returns the value of field 'local'.
142      *
143      * @return String
144      * @return the value of field 'local'.
145      */

146     public java.lang.String JavaDoc getLocal()
147     {
148         return this._local;
149     } //-- java.lang.String getLocal()
150

151     /**
152      * Returns the value of field 'localHome'.
153      *
154      * @return String
155      * @return the value of field 'localHome'.
156      */

157     public java.lang.String JavaDoc getLocalHome()
158     {
159         return this._localHome;
160     } //-- java.lang.String getLocalHome()
161

162     /**
163      * Method isValid
164      *
165      *
166      *
167      * @return boolean
168      */

169     public boolean isValid()
170     {
171         try {
172             validate();
173         }
174         catch (org.exolab.castor.xml.ValidationException vex) {
175             return false;
176         }
177         return true;
178     } //-- boolean isValid()
179

180     /**
181      * Method marshal
182      *
183      *
184      *
185      * @param out
186      */

187     public void marshal(java.io.Writer JavaDoc out)
188         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
189     {
190         
191         Marshaller.marshal(this, out);
192     } //-- void marshal(java.io.Writer)
193

194     /**
195      * Method marshal
196      *
197      *
198      *
199      * @param handler
200      */

201     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
202         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
203     {
204         
205         Marshaller.marshal(this, handler);
206     } //-- void marshal(org.xml.sax.ContentHandler)
207

208     /**
209      * Sets the value of field 'description'.
210      *
211      * @param description the value of field 'description'.
212      */

213     public void setDescription(java.lang.String JavaDoc description)
214     {
215         this._description = description;
216     } //-- void setDescription(java.lang.String)
217

218     /**
219      * Sets the value of field 'ejbLink'.
220      *
221      * @param ejbLink the value of field 'ejbLink'.
222      */

223     public void setEjbLink(java.lang.String JavaDoc ejbLink)
224     {
225         this._ejbLink = ejbLink;
226     } //-- void setEjbLink(java.lang.String)
227

228     /**
229      * Sets the value of field 'ejbRefName'.
230      *
231      * @param ejbRefName the value of field 'ejbRefName'.
232      */

233     public void setEjbRefName(java.lang.String JavaDoc ejbRefName)
234     {
235         this._ejbRefName = ejbRefName;
236     } //-- void setEjbRefName(java.lang.String)
237

238     /**
239      * Sets the value of field 'ejbRefType'.
240      *
241      * @param ejbRefType the value of field 'ejbRefType'.
242      */

243     public void setEjbRefType(java.lang.String JavaDoc ejbRefType)
244     {
245         this._ejbRefType = ejbRefType;
246     } //-- void setEjbRefType(java.lang.String)
247

248     /**
249      * Sets the value of field 'id'.
250      *
251      * @param id the value of field 'id'.
252      */

253     public void setId(java.lang.String JavaDoc id)
254     {
255         this._id = id;
256     } //-- void setId(java.lang.String)
257

258     /**
259      * Sets the value of field 'local'.
260      *
261      * @param local the value of field 'local'.
262      */

263     public void setLocal(java.lang.String JavaDoc local)
264     {
265         this._local = local;
266     } //-- void setLocal(java.lang.String)
267

268     /**
269      * Sets the value of field 'localHome'.
270      *
271      * @param localHome the value of field 'localHome'.
272      */

273     public void setLocalHome(java.lang.String JavaDoc localHome)
274     {
275         this._localHome = localHome;
276     } //-- void setLocalHome(java.lang.String)
277

278     /**
279      * Method unmarshalEjbLocalRef
280      *
281      *
282      *
283      * @param reader
284      * @return Object
285      */

286     public static java.lang.Object JavaDoc unmarshalEjbLocalRef(java.io.Reader JavaDoc reader)
287         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
288     {
289         return (org.openejb.alt.config.ejb11.EjbLocalRef) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.EjbLocalRef.class, reader);
290     } //-- java.lang.Object unmarshalEjbLocalRef(java.io.Reader)
291

292     /**
293      * Method validate
294      *
295      */

296     public void validate()
297         throws org.exolab.castor.xml.ValidationException
298     {
299         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
300         validator.validate(this);
301     } //-- void validate()
302

303 }
304
Popular Tags