net.anotheria.anosite.gen.shared.data.ActionCommandDefUtils Maven / Gradle / Ivy
/**
********************************************************************************
*** ActionCommandDefUtils.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.shared.data;
import java.util.Arrays;
import java.util.List;
public class ActionCommandDefUtils implements IActionCommandDefDefinition{
public static List getActionCommandDefList(){
return Arrays.asList(ACTIONCOMMANDDEF_NAMES);
}
public static String getName(int value){
switch(value){
case Redirect:
return Redirect_NAME;
case Forward:
return Forward_NAME;
case none:
return none_NAME;
default:
return "Unknown: "+value;
}
}
public static int getValue(String name){
if( Redirect_NAME.equals(name))
return Redirect;
if( Forward_NAME.equals(name))
return Forward;
if( none_NAME.equals(name))
return none;
return 0;
}
}