KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > contineo > communication > Message


1 /*
2  * Message.java
3  *
4  * Created on 9. Dezember 2003, 22:26
5  */

6
7 package org.contineo.communication;
8
9 /**
10  * This is the parent class for email and systemmessage.
11  * @author Michael Scholz
12  * @version 1.0
13  */

14 public abstract class Message {
15     
16     /**
17      * @uml.property name="messageId"
18      */

19     private int messageId = 0;
20     /**
21      * @uml.property name="messageText"
22      */

23     private String JavaDoc messageText = "";
24     /**
25      * @uml.property name="author"
26      */

27     private String JavaDoc author = "";
28     /**
29      * @uml.property name="subject"
30      */

31     private String JavaDoc subject = "";
32     /**
33      * @uml.property name="sentDate"
34      */

35     private String JavaDoc sentDate = "";
36     /**
37      * @uml.property name="read"
38      */

39     private int read = 0; // 0 - false; 1 - true
40

41     /**
42      *
43      * @uml.property name="messageId"
44      */

45     public int getMessageId() {
46         return messageId;
47     }
48
49     /**
50      *
51      * @uml.property name="messageText"
52      */

53     public String JavaDoc getMessageText() {
54         return messageText;
55     }
56
57     /**
58      *
59      * @uml.property name="author"
60      */

61     public String JavaDoc getAuthor() {
62         return author;
63     }
64
65     /**
66      *
67      * @uml.property name="subject"
68      */

69     public String JavaDoc getSubject() {
70         return subject;
71     }
72
73     /**
74      *
75      * @uml.property name="sentDate"
76      */

77     public String JavaDoc getSentDate() {
78         return sentDate;
79     }
80
81     /**
82      *
83      * @uml.property name="read"
84      */

85     public int getRead() {
86         return read;
87     }
88
89     /**
90      *
91      * @uml.property name="messageId"
92      */

93     public void setMessageId(int id) {
94         messageId = id;
95     }
96
97     /**
98      *
99      * @uml.property name="messageText"
100      */

101     public void setMessageText(String JavaDoc mess) {
102         messageText = mess;
103     }
104
105     /**
106      *
107      * @uml.property name="author"
108      */

109     public void setAuthor(String JavaDoc auth) {
110         author = auth;
111     }
112
113     /**
114      *
115      * @uml.property name="subject"
116      */

117     public void setSubject(String JavaDoc subj) {
118         subject = subj;
119     }
120
121     /**
122      *
123      * @uml.property name="sentDate"
124      */

125     public void setSentDate(String JavaDoc dat) {
126         sentDate = dat;
127     }
128
129     /**
130      *
131      * @uml.property name="read"
132      */

133     public void setRead(int rd) {
134         read = rd;
135     }
136
137 }
138
Popular Tags