KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jetspeed > xml > api > jcm > Item


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://castor.exolab.org">Castor 0.9.2</a>, using an
4  * XML Schema.
5  * $Id$
6  */

7
8 package org.apache.jetspeed.xml.api.jcm;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import java.io.Reader JavaDoc;
15 import java.io.Serializable JavaDoc;
16 import java.io.Writer JavaDoc;
17 import org.exolab.castor.xml.*;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.ValidationException;
20 import org.xml.sax.DocumentHandler JavaDoc;
21
22 /**
23  *
24  * @version $Revision$ $Date$
25 **/

26 public class Item implements java.io.Serializable JavaDoc {
27
28
29       //--------------------------/
30
//- Class/Member Variables -/
31
//--------------------------/
32

33     private java.lang.String JavaDoc _topic;
34
35     private java.lang.String JavaDoc _pubDate;
36
37     private java.lang.String JavaDoc _title;
38
39     private java.lang.String JavaDoc _link;
40
41     private java.lang.String JavaDoc _description;
42
43     private Quote _quote;
44
45
46       //----------------/
47
//- Constructors -/
48
//----------------/
49

50     public Item() {
51         super();
52     } //-- org.apache.jetspeed.xml.api.jcm.Item()
53

54
55       //-----------/
56
//- Methods -/
57
//-----------/
58

59     /**
60     **/

61     public java.lang.String JavaDoc getDescription()
62     {
63         return this._description;
64     } //-- java.lang.String getDescription()
65

66     /**
67     **/

68     public java.lang.String JavaDoc getLink()
69     {
70         return this._link;
71     } //-- java.lang.String getLink()
72

73     /**
74     **/

75     public java.lang.String JavaDoc getPubDate()
76     {
77         return this._pubDate;
78     } //-- java.lang.String getPubDate()
79

80     /**
81     **/

82     public Quote getQuote()
83     {
84         return this._quote;
85     } //-- Quote getQuote()
86

87     /**
88     **/

89     public java.lang.String JavaDoc getTitle()
90     {
91         return this._title;
92     } //-- java.lang.String getTitle()
93

94     /**
95     **/

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

101     /**
102     **/

103     public boolean isValid()
104     {
105         try {
106             validate();
107         }
108         catch (org.exolab.castor.xml.ValidationException vex) {
109             return false;
110         }
111         return true;
112     } //-- boolean isValid()
113

114     /**
115      *
116      * @param out
117     **/

118     public void marshal(java.io.Writer JavaDoc out)
119         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
120     {
121         
122         Marshaller.marshal(this, out);
123     } //-- void marshal(java.io.Writer)
124

125     /**
126      *
127      * @param handler
128     **/

129     public void marshal(org.xml.sax.DocumentHandler JavaDoc handler)
130         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
131     {
132         
133         Marshaller.marshal(this, handler);
134     } //-- void marshal(org.xml.sax.DocumentHandler)
135

136     /**
137      *
138      * @param description
139     **/

140     public void setDescription(java.lang.String JavaDoc description)
141     {
142         this._description = description;
143     } //-- void setDescription(java.lang.String)
144

145     /**
146      *
147      * @param link
148     **/

149     public void setLink(java.lang.String JavaDoc link)
150     {
151         this._link = link;
152     } //-- void setLink(java.lang.String)
153

154     /**
155      *
156      * @param pubDate
157     **/

158     public void setPubDate(java.lang.String JavaDoc pubDate)
159     {
160         this._pubDate = pubDate;
161     } //-- void setPubDate(java.lang.String)
162

163     /**
164      *
165      * @param quote
166     **/

167     public void setQuote(Quote quote)
168     {
169         this._quote = quote;
170     } //-- void setQuote(Quote)
171

172     /**
173      *
174      * @param title
175     **/

176     public void setTitle(java.lang.String JavaDoc title)
177     {
178         this._title = title;
179     } //-- void setTitle(java.lang.String)
180

181     /**
182      *
183      * @param topic
184     **/

185     public void setTopic(java.lang.String JavaDoc topic)
186     {
187         this._topic = topic;
188     } //-- void setTopic(java.lang.String)
189

190     /**
191      *
192      * @param reader
193     **/

194     public static org.apache.jetspeed.xml.api.jcm.Item unmarshal(java.io.Reader JavaDoc reader)
195         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
196     {
197         return (org.apache.jetspeed.xml.api.jcm.Item) Unmarshaller.unmarshal(org.apache.jetspeed.xml.api.jcm.Item.class, reader);
198     } //-- org.apache.jetspeed.xml.api.jcm.Item unmarshal(java.io.Reader)
199

200     /**
201     **/

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

209 }
210
Popular Tags