Mail.java
上传用户:hensond
上传日期:2021-12-27
资源大小:817k
文件大小:1k
- package com.company.section1;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- * 需要发送出去的邮件账单
- */
- public class Mail implements Cloneable{
- //收件人
- private String receiver;
- //邮件名称
- private String subject;
-
- //称谓
- private String appellation;
-
- //邮件内容
- private String contxt;
-
- //邮件的尾部,一般都是加上“XXX版权所有”等信息
- private String tail;
-
- //构造函数
- public Mail(AdvTemplate advTemplate){
- this.contxt = advTemplate.getAdvContext();
- this.subject = advTemplate.getAdvSubject();
- }
-
- @Override
- public Mail clone(){
- Mail mail =null;
- try {
- mail = (Mail)super.clone();
- } catch (CloneNotSupportedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return mail;
- }
-
- //以下为getter/setter方法
- public String getReceiver() {
- return receiver;
- }
- public void setReceiver(String receiver) {
- this.receiver = receiver;
- }
-
- public String getSubject() {
- return subject;
- }
- public void setSubject(String subject) {
- this.subject = subject;
- }
- public String getAppellation() {
- return appellation;
- }
- public void setAppellation(String appellation) {
- this.appellation = appellation;
- }
- public String getContxt() {
- return contxt;
- }
- public void setContxt(String contxt) {
- this.contxt = contxt;
- }
- public String getTail() {
- return tail;
- }
- public void setTail(String tail) {
- this.tail = tail;
- }
-
- }