net.anotheria.anosite.gen.asblogdata.data.PostBuilder Maven / Gradle / Ivy
/**
********************************************************************************
*** PostBuilder.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.asblogdata.data;
import net.anotheria.asg.data.Builder;
import java.util.List;
public class PostBuilder implements Builder{
protected long created;
protected long updated;
protected String name;
protected String blogger;
protected String content;
protected List comments;
protected List tags;
/**
* Sets the value of the created attribute.
*/
public PostBuilder created(long aValue){
created = aValue;
return this;
}
/**
* Sets the value of the updated attribute.
*/
public PostBuilder updated(long aValue){
updated = aValue;
return this;
}
/**
* Sets the value of the name attribute.
*/
public PostBuilder name(String aValue){
name = aValue;
return this;
}
/**
* Sets the value of the blogger attribute.
*/
public PostBuilder blogger(String aValue){
blogger = aValue;
return this;
}
/**
* Sets the value of the content attribute.
*/
public PostBuilder content(String aValue){
content = aValue;
return this;
}
/**
* Sets the value of the comments attribute.
*/
public PostBuilder comments(List aValue){
comments = aValue;
return this;
}
/**
* Sets the value of the tags attribute.
*/
public PostBuilder tags(List aValue){
tags = aValue;
return this;
}
public Post build(){
return PostFactory.createPost(this);
}
}