KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jresearch > gossip > beans > forum > SimpleMessage


1 /*
2  * $$Id: SimpleMessage.java,v 1.3 2005/06/07 12:31:55 bel70 Exp $$
3  *
4  * ***** BEGIN LICENSE BLOCK *****
5  * The contents of this file are subject to the Mozilla Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License
8  * at http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific language governing rights and
13  * limitations under the License.
14  *
15  * The Original Code is JGossip forum code.
16  *
17  * The Initial Developer of the Original Code is the JResearch, Org.
18  * Portions created by the Initial Developer are Copyright (C) 2004
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  * Dmitry Belov <bel@jresearch.org>
23  *
24  * ***** END LICENSE BLOCK ***** */

25 /*
26  * Created on Nov 2, 2003
27  *
28  */

29 package org.jresearch.gossip.beans.forum;
30
31 import java.io.Serializable JavaDoc;
32 import java.util.Date JavaDoc;
33
34 /**
35  * DOCUMENT ME!
36  *
37  * @author Bel
38  */

39 public class SimpleMessage implements Serializable JavaDoc {
40     /**
41      *
42      */

43     private static final long serialVersionUID = -6711897730907194178L;
44
45     private String JavaDoc centents;
46
47     private String JavaDoc heading;
48
49     private int id;
50
51     private Date JavaDoc intime;
52
53     private String JavaDoc sender;
54
55     private int threadid;
56
57     /**
58      * DOCUMENT ME!
59      *
60      * @return
61      */

62     public String JavaDoc getCentents() {
63         return centents;
64     }
65
66     /**
67      * DOCUMENT ME!
68      *
69      * @return
70      */

71     public String JavaDoc getHeading() {
72         return heading;
73     }
74
75     /**
76      * DOCUMENT ME!
77      *
78      * @return
79      */

80     public int getId() {
81         return id;
82     }
83
84     /**
85      * DOCUMENT ME!
86      *
87      * @return
88      */

89     public Date JavaDoc getIntime() {
90         return intime;
91     }
92
93     /**
94      * DOCUMENT ME!
95      *
96      * @return
97      */

98     public String JavaDoc getSender() {
99         return sender;
100     }
101
102     /**
103      * DOCUMENT ME!
104      *
105      * @param string
106      */

107     public void setCentents(String JavaDoc string) {
108         centents = string;
109     }
110
111     /**
112      * DOCUMENT ME!
113      *
114      * @param string
115      */

116     public void setHeading(String JavaDoc string) {
117         heading = string;
118     }
119
120     /**
121      * DOCUMENT ME!
122      *
123      * @param i
124      */

125     public void setId(int i) {
126         id = i;
127     }
128
129     /**
130      * DOCUMENT ME!
131      *
132      * @param date
133      */

134     public void setIntime(Date JavaDoc date) {
135         intime = date;
136     }
137
138     /**
139      * DOCUMENT ME!
140      *
141      * @param string
142      */

143     public void setSender(String JavaDoc string) {
144         sender = string;
145     }
146
147     /**
148      * DOCUMENT ME!
149      *
150      * @return
151      */

152     public int getThreadid() {
153         return threadid;
154     }
155
156     /**
157      * DOCUMENT ME!
158      *
159      * @param i
160      */

161     public void setThreadid(int i) {
162         threadid = i;
163     }
164 }
165
Popular Tags