mobi.voiceassistant.client.converter
Class NumberConverter

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

public final class NumberConverter
extends Object
implements TokenConverter<Integer>

User: morfeusys Date: 02.02.13 Time: 13:36


Field Summary
static String TYPE_DIGIT
           
static String TYPE_WORD
           
 
Method Summary
 Integer convert(Token token)
           
static TokenConverter<Integer> getInstance()
           
static Integer parseWord(Token token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_DIGIT

public static final String TYPE_DIGIT
See Also:
Constant Field Values

TYPE_WORD

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

getInstance

public static TokenConverter<Integer> getInstance()

convert

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

parseWord

public static Integer parseWord(Token token)