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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the language handled by this dictionary.getName()Returns a string identifier for this dictionary.voidinstall(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:IPADictionarySPILookup IPA transcriptions for a given orthographic string.- Specified by:
lookupin interfaceIPADictionarySPI- Parameters:
orthography-- Returns:
- a list of IPA transcriptions associated with the given orthography
- Throws:
IPADictionaryException
-
getName
Description copied from interface:NameInfoReturns 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:LanguageInfoReturns the language handled by this dictionary.- Specified by:
getLanguagein interfaceLanguageInfo- Returns:
- the
Languagefor this dictionary
-
keysWithPrefix
Description copied from interface:PrefixSearchSearch for all instances of the given prefix in orthographic keys.- Specified by:
keysWithPrefixin interfacePrefixSearch- Parameters:
prefix-- Returns:
- a list of orthographic keys which have the specified prefix
-
install
Description copied from interface:IPADictionarySPIInstall this SPI into the given IPADictionary- Specified by:
installin interfaceIPADictionarySPI
-