net.sf.doolin.template.velocity
Class VelocityTemplate

java.lang.Object
  extended by net.sf.doolin.template.support.AbstractTemplate
      extended by net.sf.doolin.template.velocity.VelocityTemplate
All Implemented Interfaces:
Template

public class VelocityTemplate
extends AbstractTemplate

Velocity template

Author:
Damien Coraboeuf

Constructor Summary
VelocityTemplate(org.apache.velocity.Template aTemplate)
          Constructor
 
Method Summary
 void generate(Writer writer, Map<String,Object> context)
          Generates the template to an output stream using a given context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityTemplate

public VelocityTemplate(org.apache.velocity.Template aTemplate)
Constructor

Parameters:
aTemplate - Velocity template which is encapsulated
Method Detail

generate

public void generate(Writer writer,
                     Map<String,Object> context)
Description copied from interface: Template
Generates the template to an output stream using a given context.

Parameters:
writer - Writer to generate the template in.
context - Template context, containing all needed variables.
See Also:
VelocityContext, Template.merge(org.apache.velocity.context.Context, Writer), Template.generate(Writer, Map)


Copyright © 2011. All Rights Reserved.