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;
/**
* AbstractMafActionGenerator class.
*
* @author another
* @version $Id: $Id
*/
public class AbstractMafActionGenerator extends AbstractGenerator{
/**
* Returns the base action name for the application.
*
* @return a {@link java.lang.String} object.
*/
protected static String getBaseMafActionName(){
return "Base"+StringUtils.capitalize(GeneratorDataRegistry.getInstance().getContext().getApplicationName())+"MafAction";
}
/**
* getSharedActionPackageName.
*
* @return a {@link java.lang.String} object.
*/
protected static String getSharedActionPackageName(){
return GeneratorDataRegistry.getInstance().getContext().getPackageName(MetaModule.SHARED)+".action";
}
/**
* getBaseActionClassName.
*
* @return a {@link java.lang.String} object.
*/
protected static String getBaseActionClassName(){
return getSharedActionPackageName() + "." + getBaseMafActionName();
}
}