KickJava   Java API By Example, From Geeks To Geeks.

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


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: ConnectionManager.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 ConnectionManager.
26  *
27  * @version $Revision: 1105 $ $Date: 2004-03-30 16:45:22 -0800 (Tue, 30 Mar 2004) $
28  */

29 public class ConnectionManager implements java.io.Serializable JavaDoc, org.openejb.alt.config.Service {
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 _provider
43      */

44     private java.lang.String JavaDoc _provider;
45
46     /**
47      * Field _jar
48      */

49     private java.lang.String JavaDoc _jar;
50
51     /**
52      * internal content storage
53      */

54     private java.lang.String JavaDoc _content = "";
55
56
57       //----------------/
58
//- Constructors -/
59
//----------------/
60

61     public ConnectionManager() {
62         super();
63         setContent("");
64     } //-- org.openejb.alt.config.sys.ConnectionManager()
65

66
67       //-----------/
68
//- Methods -/
69
//-----------/
70

71     /**
72      * Returns the value of field 'content'. The field 'content'
73      * has the following description: internal content storage
74      *
75      * @return the value of field 'content'.
76      */

77     public java.lang.String JavaDoc getContent()
78     {
79         return this._content;
80     } //-- java.lang.String getContent()
81

82     /**
83      * Returns the value of field 'id'.
84      *
85      * @return the value of field 'id'.
86      */

87     public java.lang.String JavaDoc getId()
88     {
89         return this._id;
90     } //-- java.lang.String getId()
91

92     /**
93      * Returns the value of field 'jar'.
94      *
95      * @return the value of field 'jar'.
96      */

97     public java.lang.String JavaDoc getJar()
98     {
99         return this._jar;
100     } //-- java.lang.String getJar()
101

102     /**
103      * Returns the value of field 'provider'.
104      *
105      * @return the value of field 'provider'.
106      */

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

112     /**
113      * Method isValid
114      */

115     public boolean isValid()
116     {
117         try {
118             validate();
119         }
120         catch (org.exolab.castor.xml.ValidationException vex) {
121             return false;
122         }
123         return true;
124     } //-- boolean isValid()
125

126     /**
127      * Method marshal
128      *
129      * @param out
130      */

131     public void marshal(java.io.Writer JavaDoc out)
132         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
133     {
134         
135         Marshaller.marshal(this, out);
136     } //-- void marshal(java.io.Writer)
137

138     /**
139      * Method marshal
140      *
141      * @param handler
142      */

143     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
144         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
145     {
146         
147         Marshaller.marshal(this, handler);
148     } //-- void marshal(org.xml.sax.ContentHandler)
149

150     /**
151      * Sets the value of field 'content'. The field 'content' has
152      * the following description: internal content storage
153      *
154      * @param content the value of field 'content'.
155      */

156     public void setContent(java.lang.String JavaDoc content)
157     {
158         this._content = content;
159     } //-- void setContent(java.lang.String)
160

161     /**
162      * Sets the value of field 'id'.
163      *
164      * @param id the value of field 'id'.
165      */

166     public void setId(java.lang.String JavaDoc id)
167     {
168         this._id = id;
169     } //-- void setId(java.lang.String)
170

171     /**
172      * Sets the value of field 'jar'.
173      *
174      * @param jar the value of field 'jar'.
175      */

176     public void setJar(java.lang.String JavaDoc jar)
177     {
178         this._jar = jar;
179     } //-- void setJar(java.lang.String)
180

181     /**
182      * Sets the value of field 'provider'.
183      *
184      * @param provider the value of field 'provider'.
185      */

186     public void setProvider(java.lang.String JavaDoc provider)
187     {
188         this._provider = provider;
189     } //-- void setProvider(java.lang.String)
190

191     /**
192      * Method unmarshal
193      *
194      * @param reader
195      */

196     public static java.lang.Object JavaDoc unmarshal(java.io.Reader JavaDoc reader)
197         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
198     {
199         return (org.openejb.alt.config.sys.ConnectionManager) Unmarshaller.unmarshal(org.openejb.alt.config.sys.ConnectionManager.class, reader);
200     } //-- java.lang.Object unmarshal(java.io.Reader)
201

202     /**
203      * Method validate
204      */

205     public void validate()
206         throws org.exolab.castor.xml.ValidationException
207     {
208         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
209         validator.validate(this);
210     } //-- void validate()
211

212 }
213
Popular Tags