Class IPADictionaryLibrary
java.lang.Object
ca.phon.ipadictionary.IPADictionaryLibrary
- All Implemented Interfaces:
IExtendable
Manages the library of available IPA dictionaries.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionProvides an iterator of all available dictionaries.Get a list of all distinct LanguageInfos available.Get default IPA dictionary, if no preference is set this will return the first dictionary found.Get all dictionaries for the specified primary languageGet all dictionaries for the specified primary languageGet default IPA dictionary language<T> TgetExtension(Class<T> cap) Get the requested extension if available.Return all extension types supportedstatic IPADictionaryLibraryGet the shared library instance.Get the loader used with the library.<T> TputExtension(Class<T> cap, T impl) Add a new extension.<T> TremoveExtension(Class<T> cap) Remove a capability.
-
Field Details
-
DEFAULT_IPA_DICTIONARY_PROP
-
-
Method Details
-
getInstance
Get the shared library instance.- Returns:
- the shared static instance
-
availableDictionaries
Provides an iterator of all available dictionaries. Dictionaries are in on particular sort order.- Returns:
- iterator of availble dictionaries
-
availableLanguages
-
getDefaultLanguage
-
defaultDictionary
Get default IPA dictionary, if no preference is set this will return the first dictionary found.- Returns:
- default IPA dictionary
-
dictionariesForLanguage
Get all dictionaries for the specified primary language- Parameters:
lang-- Returns:
- list of dictionaries for given lang
-
dictionariesForLanguage
Get all dictionaries for the specified primary language- Parameters:
lang-- Returns:
- list of dictionaries for given lang
-
getLoader
Get the loader used with the library.- Returns:
- the resource loader
-
getExtensions
Description copied from interface:IExtendableReturn all extension types supported- Specified by:
getExtensionsin interfaceIExtendable
-
getExtension
Description copied from interface:IExtendableGet the requested extension if available.- Specified by:
getExtensionin interfaceIExtendable- Returns:
- the capability object or
nullif the cability is not available
-
putExtension
Description copied from interface:IExtendableAdd a new extension.- Specified by:
putExtensionin interfaceIExtendable- Parameters:
cap- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendableRemove a capability.- Specified by:
removeExtensionin interfaceIExtendable- Parameters:
cap- the capability to remove
-