net.anotheria.asg.generator.view.AbstractMafActionGenerator Maven / Gradle / Ivy
package net.anotheria.asg.generator.view;
import net.anotheria.asg.generator.AbstractGenerator;
import net.anotheria.asg.generator.GeneratorDataRegistry;
import net.anotheria.asg.generator.meta.MetaModule;
import net.anotheria.util.StringUtils;
public class AbstractMafActionGenerator extends AbstractGenerator{
/**
* Returns the base action name for the application.
* @param context
* @return
*/
protected static String getBaseMafActionName(){
return "Base"+StringUtils.capitalize(GeneratorDataRegistry.getInstance().getContext().getApplicationName())+"MafAction";
}
protected static String getSharedActionPackageName(){
return GeneratorDataRegistry.getInstance().getContext().getPackageName(MetaModule.SHARED)+".action";
}
protected static String getBaseActionClassName(){
return getSharedActionPackageName() + "." + getBaseMafActionName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy