KickJava   Java API By Example, From Geeks To Geeks.

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


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: EjbRef.java 1104 2004-03-31 00:44:02Z 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 EjbRef.
26  *
27  * @version $Revision: 1104 $ $Date: 2004-03-30 16:44:02 -0800 (Tue, 30 Mar 2004) $
28  */

29 public class EjbRef 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 _home
58      */

59     private java.lang.String JavaDoc _home;
60
61     /**
62      * Field _remote
63      */

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

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

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

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

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

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

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

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

105     /**
106      * Returns the value of field 'ejbRefName'.
107      *
108      * @return the value of field 'ejbRefName'.
109      */

110     public java.lang.String JavaDoc getEjbRefName()
111     {
112         return this._ejbRefName;
113     } //-- java.lang.String getEjbRefName()
114

115     /**
116      * Returns the value of field 'ejbRefType'.
117      *
118      * @return the value of field 'ejbRefType'.
119      */

120     public java.lang.String JavaDoc getEjbRefType()
121     {
122         return this._ejbRefType;
123     } //-- java.lang.String getEjbRefType()
124

125     /**
126      * Returns the value of field 'home'.
127      *
128      * @return the value of field 'home'.
129      */

130     public java.lang.String JavaDoc getHome()
131     {
132         return this._home;
133     } //-- java.lang.String getHome()
134

135     /**
136      * Returns the value of field 'id'.
137      *
138      * @return the value of field 'id'.
139      */

140     public java.lang.String JavaDoc getId()
141     {
142         return this._id;
143     } //-- java.lang.String getId()
144

145     /**
146      * Returns the value of field 'remote'.
147      *
148      * @return the value of field 'remote'.
149      */

150     public java.lang.String JavaDoc getRemote()
151     {
152         return this._remote;
153     } //-- java.lang.String getRemote()
154

155     /**
156      * Method isValid
157      */

158     public boolean isValid()
159     {
160         try {
161             validate();
162         }
163         catch (org.exolab.castor.xml.ValidationException vex) {
164             return false;
165         }
166         return true;
167     } //-- boolean isValid()
168

169     /**
170      * Method marshal
171      *
172      * @param out
173      */

174     public void marshal(java.io.Writer JavaDoc out)
175         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
176     {
177         
178         Marshaller.marshal(this, out);
179     } //-- void marshal(java.io.Writer)
180

181     /**
182      * Method marshal
183      *
184      * @param handler
185      */

186     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
187         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
188     {
189         
190         Marshaller.marshal(this, handler);
191     } //-- void marshal(org.xml.sax.ContentHandler)
192

193     /**
194      * Sets the value of field 'description'.
195      *
196      * @param description the value of field 'description'.
197      */

198     public void setDescription(java.lang.String JavaDoc description)
199     {
200         this._description = description;
201     } //-- void setDescription(java.lang.String)
202

203     /**
204      * Sets the value of field 'ejbLink'.
205      *
206      * @param ejbLink the value of field 'ejbLink'.
207      */

208     public void setEjbLink(java.lang.String JavaDoc ejbLink)
209     {
210         this._ejbLink = ejbLink;
211     } //-- void setEjbLink(java.lang.String)
212

213     /**
214      * Sets the value of field 'ejbRefName'.
215      *
216      * @param ejbRefName the value of field 'ejbRefName'.
217      */

218     public void setEjbRefName(java.lang.String JavaDoc ejbRefName)
219     {
220         this._ejbRefName = ejbRefName;
221     } //-- void setEjbRefName(java.lang.String)
222

223     /**
224      * Sets the value of field 'ejbRefType'.
225      *
226      * @param ejbRefType the value of field 'ejbRefType'.
227      */

228     public void setEjbRefType(java.lang.String JavaDoc ejbRefType)
229     {
230         this._ejbRefType = ejbRefType;
231     } //-- void setEjbRefType(java.lang.String)
232

233     /**
234      * Sets the value of field 'home'.
235      *
236      * @param home the value of field 'home'.
237      */

238     public void setHome(java.lang.String JavaDoc home)
239     {
240         this._home = home;
241     } //-- void setHome(java.lang.String)
242

243     /**
244      * Sets the value of field 'id'.
245      *
246      * @param id the value of field 'id'.
247      */

248     public void setId(java.lang.String JavaDoc id)
249     {
250         this._id = id;
251     } //-- void setId(java.lang.String)
252

253     /**
254      * Sets the value of field 'remote'.
255      *
256      * @param remote the value of field 'remote'.
257      */

258     public void setRemote(java.lang.String JavaDoc remote)
259     {
260         this._remote = remote;
261     } //-- void setRemote(java.lang.String)
262

263     /**
264      * Method unmarshal
265      *
266      * @param reader
267      */

268     public static java.lang.Object JavaDoc unmarshal(java.io.Reader JavaDoc reader)
269         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
270     {
271         return (org.openejb.alt.config.ejb11.EjbRef) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.EjbRef.class, reader);
272     } //-- java.lang.Object unmarshal(java.io.Reader)
273

274     /**
275      * Method validate
276      */

277     public void validate()
278         throws org.exolab.castor.xml.ValidationException
279     {
280         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
281         validator.validate(this);
282     } //-- void validate()
283

284 }
285
Popular Tags