net.anotheria.asg.generator.view.jsp.LinksToMePageJspGenerator Maven / Gradle / Ivy
package net.anotheria.asg.generator.view.jsp;
import java.util.List;
import net.anotheria.asg.generator.GeneratedJSPFile;
import net.anotheria.asg.generator.GeneratorDataRegistry;
import net.anotheria.asg.generator.util.DirectLink;
import net.anotheria.asg.generator.view.meta.MetaModuleSection;
import net.anotheria.asg.generator.view.meta.MetaView;
/**
* LinksToMePageJspGenerator class.
*
* @author another
* @version $Id: $Id
*/
public class LinksToMePageJspGenerator extends AbstractJSPGenerator{
/**
* generate.
*
* @param section a {@link net.anotheria.asg.generator.view.meta.MetaModuleSection} object.
* @param view a {@link net.anotheria.asg.generator.view.meta.MetaView} object.
* @return a {@link net.anotheria.asg.generator.GeneratedJSPFile} object.
*/
public GeneratedJSPFile generate(MetaModuleSection section, MetaView view){
GeneratedJSPFile jsp = new GeneratedJSPFile();
startNewJob(jsp);
jsp.setName(getLinksToMePageName(section.getDocument()));
jsp.setPackage(getContext().getJspPackageName(section.getModule()));
resetIdent();
append(getBaseJSPHeader());
appendString("");
appendString("");
increaseIdent();
appendString("");
increaseIdent();
appendString("Direct links to the "+section.getDocument().getName()+"[] ");
generatePragmas(view);
appendString("");
decreaseIdent();
appendString("");
appendString("");
increaseIdent();
appendString("");
appendString("
");
appendString("
");
appendString(" ");
appendString("");
decreaseIdent();
appendString("");
decreaseIdent();
decreaseIdent();
appendString("");
appendString("");
append(getBaseJSPFooter());
return jsp;
}
}