net.sf.hloader.converter.context
Class DateContext

java.lang.Object
  extended bynet.sf.hloader.converter.context.DateContext

public class DateContext
extends java.lang.Object

Sample Date Context for Jelly.

Works in conjunction with the DateConverter, as it will do Long (as String) to date conversion.

Version:
$Id: DateContext.java,v 1.4 2004/03/09 13:55:20 bdargan Exp $
Author:
Brett Dargan

Constructor Summary
DateContext()
           
 
Method Summary
 org.apache.commons.jelly.JellyContext createContext()
          Create a Jellycontext for handling date expressions.
protected  void doInit(org.apache.commons.jelly.JellyContext jellyContext)
          initialise the date context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateContext

public DateContext()
Method Detail

createContext

public org.apache.commons.jelly.JellyContext createContext()
Create a Jellycontext for handling date expressions. //tomorrow.endOfDay, tomorrow.startOfDay //now.addDays(1), or now + 24 * HOURS //${now.dayFormat} 00:00:00

Returns:

doInit

protected void doInit(org.apache.commons.jelly.JellyContext jellyContext)
initialise the date context.

Parameters:
jellyContext -