KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openejb > alt > config > sys > ServiceProvider


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: ServiceProvider.java 1105 2004-03-31 00:45:22Z dblevins $
6  */

7
8 package org.openejb.alt.config.sys;
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 ServiceProvider.
26  *
27  * @version $Revision: 1105 $ $Date: 2004-03-30 16:45:22 -0800 (Tue, 30 Mar 2004) $
28  */

29 public class ServiceProvider 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 _providerType
43      */

44     private java.lang.String JavaDoc _providerType;
45
46     /**
47      * Field _displayName
48      */

49     private java.lang.String JavaDoc _displayName;
50
51     /**
52      * Field _description
53      */

54     private java.lang.String JavaDoc _description;
55
56     /**
57      * Field _className
58      */

59     private java.lang.String JavaDoc _className;
60
61     /**
62      * internal content storage
63      */

64     private java.lang.String JavaDoc _content = "";
65
66     /**
67      * Field _propertiesFile
68      */

69     private org.openejb.alt.config.sys.PropertiesFile _propertiesFile;
70
71     /**
72      * Field _lookup
73      */

74     private org.openejb.alt.config.sys.Lookup _lookup;
75
76
77       //----------------/
78
//- Constructors -/
79
//----------------/
80

81     public ServiceProvider() {
82         super();
83         setContent("");
84     } //-- org.openejb.alt.config.sys.ServiceProvider()
85

86
87       //-----------/
88
//- Methods -/
89
//-----------/
90

91     /**
92      * Returns the value of field 'className'.
93      *
94      * @return the value of field 'className'.
95      */

96     public java.lang.String JavaDoc getClassName()
97     {
98         return this._className;
99     } //-- java.lang.String getClassName()
100

101     /**
102      * Returns the value of field 'content'. The field 'content'
103      * has the following description: internal content storage
104      *
105      * @return the value of field 'content'.
106      */

107     public java.lang.String JavaDoc getContent()
108     {
109         return this._content;
110     } //-- java.lang.String getContent()
111

112     /**
113      * Returns the value of field 'description'.
114      *
115      * @return the value of field 'description'.
116      */

117     public java.lang.String JavaDoc getDescription()
118     {
119         return this._description;
120     } //-- java.lang.String getDescription()
121

122     /**
123      * Returns the value of field 'displayName'.
124      *
125      * @return the value of field 'displayName'.
126      */

127     public java.lang.String JavaDoc getDisplayName()
128     {
129         return this._displayName;
130     } //-- java.lang.String getDisplayName()
131

132     /**
133      * Returns the value of field 'id'.
134      *
135      * @return the value of field 'id'.
136      */

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

142     /**
143      * Returns the value of field 'lookup'.
144      *
145      * @return the value of field 'lookup'.
146      */

147     public org.openejb.alt.config.sys.Lookup getLookup()
148     {
149         return this._lookup;
150     } //-- org.openejb.alt.config.sys.Lookup getLookup()
151

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

157     public org.openejb.alt.config.sys.PropertiesFile getPropertiesFile()
158     {
159         return this._propertiesFile;
160     } //-- org.openejb.alt.config.sys.PropertiesFile getPropertiesFile()
161

162     /**
163      * Returns the value of field 'providerType'.
164      *
165      * @return the value of field 'providerType'.
166      */

167     public java.lang.String JavaDoc getProviderType()
168     {
169         return this._providerType;
170     } //-- java.lang.String getProviderType()
171

172     /**
173      * Method isValid
174      */

175     public boolean isValid()
176     {
177         try {
178             validate();
179         }
180         catch (org.exolab.castor.xml.ValidationException vex) {
181             return false;
182         }
183         return true;
184     } //-- boolean isValid()
185

186     /**
187      * Method marshal
188      *
189      * @param out
190      */

191     public void marshal(java.io.Writer JavaDoc out)
192         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
193     {
194         
195         Marshaller.marshal(this, out);
196     } //-- void marshal(java.io.Writer)
197

198     /**
199      * Method marshal
200      *
201      * @param handler
202      */

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

210     /**
211      * Sets the value of field 'className'.
212      *
213      * @param className the value of field 'className'.
214      */

215     public void setClassName(java.lang.String JavaDoc className)
216     {
217         this._className = className;
218     } //-- void setClassName(java.lang.String)
219

220     /**
221      * Sets the value of field 'content'. The field 'content' has
222      * the following description: internal content storage
223      *
224      * @param content the value of field 'content'.
225      */

226     public void setContent(java.lang.String JavaDoc content)
227     {
228         this._content = content;
229     } //-- void setContent(java.lang.String)
230

231     /**
232      * Sets the value of field 'description'.
233      *
234      * @param description the value of field 'description'.
235      */

236     public void setDescription(java.lang.String JavaDoc description)
237     {
238         this._description = description;
239     } //-- void setDescription(java.lang.String)
240

241     /**
242      * Sets the value of field 'displayName'.
243      *
244      * @param displayName the value of field 'displayName'.
245      */

246     public void setDisplayName(java.lang.String JavaDoc displayName)
247     {
248         this._displayName = displayName;
249     } //-- void setDisplayName(java.lang.String)
250

251     /**
252      * Sets the value of field 'id'.
253      *
254      * @param id the value of field 'id'.
255      */

256     public void setId(java.lang.String JavaDoc id)
257     {
258         this._id = id;
259     } //-- void setId(java.lang.String)
260

261     /**
262      * Sets the value of field 'lookup'.
263      *
264      * @param lookup the value of field 'lookup'.
265      */

266     public void setLookup(org.openejb.alt.config.sys.Lookup lookup)
267     {
268         this._lookup = lookup;
269     } //-- void setLookup(org.openejb.alt.config.sys.Lookup)
270

271     /**
272      * Sets the value of field 'propertiesFile'.
273      *
274      * @param propertiesFile the value of field 'propertiesFile'.
275      */

276     public void setPropertiesFile(org.openejb.alt.config.sys.PropertiesFile propertiesFile)
277     {
278         this._propertiesFile = propertiesFile;
279     } //-- void setPropertiesFile(org.openejb.alt.config.sys.PropertiesFile)
280

281     /**
282      * Sets the value of field 'providerType'.
283      *
284      * @param providerType the value of field 'providerType'.
285      */

286     public void setProviderType(java.lang.String JavaDoc providerType)
287     {
288         this._providerType = providerType;
289     } //-- void setProviderType(java.lang.String)
290

291     /**
292      * Method unmarshal
293      *
294      * @param reader
295      */

296     public static java.lang.Object JavaDoc unmarshal(java.io.Reader JavaDoc reader)
297         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
298     {
299         return (org.openejb.alt.config.sys.ServiceProvider) Unmarshaller.unmarshal(org.openejb.alt.config.sys.ServiceProvider.class, reader);
300     } //-- java.lang.Object unmarshal(java.io.Reader)
301

302     /**
303      * Method validate
304      */

305     public void validate()
306         throws org.exolab.castor.xml.ValidationException
307     {
308         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
309         validator.validate(this);
310     } //-- void validate()
311

312 }
313
Popular Tags