org.umber.core.velocity
Class VelocityRunner

java.lang.Object
  extended byorg.umber.core.velocity.VelocityRunner

public class VelocityRunner
extends java.lang.Object

Helper class to invoke the Velocity API.

Author:
jsheets

Constructor Summary
VelocityRunner()
           
 
Method Summary
 java.lang.String processTemplate(java.lang.String template, java.util.Map properties)
          Processes the given Velocity template against the supplied Map of input properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityRunner

public VelocityRunner()
Method Detail

processTemplate

public java.lang.String processTemplate(java.lang.String template,
                                        java.util.Map properties)
                                 throws UmberException
Processes the given Velocity template against the supplied Map of input properties. The key names should correspond to references in the Velocity template.

Parameters:
template - the text of a Velocity template
properties - key/value pairs for the Velocity context
Returns:
the processed results
Throws:
UmberException - if unable to execute Velocity transform