org.ow2.jonas.generators.wsgen.generator.axis
Class JVelocity
java.lang.Object
org.ow2.jonas.generators.wsgen.generator.axis.JVelocity
public class JVelocity
- extends Object
Wrapper around Velocity tool.
- Author:
- Guillaume Sauthier
Constructor Summary |
JVelocity(String tmplName)
Creates a new JVelocity instance using the given template. |
Method Summary |
void |
generate(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 |
JVelocity
public JVelocity(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.
generate
public void generate(File fs,
org.apache.velocity.VelocityContext context)
throws WsGenException
- Generate the given file with the given VelocityContext.
- Parameters:
fs
- the output filecontext
- VelocityContext
- Throws:
WsGenException
- when velocity generation fails
Copyright © 2010 OW2 Consortium. All Rights Reserved.