Coverage Report - org.kuali.rice.core.mail.EmailContent
 
Classes in this File Line Coverage Branch Coverage Complexity
EmailContent
0%
0/19
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2007 The Kuali Foundation
 3  
  * 
 4  
  * 
 5  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 6  
  * you may not use this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  * 
 9  
  * http://www.opensource.org/licenses/ecl2.php
 10  
  * 
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 
 18  
 package org.kuali.rice.core.mail;
 19  
 
 20  
 /**
 21  
  * Class representing customizable content of an email message
 22  
  * TODO: supercede this with Spring framework and/or JavaMail mail classes
 23  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 24  
  */
 25  
 public class EmailContent {
 26  
     private String subject;
 27  
     private String body;
 28  
     private boolean html;
 29  
 
 30  0
     public EmailContent() {}
 31  
 
 32  0
     public EmailContent(String subject, String body) {
 33  0
         this.subject = subject;
 34  0
         this.body = body;
 35  0
     }
 36  
 
 37  0
     public EmailContent(String subject, String body, boolean html) {
 38  0
         this.subject = subject;
 39  0
         this.body = body;
 40  0
         this.html = html;
 41  0
     }
 42  
 
 43  
     public void setSubject(String subject) {
 44  0
         this.subject = subject;
 45  0
     }
 46  
 
 47  
     public String getSubject() {
 48  0
         return subject;
 49  
     }
 50  
 
 51  
     public void setBody(String body, boolean html) {
 52  0
         this.body = body;
 53  0
         this.html = html;
 54  0
     }
 55  
 
 56  
     public String getBody() {
 57  0
         return body;
 58  
     }
 59  
 
 60  
     public boolean isHtml() {
 61  0
         return html;
 62  
     }
 63  
 
 64  
     public String toString() {
 65  0
         return "[EmailContent: subject=" + subject + ", body=" + body + ", html=" + html + "]";
 66  
     }
 67  
 }