xdoclet.modules.apache.velocity

Class VelocityEngineTagHandler

public class VelocityEngineTagHandler extends ScriptEngineTagHandler

This is a tag handler able to execute Velocity template engine on a block!

Author: zluspai

UNKNOWN: July 16, 2003 namespace = "Velocity"

Method Summary
voidclearVariables()
Clear all velocity variables
voidgenerator(String template, Properties attributes)
Evaluates the body block with the Velocity template engine If the silent="yes" attribute is set then the Generator will not produce any output, but the template will run.
StringgetVariable(Properties attributes)
Get a value of a velocity variable from the context
 
 

Method Detail

clearVariables

public void clearVariables()
Clear all velocity variables

Throws: XDocletException

UNKNOWN: type = "content"

generator

public void generator(String template, Properties attributes)
Evaluates the body block with the Velocity template engine If the silent="yes" attribute is set then the Generator will not produce any output, but the template will run. If the disable="yes" attribute is set then the Velocity template will not run at all.

Parameters: template The body of the block tag attributes The attributes of the template tag

Throws: TemplateException

UNKNOWN: type = "block"

getVariable

public String getVariable(Properties attributes)
Get a value of a velocity variable from the context
 
 

Parameters: attributes

Returns:

Throws: XDocletException

UNKNOWN: type = "content"