KickJava   Java API By Example, From Geeks To Geeks.

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


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

29 public class ResourceRef 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 _resRefName
48      */

49     private java.lang.String JavaDoc _resRefName;
50
51     /**
52      * Field _resType
53      */

54     private java.lang.String JavaDoc _resType;
55
56     /**
57      * Field _resAuth
58      */

59     private java.lang.String JavaDoc _resAuth;
60
61
62       //----------------/
63
//- Constructors -/
64
//----------------/
65

66     public ResourceRef() {
67         super();
68     } //-- org.openejb.alt.config.ejb11.ResourceRef()
69

70
71       //-----------/
72
//- Methods -/
73
//-----------/
74

75     /**
76      * Returns the value of field 'description'.
77      *
78      * @return the value of field 'description'.
79      */

80     public java.lang.String JavaDoc getDescription()
81     {
82         return this._description;
83     } //-- java.lang.String getDescription()
84

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

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

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

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

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

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

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

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

125     /**
126      * Method isValid
127      */

128     public boolean isValid()
129     {
130         try {
131             validate();
132         }
133         catch (org.exolab.castor.xml.ValidationException vex) {
134             return false;
135         }
136         return true;
137     } //-- boolean isValid()
138

139     /**
140      * Method marshal
141      *
142      * @param out
143      */

144     public void marshal(java.io.Writer JavaDoc out)
145         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
146     {
147         
148         Marshaller.marshal(this, out);
149     } //-- void marshal(java.io.Writer)
150

151     /**
152      * Method marshal
153      *
154      * @param handler
155      */

156     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
157         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
158     {
159         
160         Marshaller.marshal(this, handler);
161     } //-- void marshal(org.xml.sax.ContentHandler)
162

163     /**
164      * Sets the value of field 'description'.
165      *
166      * @param description the value of field 'description'.
167      */

168     public void setDescription(java.lang.String JavaDoc description)
169     {
170         this._description = description;
171     } //-- void setDescription(java.lang.String)
172

173     /**
174      * Sets the value of field 'id'.
175      *
176      * @param id the value of field 'id'.
177      */

178     public void setId(java.lang.String JavaDoc id)
179     {
180         this._id = id;
181     } //-- void setId(java.lang.String)
182

183     /**
184      * Sets the value of field 'resAuth'.
185      *
186      * @param resAuth the value of field 'resAuth'.
187      */

188     public void setResAuth(java.lang.String JavaDoc resAuth)
189     {
190         this._resAuth = resAuth;
191     } //-- void setResAuth(java.lang.String)
192

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

198     public void setResRefName(java.lang.String JavaDoc resRefName)
199     {
200         this._resRefName = resRefName;
201     } //-- void setResRefName(java.lang.String)
202

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

208     public void setResType(java.lang.String JavaDoc resType)
209     {
210         this._resType = resType;
211     } //-- void setResType(java.lang.String)
212

213     /**
214      * Method unmarshal
215      *
216      * @param reader
217      */

218     public static java.lang.Object JavaDoc unmarshal(java.io.Reader JavaDoc reader)
219         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
220     {
221         return (org.openejb.alt.config.ejb11.ResourceRef) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.ResourceRef.class, reader);
222     } //-- java.lang.Object unmarshal(java.io.Reader)
223

224     /**
225      * Method validate
226      */

227     public void validate()
228         throws org.exolab.castor.xml.ValidationException
229     {
230         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
231         validator.validate(this);
232     } //-- void validate()
233

234 }
235
Popular Tags