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

net.anotheria.anosite.gen.aswizarddata.data.WizardDefSortType Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
/**
 ********************************************************************************
 *** WizardDefSortType.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.aswizarddata.data;

import net.anotheria.util.sorter.SortType;

public class WizardDefSortType extends SortType{

	public static final int SORT_BY_ID = 1;
	public static final int SORT_BY_NAME = 2;
	public static final int SORT_BY_WIZARDCANCELREDIRECTURL = 3;
	public static final int SORT_BY_WIZARDFINISHREDIRECTURL = 4;
	public static final int SORT_BY_HANDLER = 5;
	public static final int SORT_BY_ACCESSOPERATION = 6;
	public static final int SORT_BY_DEFAULT = SORT_BY_ID;

	public WizardDefSortType(){
		super(SORT_BY_DEFAULT);
	}

	public WizardDefSortType(int method){
		super(method);
	}

	public WizardDefSortType(int method, boolean order){
		super(method, order);
	}

	public static int name2method(String name){
		if ("id".equals(name))
			return SORT_BY_ID;
		if ("name".equals(name))
			return SORT_BY_NAME;
		if ("wizardCancelRedirectUrl".equals(name))
			return SORT_BY_WIZARDCANCELREDIRECTURL;
		if ("wizardFinishRedirectUrl".equals(name))
			return SORT_BY_WIZARDFINISHREDIRECTURL;
		if ("handler".equals(name))
			return SORT_BY_HANDLER;
		if ("accessOperation".equals(name))
			return SORT_BY_ACCESSOPERATION;
		throw new RuntimeException("Unknown sort type name: "+name);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy