mobi.voiceassistant.client.converter
Class TimeConverter

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

public final class TimeConverter
extends Object
implements TokenConverter<Time>

Created with IntelliJ IDEA. User: morfeusys Date: 11.07.12 Time: 16:21


Field Summary
static String TIME_PART_AM
           
static String TIME_PART_PM
           
static String TIME_UNIT_HOURS
           
static String TIME_UNIT_MINUTES
           
static String TIME_UNIT_SECONDS
           
static String TYPE_ABSOLUTE_TIME
           
static String TYPE_PART_TIME
           
static String TYPE_RELATIVE_TIME
           
 
Method Summary
 Time convert(Token token)
           
 Time convertAbsoluteTime(Token token)
           
 Time convertPartTime(Token token)
           
 Time convertRelativeTime(Token token)
           
static TokenConverter<Time> getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_RELATIVE_TIME

public static final String TYPE_RELATIVE_TIME
See Also:
Constant Field Values

TYPE_ABSOLUTE_TIME

public static final String TYPE_ABSOLUTE_TIME
See Also:
Constant Field Values

TYPE_PART_TIME

public static final String TYPE_PART_TIME
See Also:
Constant Field Values

TIME_UNIT_HOURS

public static final String TIME_UNIT_HOURS
See Also:
Constant Field Values

TIME_UNIT_MINUTES

public static final String TIME_UNIT_MINUTES
See Also:
Constant Field Values

TIME_UNIT_SECONDS

public static final String TIME_UNIT_SECONDS
See Also:
Constant Field Values

TIME_PART_PM

public static final String TIME_PART_PM
See Also:
Constant Field Values

TIME_PART_AM

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

getInstance

public static TokenConverter<Time> getInstance()

convert

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

convertPartTime

public Time convertPartTime(Token token)

convertRelativeTime

public Time convertRelativeTime(Token token)

convertAbsoluteTime

public Time convertAbsoluteTime(Token token)