net.sf.jec.functions
Class DateFunction

java.lang.Object
  extended bynet.sf.jec.Function
      extended bynet.sf.jec.functions.DateFunction

public class DateFunction
extends Function

Direct and inverse maps between Date/Timestamps to String objects.

Author:
mballesteros

Constructor Summary
DateFunction(java.lang.String dateFormat)
          Creates a new instance of DateFunction
 
Method Summary
 java.lang.Object directMap(java.lang.Object[] objects)
          Direct map: the direct conversion
 java.lang.Object inverseMap(java.lang.Object[] objects)
          Inverse map: the inverse conversion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFunction

public DateFunction(java.lang.String dateFormat)
Creates a new instance of DateFunction

Parameters:
dateFormat - The date format to use. Example: "dd/MM/yyyy"
Method Detail

inverseMap

public java.lang.Object inverseMap(java.lang.Object[] objects)
Inverse map: the inverse conversion

Specified by:
inverseMap in class Function
Parameters:
objects - The arguments array
Returns:
The result object after applying the inverse map

directMap

public java.lang.Object directMap(java.lang.Object[] objects)
Direct map: the direct conversion

Specified by:
directMap in class Function
Parameters:
objects - The arguments array
Returns:
The result object after applying the map


Copyright © 2003 SourceForge. All Rights Reserved.