net.anotheria.anosite.gen.assitedata.data.MediaLinkBuilder Maven / Gradle / Ivy
/**
********************************************************************************
*** MediaLinkBuilder.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 MediaLinkBuilder implements Builder{
protected String name;
protected String href;
protected String type;
protected int media;
protected int rel;
protected int rev;
protected String charset;
protected String hreflang;
protected String browserFiltering;
protected String onload;
protected List guards;
protected String file;
/**
* Sets the value of the name attribute.
*/
public MediaLinkBuilder name(String aValue){
name = aValue;
return this;
}
/**
* Sets the value of the href attribute.
*/
public MediaLinkBuilder href(String aValue){
href = aValue;
return this;
}
/**
* Sets the value of the type attribute.
*/
public MediaLinkBuilder type(String aValue){
type = aValue;
return this;
}
/**
* Sets the value of the media attribute.
*/
public MediaLinkBuilder media(int aValue){
media = aValue;
return this;
}
/**
* Sets the value of the rel attribute.
*/
public MediaLinkBuilder rel(int aValue){
rel = aValue;
return this;
}
/**
* Sets the value of the rev attribute.
*/
public MediaLinkBuilder rev(int aValue){
rev = aValue;
return this;
}
/**
* Sets the value of the charset attribute.
*/
public MediaLinkBuilder charset(String aValue){
charset = aValue;
return this;
}
/**
* Sets the value of the hreflang attribute.
*/
public MediaLinkBuilder hreflang(String aValue){
hreflang = aValue;
return this;
}
/**
* Sets the value of the browserFiltering attribute.
*/
public MediaLinkBuilder browserFiltering(String aValue){
browserFiltering = aValue;
return this;
}
/**
* Sets the value of the onload attribute.
*/
public MediaLinkBuilder onload(String aValue){
onload = aValue;
return this;
}
/**
* Sets the value of the guards attribute.
*/
public MediaLinkBuilder guards(List aValue){
guards = aValue;
return this;
}
/**
* Sets the value of the file attribute.
*/
public MediaLinkBuilder file(String aValue){
file = aValue;
return this;
}
public MediaLink build(){
return MediaLinkFactory.createMediaLink(this);
}
}