toolbox.web.template
Class GetSystemTime

Package class diagram package GetSystemTime
java.lang.Object
  extended by toolbox.web.template.GetSystemTime
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateModel

public class GetSystemTime
extends java.lang.Object
implements freemarker.template.TemplateMethodModel

Template helper to return the current system time as a java.util.Date instance.


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
GetSystemTime()
          Default constructor
 
Method Summary
 java.lang.Object exec(java.util.List args)
          Return the system time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetSystemTime

public GetSystemTime()
Default constructor

Method Detail

exec

public java.lang.Object exec(java.util.List args)
                      throws freemarker.template.TemplateModelException
Return the system time.

Specified by:
exec in interface freemarker.template.TemplateMethodModel
Parameters:
args - List containing arguments. Empty in this instance.
Returns:
Date instance indicating the system time.
Throws:
freemarker.template.TemplateModelException