org.objectweb.jonas_ws.wsgen.generator.axis
Class JVelocity

java.lang.Object
  extended by org.objectweb.jonas_ws.wsgen.generator.axis.JVelocity

public class JVelocity
extends java.lang.Object

Wrapper around Velocity tool.

Author:
Guillaume Sauthier

Constructor Summary
JVelocity(java.lang.String tmplName)
          Creates a new JVelocity instance using the given template.
 
Method Summary
 void generate(java.io.File fs, org.apache.velocity.VelocityContext context)
          Generate the given file with the given VelocityContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVelocity

public JVelocity(java.lang.String tmplName)
          throws WsGenException
Creates a new JVelocity instance using the given template.

Parameters:
tmplName - the template filename
Throws:
WsGenException - when error occurs during Velocity initialization.
Method Detail

generate

public void generate(java.io.File fs,
                     org.apache.velocity.VelocityContext context)
              throws WsGenException
Generate the given file with the given VelocityContext.

Parameters:
fs - the output file
context - VelocityContext
Throws:
WsGenException - when velocity generation fails