1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.kuali.rice.kew.mail;
19
20
21
22
23
24
25 public class EmailContent {
26 private String subject;
27 private String body;
28 private boolean html;
29
30 public EmailContent() {}
31
32 public EmailContent(String subject, String body) {
33 this.subject = subject;
34 this.body = body;
35 }
36
37 public EmailContent(String subject, String body, boolean html) {
38 this.subject = subject;
39 this.body = body;
40 this.html = html;
41 }
42
43 public void setSubject(String subject) {
44 this.subject = subject;
45 }
46
47 public String getSubject() {
48 return subject;
49 }
50
51 public void setBody(String body, boolean html) {
52 this.body = body;
53 this.html = html;
54 }
55
56 public String getBody() {
57 return body;
58 }
59
60 public boolean isHtml() {
61 return html;
62 }
63
64 public String toString() {
65 return "[EmailContent: subject=" + subject + ", body=" + body + ", html=" + html + "]";
66 }
67 }