net.anotheria.anosite.gen.asfederateddata.bean.GuardDefListItemBean Maven / Gradle / Ivy
/**
********************************************************************************
*** GuardDefListItemBean.java ***
*** generated by AnoSiteGenerator (ASG), Version: 3.2.2 ***
*** Copyright (C) 2005 - 2023 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.asfederateddata.bean;
import net.anotheria.util.sorter.IComparable;
import net.anotheria.util.BasicComparable;
/**
* Generated by class net.anotheria.asg.generator.view.action.ModuleBeanGenerator
*/
public class GuardDefListItemBean implements IComparable{
// Generated by: class net.anotheria.asg.generator.view.action.ModuleBeanGenerator.generateListItemBean
private String id;
private String name;
private String clazz;
private String parameter1;
private String parameter2;
private String parameter3;
private String parameter4;
private String parameter5;
private String description;
private String deleteWithConfirmationLink;
private String plainId;
private String documentLastUpdateTimestamp;
public void setId(String id ){
this.id = id;
}
public String getId(){
return id;
}
public void setName(String name ){
this.name = name;
}
public String getName(){
return name;
}
public void setClazz(String clazz ){
this.clazz = clazz;
}
public String getClazz(){
return clazz;
}
public void setParameter1(String parameter1 ){
this.parameter1 = parameter1;
}
public String getParameter1(){
return parameter1;
}
public void setParameter2(String parameter2 ){
this.parameter2 = parameter2;
}
public String getParameter2(){
return parameter2;
}
public void setParameter3(String parameter3 ){
this.parameter3 = parameter3;
}
public String getParameter3(){
return parameter3;
}
public void setParameter4(String parameter4 ){
this.parameter4 = parameter4;
}
public String getParameter4(){
return parameter4;
}
public void setParameter5(String parameter5 ){
this.parameter5 = parameter5;
}
public String getParameter5(){
return parameter5;
}
public void setDescription(String description ){
this.description = description;
}
public String getDescription(){
return description;
}
public void setDeleteWithConfirmationLink(String deleteWithConfirmationLink ){
this.deleteWithConfirmationLink = deleteWithConfirmationLink;
}
public String getDeleteWithConfirmationLink(){
return deleteWithConfirmationLink;
}
public void setPlainId(String plainId ){
this.plainId = plainId;
}
public String getPlainId(){
return plainId;
}
public void setDocumentLastUpdateTimestamp(String documentLastUpdateTimestamp ){
this.documentLastUpdateTimestamp = documentLastUpdateTimestamp;
}
public String getDocumentLastUpdateTimestamp(){
return documentLastUpdateTimestamp;
}
public int compareTo(IComparable anotherComparable, int method){
GuardDefListItemBean anotherBean = (GuardDefListItemBean) anotherComparable;
switch(method){
case GuardDefListItemBeanSortType.SORT_BY_ID:
return BasicComparable.compareString(id, anotherBean.id);
case GuardDefListItemBeanSortType.SORT_BY_NAME:
return BasicComparable.compareString(name, anotherBean.name);
case GuardDefListItemBeanSortType.SORT_BY_CLAZZ:
return BasicComparable.compareString(clazz, anotherBean.clazz);
default:
throw new RuntimeException("Sort method "+method+" is not supported.");
}
}
}