org.apache.ctakes.dictionary.lookup.ae
Class LookupAnnotationToJCasAdapter

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

public class LookupAnnotationToJCasAdapter
extends Object
implements LookupAnnotation, LookupToken

Author:
Mayo Clinic

Constructor Summary
LookupAnnotationToJCasAdapter(org.apache.uima.jcas.tcas.Annotation jcasAnnotation)
           
 
Method Summary
 void addStringAttribute(String attrKey, 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.
 String getStringAttribute(String attrKey)
          Gets an attribute.
 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

LookupAnnotationToJCasAdapter

public LookupAnnotationToJCasAdapter(org.apache.uima.jcas.tcas.Annotation jcasAnnotation)
Method Detail

addStringAttribute

public void addStringAttribute(String attrKey,
                               String attrVal)
Adds an attribute that may be used for filtering.

Specified by:
addStringAttribute in interface LookupAnnotation

getEndOffset

public int getEndOffset()
Gets the end offset.

Specified by:
getEndOffset in interface LookupAnnotation
Returns:

getLength

public int getLength()
Gets the length of this annotation based on offsets.

Specified by:
getLength in interface LookupAnnotation
Returns:

getStartOffset

public int getStartOffset()
Gets the start offset.

Specified by:
getStartOffset in interface LookupAnnotation
Returns:

getStringAttribute

public String getStringAttribute(String attrKey)
Gets an attribute.

Specified by:
getStringAttribute in interface LookupAnnotation
Returns:

getText

public String getText()
Gets the text.

Specified by:
getText in interface LookupAnnotation
Returns:


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