KickJava   Java API By Example, From Geeks To Geeks.

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


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

6
7 package org.contineo.communication;
8
9 /**
10  * SystemMessages are messages which an user only can send to other system users.
11  * @author Michael Scholz
12  * @version 1.0
13  */

14 public class SystemMessage extends Message {
15
16     /**
17      * @uml.property name="recipient"
18      */

19     private String JavaDoc recipient = "";
20     /**
21      * @uml.property name="dateScope"
22      */

23     private int dateScope = 0;
24     /**
25      * @uml.property name="prio"
26      */

27     private int prio = 0;
28     /**
29      * @uml.property name="confirmation"
30      */

31     private int confirmation = 0; // 0 - false; 1 - true
32

33     /** Creates a new instance of SystemMessage */
34     public SystemMessage() {
35     }
36
37     /**
38      *
39      * @uml.property name="recipient"
40      */

41     public String JavaDoc getRecipient() {
42         return recipient;
43     }
44
45     /**
46      *
47      * @uml.property name="dateScope"
48      */

49     public int getDateScope() {
50         return dateScope;
51     }
52
53     /**
54      *
55      * @uml.property name="prio"
56      */

57     public int getPrio() {
58         return prio;
59     }
60
61     /**
62      *
63      * @uml.property name="confirmation"
64      */

65     public int getConfirmation() {
66         return confirmation;
67     }
68
69     /**
70      *
71      * @uml.property name="recipient"
72      */

73     public void setRecipient(String JavaDoc rec) {
74         recipient = rec;
75     }
76
77     /**
78      *
79      * @uml.property name="dateScope"
80      */

81     public void setDateScope(int scope) {
82         dateScope = scope;
83     }
84
85     /**
86      *
87      * @uml.property name="prio"
88      */

89     public void setPrio(int pri) {
90         prio = pri;
91     }
92
93     /**
94      *
95      * @uml.property name="confirmation"
96      */

97     public void setConfirmation(int conf) {
98         confirmation = conf;
99     }
100
101  
102 }
103
Popular Tags