1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jdiagnose;
17
18 /***
19 * Default implemenation of the DiagnosticMessage.
20 *
21 * @author jmccrindle
22 */
23 public class DefaultDiagnosticMessage implements DiagnosticMessage {
24
25 private String summary;
26 private String body;
27
28 /***
29 * @param summary
30 * @param body
31 */
32 public DefaultDiagnosticMessage(String summary, String body) {
33 super();
34 this.summary = summary;
35 this.body = body;
36 }
37
38 /***
39 * @param summary
40 * @param body
41 */
42 public DefaultDiagnosticMessage(String summary) {
43 super();
44 this.summary = summary;
45 }
46
47 /***
48 * @param message
49 */
50 public DefaultDiagnosticMessage(DiagnosticMessage message) {
51 this.summary = message.getSummary();
52 this.body = message.getBody();
53 }
54
55
56
57
58 public String getSummary() {
59 return summary;
60 }
61
62
63
64
65 public String getBody() {
66 return body;
67 }
68
69 public void setBody(String body) {
70 this.body = body;
71 }
72
73 public void setSummary(String summary) {
74 this.summary = summary;
75 }
76 }