Package ca.phon.ipadictionary.impl
Class CompoundDictionary
java.lang.Object
ca.phon.ipadictionary.impl.CompoundDictionary
- All Implemented Interfaces:
IPADictionarySPI
,LanguageInfo
,NameInfo
,PrefixSearch
public class CompoundDictionary
extends Object
implements IPADictionarySPI, NameInfo, LanguageInfo, PrefixSearch
Perform lookups on multiple dictionaries at once.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the language handled by this dictionary.getName()
Returns a string identifier for this dictionary.void
install
(IPADictionary dict) Install this SPI into the given IPADictionaryString[]
keysWithPrefix
(String prefix) Search for all instances of the given prefix in orthographic keys.String[]
Lookup IPA transcriptions for a given orthographic string.
-
Constructor Details
-
CompoundDictionary
-
-
Method Details
-
lookup
Description copied from interface:IPADictionarySPI
Lookup IPA transcriptions for a given orthographic string.- Specified by:
lookup
in interfaceIPADictionarySPI
- Returns:
- a list of IPA transcriptions associated with the given orthography
- Throws:
IPADictionaryExecption
-
getName
Description copied from interface:NameInfo
Returns a string identifier for this dictionary. While not required, the name should be unique to help users identify dictionaries which handle the same language. -
getLanguage
Description copied from interface:LanguageInfo
Returns the language handled by this dictionary.- Specified by:
getLanguage
in interfaceLanguageInfo
- Returns:
- the
Language
for this dictionary
-
keysWithPrefix
Description copied from interface:PrefixSearch
Search for all instances of the given prefix in orthographic keys.- Specified by:
keysWithPrefix
in interfacePrefixSearch
- Returns:
- a list of orthographic keys which have the specified prefix
-
install
Description copied from interface:IPADictionarySPI
Install this SPI into the given IPADictionary- Specified by:
install
in interfaceIPADictionarySPI
-