com.pow2.util
Class VelocityUtil

java.lang.Object
  extended bycom.pow2.util.VelocityUtil

public class VelocityUtil
extends Object

VelocityUtil class.

Author:
Luca Fossato

Constructor Summary
VelocityUtil()
           
 
Method Summary
static String getTemplate(org.apache.velocity.VelocityContext context, String templateName)
          Get the string representation of the Velocity template populated using the context keys values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityUtil

public VelocityUtil()
Method Detail

getTemplate

public static String getTemplate(org.apache.velocity.VelocityContext context,
                                 String templateName)
Get the string representation of the Velocity template populated using the context keys values.

Parameters:
context - the populated Velocity Context object.
templateName - the template name to use.
Returns:
the string representation of the Velocity template populated using the context keys values.


Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.