public interface DictionaryEntry
Dictionary
interface.Modifier and Type | Interface and Description |
---|---|
static class |
DictionaryEntry.AttributeGroup
Attribute groups dictionary entries have.
|
Modifier and Type | Method and Description |
---|---|
Dictionary |
getDictionary()
Returns the dictionary from which this entry originated.
|
AttributeSet |
getGeneralAttributes()
Return the set of attributes which apply to the whole entry.
|
String |
getReading(int alternative)
Returns the reading of the word.
|
int |
getReadingAlternativeCount()
Returns the number of alternative readings.
|
AttributeSet |
getReadingAttributes()
Returns the set of attributes which apply to all readings.
|
AttributeSet |
getReadingAttributes(int alternative)
Returns the set of attributes which apply to a particular reading.
|
DictionaryEntryReference |
getReference()
Get a reference to this entry.
|
String |
getTranslation(int rom,
int crm,
int synonym)
Returns a translation of this entry.
|
AttributeSet |
getTranslationAttributes()
Returns the set of attributes which apply to all translations.
|
AttributeSet |
getTranslationAttributes(int rom)
Returns the set of attributes which apply to a particular range of meanings.
|
AttributeSet |
getTranslationAttributes(int rom,
int crm)
Returns the set of attributes which apply to a particular closely related meaning.
|
AttributeSet |
getTranslationAttributes(int rom,
int crm,
int synonym)
Returns the set of attributes which apply to a particular translation.
|
int |
getTranslationCrmCount(int rom)
Returns the number of closely related meanings of one range of meanings.
|
int |
getTranslationRomCount()
Returns the number of ranges of meanings.
|
int |
getTranslationSynonymCount(int rom,
int crm)
Returns the number of synonyms for one closely related meaning, range of meanings.
|
String |
getWord(int alternative)
Return one spelling variant of the entry word.
|
int |
getWordAlternativeCount()
Returns the number of alternative word spellings.
|
AttributeSet |
getWordAttributes()
Returns the set of attributes which apply to all word alternatives.
|
AttributeSet |
getWordAttributes(int alternative)
Returns the set of attributes which apply to a particular word spelling.
|
AttributeSet getGeneralAttributes()
String getWord(int alternative)
alternative
- Index (0-based) of the spelling variant requested.IllegalArgumentException
- if the alternative parameter is out of range.int getWordAlternativeCount()
AttributeSet getWordAttributes(int alternative)
alternative
- Index (0-based) of the spelling variant requested.IllegalArgumentException
- if the alternative parameter is out of range.AttributeSet getWordAttributes()
String getReading(int alternative)
alternative
- Index (0-based) of the spelling variant requested.IllegalArgumentException
- if the alternative parameter is out of bounds.int getReadingAlternativeCount()
AttributeSet getReadingAttributes(int alternative)
alternative
- Index (0-based) of the reading requested.IllegalArgumentException
- if the alternative parameter is out of bounds.AttributeSet getReadingAttributes()
String getTranslation(int rom, int crm, int synonym)
rom
- Requested range of meanings (0-based).crm
- Requested closely related meaning (0-based).synonym
- Requested synonym of a translation (0-based).IllegalArgumentException
- if one of the parameters is out of range.int getTranslationRomCount()
int getTranslationCrmCount(int rom)
rom
- Requested range of meanings (0-based).IllegalArgumentException
- if one of the parameters is out of range.int getTranslationSynonymCount(int rom, int crm)
rom
- Requested range of meanings (0-based).crm
- Requested closely related meaning (0-based).IllegalArgumentException
- if one of the parameters is out of range.AttributeSet getTranslationAttributes(int rom, int crm, int synonym)
rom
- Requested range of meanings (0-based).crm
- Requested closely related meaning (0-based).synonym
- Requested synonym of a translation (0-based).IllegalArgumentException
- if one of the parameters is out of range.AttributeSet getTranslationAttributes(int rom, int crm)
rom
- Requested range of meanings (0-based).crm
- Requested closely related meaning (0-based).IllegalArgumentException
- if one of the parameters is out of range.AttributeSet getTranslationAttributes(int rom)
rom
- Requested range of meanings (0-based).crm
- Requested closely related meaning (0-based).IllegalArgumentException
- if one of the parameters is out of range.AttributeSet getTranslationAttributes()
Dictionary getDictionary()
DictionaryEntryReference getReference()
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.