All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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()+"[<ano:write name=\"objectId\"/>]"); generatePragmas(view); appendString(""); decreaseIdent(); appendString(""); appendString(""); increaseIdent(); appendString(""); appendString(""); increaseIdent(); appendString(""); increaseIdent(); appendString(""); decreaseIdent(); appendString(""); appendString(""); increaseIdent(); appendString(""); increaseIdent(); String docDescriptionStatement = "Type: "; docDescriptionStatement += ", Id: ")+" >"; docDescriptionStatement += ", Name: ")+" >"; docDescriptionStatement += ", in ."; appendString(""); decreaseIdent(); appendString(""); decreaseIdent(); appendString(""); appendString("
Direct links to the "+section.getDocument().getName()+"[]
"+docDescriptionStatement+"
"); appendString("
"); appendString("
"); appendString("
"); appendString(""); decreaseIdent(); appendString(""); decreaseIdent(); decreaseIdent(); appendString(""); appendString(""); append(getBaseJSPFooter()); return jsp; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy