org.springframework.extensions.webscripts
Class ISO8601DateFormatMethod

java.lang.Object
  extended by org.springframework.extensions.webscripts.ISO8601DateFormatMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class ISO8601DateFormatMethod
extends Object
implements freemarker.template.TemplateMethodModelEx

NOTE: sourced from org.alfresco.repo.template.ISO8601DateFormatMethod.

Author:
David Caruana, Kevin Roast Custom FreeMarker Template language method.

Render Date to ISO8601 format.
Or parse ISO6801 format string date to a Date object.

Usage: xmldate(Date date) xmldate(String date)


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
ISO8601DateFormatMethod()
           
 
Method Summary
 Object exec(List args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISO8601DateFormatMethod

public ISO8601DateFormatMethod()
Method Detail

exec

public Object exec(List args)
            throws freemarker.template.TemplateModelException
Specified by:
exec in interface freemarker.template.TemplateMethodModel
Throws:
freemarker.template.TemplateModelException
See Also:
TemplateMethodModel.exec(java.util.List)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.