net.anotheria.anosite.gen.aswebdata.data.BoxSortType Maven / Gradle / Ivy
/**
********************************************************************************
*** BoxSortType.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.aswebdata.data;
import net.anotheria.util.sorter.SortType;
public class BoxSortType extends SortType{
public static final int SORT_BY_ID = 1;
public static final int SORT_BY_NAME = 2;
public static final int SORT_BY_CONTENT = 3;
public static final int SORT_BY_CSSCLASS = 4;
public static final int SORT_BY_PARAMETER1 = 5;
public static final int SORT_BY_PARAMETER2 = 6;
public static final int SORT_BY_PARAMETER3 = 7;
public static final int SORT_BY_PARAMETER4 = 8;
public static final int SORT_BY_PARAMETER5 = 9;
public static final int SORT_BY_PARAMETER6 = 10;
public static final int SORT_BY_PARAMETER7 = 11;
public static final int SORT_BY_PARAMETER8 = 12;
public static final int SORT_BY_PARAMETER9 = 13;
public static final int SORT_BY_PARAMETER10 = 14;
public static final int SORT_BY_TYPE = 15;
public static final int SORT_BY_HANDLER = 16;
public static final int SORT_BY_ACCESSOPERATION = 17;
public static final int SORT_BY_FEATURE = 18;
public static final int SORT_BY_DEFAULT = SORT_BY_ID;
public BoxSortType(){
super(SORT_BY_DEFAULT);
}
public BoxSortType(int method){
super(method);
}
public BoxSortType(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 ("content".equals(name))
return SORT_BY_CONTENT;
if ("cssClass".equals(name))
return SORT_BY_CSSCLASS;
if ("parameter1".equals(name))
return SORT_BY_PARAMETER1;
if ("parameter2".equals(name))
return SORT_BY_PARAMETER2;
if ("parameter3".equals(name))
return SORT_BY_PARAMETER3;
if ("parameter4".equals(name))
return SORT_BY_PARAMETER4;
if ("parameter5".equals(name))
return SORT_BY_PARAMETER5;
if ("parameter6".equals(name))
return SORT_BY_PARAMETER6;
if ("parameter7".equals(name))
return SORT_BY_PARAMETER7;
if ("parameter8".equals(name))
return SORT_BY_PARAMETER8;
if ("parameter9".equals(name))
return SORT_BY_PARAMETER9;
if ("parameter10".equals(name))
return SORT_BY_PARAMETER10;
if ("type".equals(name))
return SORT_BY_TYPE;
if ("handler".equals(name))
return SORT_BY_HANDLER;
if ("accessOperation".equals(name))
return SORT_BY_ACCESSOPERATION;
if ("feature".equals(name))
return SORT_BY_FEATURE;
throw new RuntimeException("Unknown sort type name: "+name);
}
}