KickJava   Java API By Example, From Geeks To Geeks.

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


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

29 public class Method 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 _ejbName
48      */

49     private java.lang.String JavaDoc _ejbName;
50
51     /**
52      * Field _methodIntf
53      */

54     private java.lang.String JavaDoc _methodIntf;
55
56     /**
57      * Field _methodName
58      */

59     private java.lang.String JavaDoc _methodName;
60
61     /**
62      * Field _methodParams
63      */

64     private org.openejb.alt.config.ejb11.MethodParams _methodParams;
65
66
67       //----------------/
68
//- Constructors -/
69
//----------------/
70

71     public Method() {
72         super();
73     } //-- org.openejb.alt.config.ejb11.Method()
74

75
76       //-----------/
77
//- Methods -/
78
//-----------/
79

80     /**
81      * Returns the value of field 'description'.
82      *
83      * @return the value of field 'description'.
84      */

85     public java.lang.String JavaDoc getDescription()
86     {
87         return this._description;
88     } //-- java.lang.String getDescription()
89

90     /**
91      * Returns the value of field 'ejbName'.
92      *
93      * @return the value of field 'ejbName'.
94      */

95     public java.lang.String JavaDoc getEjbName()
96     {
97         return this._ejbName;
98     } //-- java.lang.String getEjbName()
99

100     /**
101      * Returns the value of field 'id'.
102      *
103      * @return the value of field 'id'.
104      */

105     public java.lang.String JavaDoc getId()
106     {
107         return this._id;
108     } //-- java.lang.String getId()
109

110     /**
111      * Returns the value of field 'methodIntf'.
112      *
113      * @return the value of field 'methodIntf'.
114      */

115     public java.lang.String JavaDoc getMethodIntf()
116     {
117         return this._methodIntf;
118     } //-- java.lang.String getMethodIntf()
119

120     /**
121      * Returns the value of field 'methodName'.
122      *
123      * @return the value of field 'methodName'.
124      */

125     public java.lang.String JavaDoc getMethodName()
126     {
127         return this._methodName;
128     } //-- java.lang.String getMethodName()
129

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

135     public org.openejb.alt.config.ejb11.MethodParams getMethodParams()
136     {
137         return this._methodParams;
138     } //-- org.openejb.alt.config.ejb11.MethodParams getMethodParams()
139

140     /**
141      * Method isValid
142      */

143     public boolean isValid()
144     {
145         try {
146             validate();
147         }
148         catch (org.exolab.castor.xml.ValidationException vex) {
149             return false;
150         }
151         return true;
152     } //-- boolean isValid()
153

154     /**
155      * Method marshal
156      *
157      * @param out
158      */

159     public void marshal(java.io.Writer JavaDoc out)
160         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
161     {
162         
163         Marshaller.marshal(this, out);
164     } //-- void marshal(java.io.Writer)
165

166     /**
167      * Method marshal
168      *
169      * @param handler
170      */

171     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
172         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
173     {
174         
175         Marshaller.marshal(this, handler);
176     } //-- void marshal(org.xml.sax.ContentHandler)
177

178     /**
179      * Sets the value of field 'description'.
180      *
181      * @param description the value of field 'description'.
182      */

183     public void setDescription(java.lang.String JavaDoc description)
184     {
185         this._description = description;
186     } //-- void setDescription(java.lang.String)
187

188     /**
189      * Sets the value of field 'ejbName'.
190      *
191      * @param ejbName the value of field 'ejbName'.
192      */

193     public void setEjbName(java.lang.String JavaDoc ejbName)
194     {
195         this._ejbName = ejbName;
196     } //-- void setEjbName(java.lang.String)
197

198     /**
199      * Sets the value of field 'id'.
200      *
201      * @param id the value of field 'id'.
202      */

203     public void setId(java.lang.String JavaDoc id)
204     {
205         this._id = id;
206     } //-- void setId(java.lang.String)
207

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

213     public void setMethodIntf(java.lang.String JavaDoc methodIntf)
214     {
215         this._methodIntf = methodIntf;
216     } //-- void setMethodIntf(java.lang.String)
217

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

223     public void setMethodName(java.lang.String JavaDoc methodName)
224     {
225         this._methodName = methodName;
226     } //-- void setMethodName(java.lang.String)
227

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

233     public void setMethodParams(org.openejb.alt.config.ejb11.MethodParams methodParams)
234     {
235         this._methodParams = methodParams;
236     } //-- void setMethodParams(org.openejb.alt.config.ejb11.MethodParams)
237

238     /**
239      * Method unmarshal
240      *
241      * @param reader
242      */

243     public static java.lang.Object JavaDoc unmarshal(java.io.Reader JavaDoc reader)
244         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
245     {
246         return (org.openejb.alt.config.ejb11.Method) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.Method.class, reader);
247     } //-- java.lang.Object unmarshal(java.io.Reader)
248

249     /**
250      * Method validate
251      */

252     public void validate()
253         throws org.exolab.castor.xml.ValidationException
254     {
255         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
256         validator.validate(this);
257     } //-- void validate()
258

259 }
260
Popular Tags