org.jamon.html.Anchor Maven / Gradle / Ivy
// Autogenerated Jamon proxy
// /home/ian/svn/jamon/jamon/jamon-stdlib/target/checkout/src/main/templates/org/jamon/html/Anchor.jamon
package org.jamon.html;
@org.jamon.annotations.Template(
signature = "5F1AEC9B90EFCFA84DC975A732E6070F",
requiredArguments = {
@org.jamon.annotations.Argument(name = "path", type = "String"),
@org.jamon.annotations.Argument(name = "parameters", type = "org.jamon.render.html.CgiParameters")},
fragmentArguments = {
@org.jamon.annotations.Fragment(
name = "content")})
// 20, 1
@Deprecated @SuppressWarnings("deprecation")
public class Anchor
extends org.jamon.AbstractTemplateProxy
{
public Anchor(org.jamon.TemplateManager p_manager)
{
super(p_manager);
}
protected Anchor(String p_path)
{
super(p_path);
}
public Anchor()
{
super("/org/jamon/html/Anchor");
}
public interface Intf
extends org.jamon.AbstractTemplateProxy.Intf
{
public static interface Fragment_content
{
void renderNoFlush(final java.io.Writer jamonWriter)
throws java.io.IOException;
org.jamon.Renderer makeRenderer();
}
void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
}
public static class ImplData
extends org.jamon.AbstractTemplateProxy.ImplData
{
// 23, 3
public void setPath(String path)
{
// 23, 3
m_path = path;
}
public String getPath()
{
return m_path;
}
private String m_path;
// 24, 3
public void setParameters(org.jamon.render.html.CgiParameters parameters)
{
// 24, 3
m_parameters = parameters;
}
public org.jamon.render.html.CgiParameters getParameters()
{
return m_parameters;
}
private org.jamon.render.html.CgiParameters m_parameters;
// 27, 1
public void setContent(org.jamon.html.Anchor.Fragment_content content)
{
// 27, 1
m_content = content;
}
public org.jamon.html.Anchor.Fragment_content getContent()
{
return m_content;
}
private org.jamon.html.Anchor.Fragment_content m_content;
}
@Override
protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
{
return new ImplData();
}
@Override public ImplData getImplData()
{
return (ImplData) super.getImplData();
}
public static interface Fragment_content
extends Intf.Fragment_content
{
}
@Override
public org.jamon.AbstractTemplateImpl constructImpl(Class extends org.jamon.AbstractTemplateImpl> p_class){
try
{
return p_class
.getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
.newInstance(new Object [] { getTemplateManager(), getImplData()});
}
catch (RuntimeException e)
{
throw e;
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}
@Override
protected org.jamon.AbstractTemplateImpl constructImpl(){
return new AnchorImpl(getTemplateManager(), getImplData());
}
public org.jamon.Renderer makeRenderer(final String path, final org.jamon.render.html.CgiParameters parameters, final org.jamon.html.Anchor.Fragment_content content)
{
return new org.jamon.AbstractRenderer() {
@Override
public void renderTo(final java.io.Writer jamonWriter)
throws java.io.IOException
{
render(jamonWriter, path, parameters, content);
}
};
}
public void render(final java.io.Writer jamonWriter, final String path, final org.jamon.render.html.CgiParameters parameters, final org.jamon.html.Anchor.Fragment_content content)
throws java.io.IOException
{
renderNoFlush(jamonWriter, path, parameters, content);
jamonWriter.flush();
}
public void renderNoFlush(final java.io.Writer jamonWriter, final String path, final org.jamon.render.html.CgiParameters parameters, final org.jamon.html.Anchor.Fragment_content content)
throws java.io.IOException
{
ImplData implData = getImplData();
implData.setPath(path);
implData.setParameters(parameters);
implData.setContent(content);
Intf instance = (Intf) getTemplateManager().constructImpl(this);
instance.renderNoFlush(jamonWriter);
reset();
}
}