org.drools.guvnor.server.util
Class JVMDateConverter

java.lang.Object
  extended by org.drools.guvnor.server.util.JVMDateConverter
All Implemented Interfaces:
DateConverter

public class JVMDateConverter
extends Object
implements DateConverter

Convenience class to handle date conversion in a normal JVM (i.e. not running under GWT). Used primarily from JUnit Tests.


Method Summary
 String format(Date date)
          Convert a Date into a String
static DateConverter getInstance()
           
 Date parse(String text)
          Convert a String into a Date
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DateConverter getInstance()

format

public String format(Date date)
Description copied from interface: DateConverter
Convert a Date into a String

Specified by:
format in interface DateConverter
Returns:

parse

public Date parse(String text)
Description copied from interface: DateConverter
Convert a String into a Date

Specified by:
parse in interface DateConverter
Returns:


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.