package com.qikemi.packages.email.bean;

/**
 * E-mail bean
 * 
 * @description 本程序用于来自谢先斌毕业论文，如有使用请联系作 者，注明出处。
 * @URL 代码地址：http://github.com/openRDF/rdf_fronts
 * @dateTime 2014-3-22 下午6:47:59
 * @author XieXianbin
 * @email a.b@hotmail.com
 */

public class MailBean {
	
	// 邮件服务是否身份验证
	private boolean validate = true;
	// 邮件接收者的地址
	private String toAddress;
	// 邮件主题
	private String subject;
	// 邮件的文本内容
	private String content;
	// 邮件附件的文件名
	private String[] attachFileNames;
	
	// default 
	public MailBean() {}
	
	// sample 
	public MailBean(String toAddress, String subject, String content) {
		super();
		this.toAddress = toAddress;
		this.subject = subject;
		this.content = content;
	}
	
	public MailBean(String toAddress, String subject, String content,
			String[] attachFileNames) {
		super();
		this.toAddress = toAddress;
		this.subject = subject;
		this.content = content;
		this.attachFileNames = attachFileNames;
	}
	
	// full
	public MailBean(boolean validate, String toAddress,
			String subject, String content, String[] attachFileNames) {
		super();
		this.validate = validate;
		this.toAddress = toAddress;
		this.subject = subject;
		this.content = content;
		this.attachFileNames = attachFileNames;
	}

	public boolean isValidate() {
		return validate;
	}

	public void setValidate(boolean validate) {
		this.validate = validate;
	}

	public String getToAddress() {
		return toAddress;
	}

	public void setToAddress(String toAddress) {
		this.toAddress = toAddress;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String[] getAttachFileNames() {
		return attachFileNames;
	}

	public void setAttachFileNames(String[] attachFileNames) {
		this.attachFileNames = attachFileNames;
	}

}
@@ -36,16 +36,42 @@
 ean;%0D%0A%0D%0A
+import java.util.List;%0D%0A%0D%0A
 /**%0D%0A * 
@@ -498,24 +498,36 @@
 private 
-String%5B%5D
+List%3CAttachFileBean%3E
  attachF
@@ -525,29 +525,28 @@
 %3E attachFile
-Names
+List
 ;%0D%0A%09%0D%0A%09// de
@@ -775,32 +775,50 @@
 public MailBean(
+boolean validate, 
 String toAddress
@@ -826,33 +826,37 @@
  String subject,
- 
+%0D%0A%09%09%09
 String content,%0D
@@ -857,38 +857,252 @@
 tent
-,%0D%0A%09%09%09String%5B%5D attachFileNames
+) %7B%0D%0A%09%09super();%0D%0A%09%09this.validate = validate;%0D%0A%09%09this.toAddress = toAddress;%0D%0A%09%09this.subject = subject;%0D%0A%09%09this.content = content;%0D%0A%09%7D%0D%0A%09%0D%0A%09public MailBean(String toAddress, String subject,%0D%0A%09%09%09String content, List%3CAttachFileBean%3E attachFileList
 ) %7B%0D
@@ -1208,37 +1208,36 @@
 %09this.attachFile
-Names
+List
  = attachFileNam
@@ -1237,21 +1237,19 @@
 File
-Names
+List
 ;%0D%0A%09%7D%0D%0A
-%09
 %0D%0A%09/
@@ -1308,21 +1308,17 @@
 Address,
-%0D%0A%09%09%09
+ 
 String s
@@ -1316,33 +1316,37 @@
  String subject,
- 
+%0D%0A%09%09%09
 String content, 
@@ -1345,24 +1345,36 @@
 ontent, 
-String%5B%5D
+List%3CAttachFileBean%3E
  attachF
@@ -1372,29 +1372,28 @@
 %3E attachFile
-Names
+List
 ) %7B%0D%0A%09%09super
@@ -1520,37 +1520,36 @@
 %09this.attachFile
-Names
+List
  = attachFileNam
@@ -1537,37 +1537,36 @@
 ist = attachFile
-Names
+List
 ;%0D%0A%09%7D%0D%0A%0D%0A%09public
@@ -2113,24 +2113,36 @@
 %09public 
-String%5B%5D
+List%3CAttachFileBean%3E
  getAtta
@@ -2147,21 +2147,20 @@
 tachFile
-Names
+List
 () %7B%0D%0A%09%09
@@ -2168,37 +2168,36 @@
 eturn attachFile
-Names
+List
 ;%0D%0A%09%7D%0D%0A%0D%0A%09public
@@ -2219,22 +2219,33 @@
 File
-Names(String%5B%5D
+List(List%3CAttachFileBean%3E
  att
@@ -2251,21 +2251,20 @@
 tachFile
-Names
+List
 ) %7B%0D%0A%09%09t
@@ -2277,21 +2277,20 @@
 tachFile
-Names
+List
  = attac
@@ -2298,13 +2298,12 @@
 File
-Names
+List
 ;%0D%0A%09

change mail bean attachFile