1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.sys;
17
18
19
20
21
22 public class Message {
23 public static final int TYPE_FATAL = 1;
24 public static final int TYPE_WARNING = 0;
25
26 private String message;
27 private int type;
28
29 public Message(String m, int t, Object... args) {
30 message = String.format(m, args);
31 type = t;
32 }
33
34 public Message(String m, int t) {
35 message = m;
36 type = t;
37 }
38
39 public String toString() {
40 return message;
41 }
42
43 public String getMessage() {
44 return message;
45 }
46
47 public void setMessage(String message) {
48 this.message = message;
49 }
50
51 public int getType() {
52 return type;
53 }
54
55 public void setType(int type) {
56 this.type = type;
57 }
58 }