public class LookupAnnotationToTokAdapter extends Object implements LookupToken
Constructor and Description |
---|
LookupAnnotationToTokAdapter(Token tok) |
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 LookupAnnotationToTokAdapter(Token tok)
public void addStringAttribute(String attrKey, String attrVal)
LookupAnnotation
addStringAttribute
in interface LookupAnnotation
public int getEndOffset()
LookupAnnotation
getEndOffset
in interface LookupAnnotation
public int getLength()
LookupAnnotation
getLength
in interface LookupAnnotation
public int getStartOffset()
LookupAnnotation
getStartOffset
in interface LookupAnnotation
public String getStringAttribute(String attrKey)
LookupAnnotation
getStringAttribute
in interface LookupAnnotation
public String getText()
LookupAnnotation
getText
in interface LookupAnnotation
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.