net.anotheria.anosite.gen.asresourcedata.data.MailTemplateBuilder Maven / Gradle / Ivy
/**
********************************************************************************
*** MailTemplateBuilder.java ***
*** generated by AnoSiteGenerator (ASG), Version: 2.6.3 ***
*** Copyright (C) 2005 - 2010 Anotheria.net, www.anotheria.net ***
*** All Rights Reserved. ***
********************************************************************************
*** Don't edit this code, if you aren't sure ***
*** that you do exactly know what you are doing! ***
*** It's better to invest time in the generator, as into the generated code. ***
********************************************************************************
*/
package net.anotheria.anosite.gen.asresourcedata.data;
import net.anotheria.asg.data.Builder;
import java.util.List;
public class MailTemplateBuilder implements Builder{
protected String name;
protected String sender;
protected String senderName;
protected String subject;
protected String message;
protected String plainMessage;
protected List localizations;
/**
* Sets the value of the name attribute.
*/
public MailTemplateBuilder name(String aValue){
name = aValue;
return this;
}
/**
* Sets the value of the sender attribute.
*/
public MailTemplateBuilder sender(String aValue){
sender = aValue;
return this;
}
/**
* Sets the value of the senderName attribute.
*/
public MailTemplateBuilder senderName(String aValue){
senderName = aValue;
return this;
}
/**
* Sets the value of the subject attribute.
*/
public MailTemplateBuilder subject(String aValue){
subject = aValue;
return this;
}
/**
* Sets the value of the message attribute.
*/
public MailTemplateBuilder message(String aValue){
message = aValue;
return this;
}
/**
* Sets the value of the plainMessage attribute.
*/
public MailTemplateBuilder plainMessage(String aValue){
plainMessage = aValue;
return this;
}
/**
* Sets the value of the localizations attribute.
*/
public MailTemplateBuilder localizations(List aValue){
localizations = aValue;
return this;
}
public MailTemplate build(){
return MailTemplateFactory.createMailTemplate(this);
}
}