KickJava   Java API By Example, From Geeks To Geeks.

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


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

29 public class EnvEntry 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 _envEntryName
48      */

49     private java.lang.String JavaDoc _envEntryName;
50
51     /**
52      * Field _envEntryType
53      */

54     private java.lang.String JavaDoc _envEntryType;
55
56     /**
57      * Field _envEntryValue
58      */

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

66     public EnvEntry() {
67         super();
68     } //-- org.openejb.alt.config.ejb11.EnvEntry()
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 'envEntryName'.
87      *
88      * @return the value of field 'envEntryName'.
89      */

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

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

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

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

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

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

120     public java.lang.String JavaDoc getId()
121     {
122         return this._id;
123     } //-- java.lang.String getId()
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 'envEntryName'.
175      *
176      * @param envEntryName the value of field 'envEntryName'.
177      */

178     public void setEnvEntryName(java.lang.String JavaDoc envEntryName)
179     {
180         this._envEntryName = envEntryName;
181     } //-- void setEnvEntryName(java.lang.String)
182

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

188     public void setEnvEntryType(java.lang.String JavaDoc envEntryType)
189     {
190         this._envEntryType = envEntryType;
191     } //-- void setEnvEntryType(java.lang.String)
192

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

198     public void setEnvEntryValue(java.lang.String JavaDoc envEntryValue)
199     {
200         this._envEntryValue = envEntryValue;
201     } //-- void setEnvEntryValue(java.lang.String)
202

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

208     public void setId(java.lang.String JavaDoc id)
209     {
210         this._id = id;
211     } //-- void setId(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.EnvEntry) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.EnvEntry.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