org.apache.ctakes.core.fsm.token.adapter
Class WordTokenAdapter

java.lang.Object
  extended by org.apache.ctakes.core.fsm.token.adapter.BaseTokenAdapter
      extended by org.apache.ctakes.core.fsm.token.adapter.WordTokenAdapter
All Implemented Interfaces:
BaseToken, TextToken, WordToken

public class WordTokenAdapter
extends BaseTokenAdapter
implements WordToken

Adapts a Context Free Tokenizer token into a Context Dependent Tokenizer WordToken.

Author:
Mayo Clinic

Field Summary
 
Fields inherited from interface org.apache.ctakes.core.fsm.token.WordToken
CAPS_ALL, CAPS_FIRST_ONLY, CAPS_MIXED, CAPS_NONE, CAPS_UNKNOWN, NUM_FIRST, NUM_LAST, NUM_MIDDLE, NUM_NONE
 
Constructor Summary
WordTokenAdapter(Token tok)
           
 
Method Summary
 byte getCaps()
           
 byte getNumPosition()
           
 String getText()
           
 
Methods inherited from class org.apache.ctakes.core.fsm.token.adapter.BaseTokenAdapter
getEndOffset, getStartOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ctakes.core.fsm.token.BaseToken
getEndOffset, getStartOffset
 

Constructor Detail

WordTokenAdapter

public WordTokenAdapter(Token tok)
Method Detail

getText

public String getText()
Specified by:
getText in interface TextToken

getCaps

public byte getCaps()
Specified by:
getCaps in interface WordToken

getNumPosition

public byte getNumPosition()
Specified by:
getNumPosition in interface WordToken


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.