org.apache.ctakes.dictionary.lookup.vo
Class LookupAnnotationToTokAdapter

java.lang.Object
  extended by org.apache.ctakes.dictionary.lookup.vo.LookupAnnotationToTokAdapter
All Implemented Interfaces:
LookupAnnotation, LookupToken

public class LookupAnnotationToTokAdapter
extends java.lang.Object
implements LookupToken, LookupAnnotation

Author:
Mayo Clinic

Constructor Summary
LookupAnnotationToTokAdapter(Token tok)
           
 
Method Summary
 void addStringAttribute(java.lang.String attrKey, java.lang.String attrVal)
          Adds an attribute that may be used for filtering.
 int getEndOffset()
          Gets the end offset.
 int getLength()
          Gets the length of this annotation based on offsets.
 int getStartOffset()
          Gets the start offset.
 java.lang.String getStringAttribute(java.lang.String attrKey)
          Gets an attribute.
 java.lang.String getText()
          Gets the text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupAnnotationToTokAdapter

public LookupAnnotationToTokAdapter(Token tok)
Method Detail

addStringAttribute

public void addStringAttribute(java.lang.String attrKey,
                               java.lang.String attrVal)
Description copied from interface: LookupAnnotation
Adds an attribute that may be used for filtering.

Specified by:
addStringAttribute in interface LookupAnnotation

getEndOffset

public int getEndOffset()
Description copied from interface: LookupAnnotation
Gets the end offset.

Specified by:
getEndOffset in interface LookupAnnotation
Returns:

getLength

public int getLength()
Description copied from interface: LookupAnnotation
Gets the length of this annotation based on offsets.

Specified by:
getLength in interface LookupAnnotation
Returns:

getStartOffset

public int getStartOffset()
Description copied from interface: LookupAnnotation
Gets the start offset.

Specified by:
getStartOffset in interface LookupAnnotation
Returns:

getStringAttribute

public java.lang.String getStringAttribute(java.lang.String attrKey)
Description copied from interface: LookupAnnotation
Gets an attribute.

Specified by:
getStringAttribute in interface LookupAnnotation
Returns:

getText

public java.lang.String getText()
Description copied from interface: LookupAnnotation
Gets the text.

Specified by:
getText in interface LookupAnnotation
Returns: