net.anotheria.anosite.gen.anoaccessconfiguration.data.ConstraintBuilder Maven / Gradle / Ivy
/**
********************************************************************************
*** ConstraintBuilder.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.anoaccessconfiguration.data;
import net.anotheria.asg.data.Builder;
import java.util.List;
public class ConstraintBuilder implements Builder{
protected String name;
protected String className;
protected List contextInitializers;
protected String parameter1;
protected String parameter2;
protected String parameter3;
protected String parameter4;
protected String parameter5;
protected String description;
/**
* Sets the value of the name attribute.
*/
public ConstraintBuilder name(String aValue){
name = aValue;
return this;
}
/**
* Sets the value of the className attribute.
*/
public ConstraintBuilder className(String aValue){
className = aValue;
return this;
}
/**
* Sets the value of the contextInitializers attribute.
*/
public ConstraintBuilder contextInitializers(List aValue){
contextInitializers = aValue;
return this;
}
/**
* Sets the value of the parameter1 attribute.
*/
public ConstraintBuilder parameter1(String aValue){
parameter1 = aValue;
return this;
}
/**
* Sets the value of the parameter2 attribute.
*/
public ConstraintBuilder parameter2(String aValue){
parameter2 = aValue;
return this;
}
/**
* Sets the value of the parameter3 attribute.
*/
public ConstraintBuilder parameter3(String aValue){
parameter3 = aValue;
return this;
}
/**
* Sets the value of the parameter4 attribute.
*/
public ConstraintBuilder parameter4(String aValue){
parameter4 = aValue;
return this;
}
/**
* Sets the value of the parameter5 attribute.
*/
public ConstraintBuilder parameter5(String aValue){
parameter5 = aValue;
return this;
}
/**
* Sets the value of the description attribute.
*/
public ConstraintBuilder description(String aValue){
description = aValue;
return this;
}
public Constraint build(){
return ConstraintFactory.createConstraint(this);
}
}