mobi.voiceassistant.client.converter
Class DateConverter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)