public class LookupAnnotationToJCasAdapter extends Object implements LookupToken
Constructor and Description |
---|
LookupAnnotationToJCasAdapter(org.apache.uima.jcas.tcas.Annotation jcasAnnotation) |
Modifier and Type | Method and Description |
---|---|
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.
|
public LookupAnnotationToJCasAdapter(org.apache.uima.jcas.tcas.Annotation jcasAnnotation)
public void addStringAttribute(String attrKey, String attrVal)
addStringAttribute
in interface LookupAnnotation
public int getEndOffset()
getEndOffset
in interface LookupAnnotation
public int getLength()
getLength
in interface LookupAnnotation
public int getStartOffset()
getStartOffset
in interface LookupAnnotation
public String getStringAttribute(String attrKey)
getStringAttribute
in interface LookupAnnotation
public String getText()
getText
in interface LookupAnnotation
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.