net.anotheria.anosite.gen.assitedata.data.NaviItemBuilder Maven / Gradle / Ivy
/**
********************************************************************************
*** NaviItemBuilder.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.assitedata.data;
import net.anotheria.asg.data.Builder;
import java.util.List;
public class NaviItemBuilder implements Builder{
protected String name;
protected String title;
protected String icon;
protected String externalLink;
protected boolean popup;
protected String className;
protected List subNavi;
protected List guards;
protected String internalLink;
protected String pageAlias;
protected String accessOperation;
/**
* Sets the value of the name attribute.
*/
public NaviItemBuilder name(String aValue){
name = aValue;
return this;
}
/**
* Sets the value of the title attribute.
*/
public NaviItemBuilder title(String aValue){
title = aValue;
return this;
}
/**
* Sets the value of the icon attribute.
*/
public NaviItemBuilder icon(String aValue){
icon = aValue;
return this;
}
/**
* Sets the value of the externalLink attribute.
*/
public NaviItemBuilder externalLink(String aValue){
externalLink = aValue;
return this;
}
/**
* Sets the value of the popup attribute.
*/
public NaviItemBuilder popup(boolean aValue){
popup = aValue;
return this;
}
/**
* Sets the value of the className attribute.
*/
public NaviItemBuilder className(String aValue){
className = aValue;
return this;
}
/**
* Sets the value of the subNavi attribute.
*/
public NaviItemBuilder subNavi(List aValue){
subNavi = aValue;
return this;
}
/**
* Sets the value of the guards attribute.
*/
public NaviItemBuilder guards(List aValue){
guards = aValue;
return this;
}
/**
* Sets the value of the internalLink attribute.
*/
public NaviItemBuilder internalLink(String aValue){
internalLink = aValue;
return this;
}
/**
* Sets the value of the pageAlias attribute.
*/
public NaviItemBuilder pageAlias(String aValue){
pageAlias = aValue;
return this;
}
/**
* Sets the value of the accessOperation attribute.
*/
public NaviItemBuilder accessOperation(String aValue){
accessOperation = aValue;
return this;
}
public NaviItem build(){
return NaviItemFactory.createNaviItem(this);
}
}