Predictions 4.10.0.0

hirondelle.web4j.config
Class DateConverterImpl

Object
  extended by DateConverterImpl
All Implemented Interfaces:
DateConverter

public final class DateConverterImpl
extends Object
implements DateConverter

Implementation of DateConverter, required by WEB4J. This implementation includes date only, with no time.


Constructor Summary
DateConverterImpl()
           
 
Method Summary
 String formatEyeFriendly(Date aDate, Locale aLocale, TimeZone aTimeZone)
          Format a Date for the human eye.
 String formatEyeFriendlyDateTime(DateTime aDateTime, Locale aLocale)
          Format a DateTime for the human eye.
 Date parseEyeFriendly(String aInputValue, Locale aLocale, TimeZone aTimeZone)
          Parse a Date entered in an eye-friendly style.
 DateTime parseEyeFriendlyDateTime(String aInputValue, Locale aLocale)
          Parse a DateTime entered in an eye-friendly style.
 Date parseHandFriendly(String aInputValue, Locale aLocale, TimeZone aTimeZone)
          Parse a Date entered in a hand-friendly style.
 DateTime parseHandFriendlyDateTime(String aInputValue, Locale aLocale)
          Parse a DateTime entered in a hand-friendly style.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateConverterImpl

public DateConverterImpl()
Method Detail

formatEyeFriendlyDateTime

public String formatEyeFriendlyDateTime(DateTime aDateTime,
                                        Locale aLocale)
Format a DateTime for the human eye.

Example return value, for January 31, 2006:
'2009/01/31'.

Specified by:
formatEyeFriendlyDateTime in interface DateConverter

parseEyeFriendlyDateTime

public DateTime parseEyeFriendlyDateTime(String aInputValue,
                                         Locale aLocale)
Parse a DateTime entered in an eye-friendly style.

Example of the required input format, for January 31, 2006 :
'2006/01/31'

Specified by:
parseEyeFriendlyDateTime in interface DateConverter

parseHandFriendlyDateTime

public DateTime parseHandFriendlyDateTime(String aInputValue,
                                          Locale aLocale)
Parse a DateTime entered in a hand-friendly style.

Example of the required input format, for January 31, 2006 :
'20060131'.

Specified by:
parseHandFriendlyDateTime in interface DateConverter

formatEyeFriendly

public String formatEyeFriendly(Date aDate,
                                Locale aLocale,
                                TimeZone aTimeZone)
Format a Date for the human eye.

Example return value, for January 31, 2006:
'2006/01/31'.

Specified by:
formatEyeFriendly in interface DateConverter

parseHandFriendly

public Date parseHandFriendly(String aInputValue,
                              Locale aLocale,
                              TimeZone aTimeZone)
Parse a Date entered in a hand-friendly style.

Example of the required input format, for January 31, 2006:
'20060131'.

Specified by:
parseHandFriendly in interface DateConverter

parseEyeFriendly

public Date parseEyeFriendly(String aInputValue,
                             Locale aLocale,
                             TimeZone aTimeZone)
Parse a Date entered in an eye-friendly style.

Example of the required input format, for January 31, 2006 :
'2006/01/31'

Specified by:
parseEyeFriendly in interface DateConverter

Predictions 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.27