public class Annotation extends Object
Modifier and Type | Field and Description |
---|---|
protected Element |
anno |
protected String |
annotatedText |
protected String |
annotatedTextReading |
static Comparator<Annotation> |
COMPARE_BY_START_OFFSET
Compare two annotations by their element start offset.
|
protected AnnotationListModel |
owner |
protected String[] |
rbases |
protected TextElement[] |
readings |
protected TextElement |
translation |
Constructor and Description |
---|
Annotation(AnnotationListModel _owner,
Element _anno) |
Modifier and Type | Method and Description |
---|---|
String |
getAnnotatedText() |
String |
getAnnotatedTextReading() |
Element |
getAnnotationElement() |
String |
getDictionaryForm() |
String |
getDictionaryFormReading() |
int |
getEndOffset() |
String |
getGrammaticalType() |
String |
getReading(int index) |
String |
getReadingBase(int index) |
int |
getReadingCount() |
int |
getStartOffset() |
String |
getTranslation() |
void |
setDictionaryForm(String _dictionaryForm) |
void |
setDictionaryFormReading(String _dictionaryFormReading) |
void |
setReading(int index,
String _reading) |
void |
setReading(String _reading) |
void |
setTranslation(String _translation) |
String |
toString() |
public static final Comparator<Annotation> COMPARE_BY_START_OFFSET
protected AnnotationListModel owner
protected Element anno
protected String annotatedText
protected String annotatedTextReading
protected TextElement translation
protected TextElement[] readings
protected String[] rbases
public Annotation(AnnotationListModel _owner, Element _anno)
public Element getAnnotationElement()
public String getAnnotatedText()
public String getAnnotatedTextReading()
public String getDictionaryForm()
public String getDictionaryFormReading()
public String getGrammaticalType()
public String getTranslation()
public int getReadingCount()
public String getReading(int index)
public String getReadingBase(int index)
public void setTranslation(String _translation)
public void setReading(String _reading)
public void setReading(int index, String _reading)
public void setDictionaryForm(String _dictionaryForm)
public void setDictionaryFormReading(String _dictionaryFormReading)
public int getStartOffset()
public int getEndOffset()
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.