All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.anosite.gen.asaction.bean.ActionDefListItemBean Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
/**
 ********************************************************************************
 *** ActionDefListItemBean.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.asaction.bean;

import net.anotheria.util.sorter.IComparable;
import net.anotheria.util.BasicComparable;

/**
 * Generated by class net.anotheria.asg.generator.view.action.ModuleBeanGenerator
 */
public class ActionDefListItemBean implements IComparable{

	// Generated by: class net.anotheria.asg.generator.view.action.ModuleBeanGenerator.generateListItemBean

	private String id;
	private String name;
	private String editLink;
	private String duplicateLink;
	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 setEditLink(String editLink ){
		this.editLink = editLink;
	}

	public String getEditLink(){
		return editLink;
	}

	public void setDuplicateLink(String duplicateLink ){
		this.duplicateLink = duplicateLink;
	}

	public String getDuplicateLink(){
		return duplicateLink;
	}

	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){
		ActionDefListItemBean anotherBean = (ActionDefListItemBean) anotherComparable;
		switch(method){
			case ActionDefListItemBeanSortType.SORT_BY_ID:
				return BasicComparable.compareString(id, anotherBean.id);
			case ActionDefListItemBeanSortType.SORT_BY_NAME:
				return BasicComparable.compareString(name, anotherBean.name);
			default:
				throw new RuntimeException("Sort method "+method+" is not supported.");
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy