public class BilingualDictionaryService extends AbstractBilingualDictionaryWithLongestMatchSearchService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
BilingualDictionaryService() |
Modifier and Type | Method and Description |
---|---|
protected Calendar |
doGetLastUpdate() |
protected Collection<Translation> |
doSearch(Language headLang,
Language targetLang,
String headWord,
MatchingMethod matchingMethod)
Searches the bilingual dictionary using the specified search term(s) and matching method, and returns bilingual translation.
|
clearCache, doSearchLongestMatchingTerms, getSupportedMatchingMethods, isCacheSearchResult, scan, search, searchLongestMatchingTerms, setCacheSearchResult, setCacheTtlSec, setSupportedMatchingMethods
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairs
acquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupException
getComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastUpdate, getSupportedLanguagePairs
protected Collection<Translation> doSearch(Language headLang, Language targetLang, String headWord, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
AbstractBilingualDictionaryWithLongestMatchSearchService
doSearch
in class AbstractBilingualDictionaryWithLongestMatchSearchService
headLang
- Source language of bilingual translation(RFC3066 compliant)targetLang
- Target language of bilingual translation (RFC3066 compliant)headWord
- Bilingual translation search languagematchingMethod
- Search methodInvalidParameterException
- One of either headLang,targetLang,matchingMethod is null or else is an empty string. headLang or targetLang do not comply with RFC3066.String not provided for by matchingMethodProcessFailedException
- Bilingual translation search failed due to some causeprotected Calendar doGetLastUpdate() throws ProcessFailedException
doGetLastUpdate
in class AbstractBilingualDictionaryWithLongestMatchSearchService
ProcessFailedException