public class LookupAnnotationToJCasAdapter extends java.lang.Object implements LookupToken
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String> |
_attributeMap |
private Annotation |
_jcasAnnotation |
Constructor and Description |
---|
LookupAnnotationToJCasAdapter(Annotation jcasAnnotation) |
Modifier and Type | Method and Description |
---|---|
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.
|
private final java.util.Map<java.lang.String,java.lang.String> _attributeMap
private final Annotation _jcasAnnotation
public LookupAnnotationToJCasAdapter(Annotation jcasAnnotation)
public void addStringAttribute(java.lang.String attrKey, java.lang.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 java.lang.String getStringAttribute(java.lang.String attrKey)
getStringAttribute
in interface LookupAnnotation
public java.lang.String getText()
getText
in interface LookupAnnotation