mobi.voiceassistant.client.converter
Class DateConverter

java.lang.Object
  extended by mobi.voiceassistant.client.converter.DateConverter
All Implemented Interfaces:
TokenConverter<Date>

public final class DateConverter
extends Object
implements TokenConverter<Date>

Created with IntelliJ IDEA. User: morfeusys Date: 06.02.13 Time: 12:59


Field Summary
static String TYPE_ABSOLUTE_DATE
           
static String TYPE_RANGE_DATE
           
static String TYPE_RELATIVE_DATE
           
static String TYPE_RELATIVE_DAY
           
static String TYPE_UNIT_DATE
           
static String TYPE_WEEK_DATE
           
static String TYPE_WEEKEND_DATE
           
 
Method Summary
 Date convert(Token token)
           
 Date convertAbsoluteDate(Token token)
           
 Date convertRangeDate(Token token)
           
 Date convertRelativeDate(Token token)
           
 Date convertRelativeDay(Token token)
           
 Date convertUnitDate(Token token)
           
 Date convertWeekDate(Token token)
           
 Date convertWeekendDate(Token token)
           
static TokenConverter<Date> getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_ABSOLUTE_DATE

public static final String TYPE_ABSOLUTE_DATE
See Also:
Constant Field Values

TYPE_RELATIVE_DAY

public static final String TYPE_RELATIVE_DAY
See Also:
Constant Field Values

TYPE_RELATIVE_DATE

public static final String TYPE_RELATIVE_DATE
See Also:
Constant Field Values

TYPE_WEEK_DATE

public static final String TYPE_WEEK_DATE
See Also:
Constant Field Values

TYPE_WEEKEND_DATE

public static final String TYPE_WEEKEND_DATE
See Also:
Constant Field Values

TYPE_UNIT_DATE

public static final String TYPE_UNIT_DATE
See Also:
Constant Field Values

TYPE_RANGE_DATE

public static final String TYPE_RANGE_DATE
See Also:
Constant Field Values
Method Detail

getInstance

public static TokenConverter<Date> getInstance()

convert

public Date convert(Token token)
Specified by:
convert in interface TokenConverter<Date>

convertRangeDate

public Date convertRangeDate(Token token)

convertUnitDate

public Date convertUnitDate(Token token)

convertWeekendDate

public Date convertWeekendDate(Token token)

convertRelativeDay

public Date convertRelativeDay(Token token)

convertAbsoluteDate

public Date convertAbsoluteDate(Token token)

convertRelativeDate

public Date convertRelativeDate(Token token)

convertWeekDate

public Date convertWeekDate(Token token)