public abstract class AbstractBilingualDictionaryService extends AbstractLanguagePairService implements BilingualDictionaryService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| コンストラクタと説明 |
|---|
AbstractBilingualDictionaryService()
Constructor.
|
AbstractBilingualDictionaryService(Collection<LanguagePair> supportedPairs)
Constructor.
|
AbstractBilingualDictionaryService(ServiceContext context)
Constructor.
|
AbstractBilingualDictionaryService(ServiceContext context,
Collection<LanguagePair> supportedPairs)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected abstract Collection<Translation> |
doSearch(Language headLang,
Language targetLang,
String headWord,
MatchingMethod matchingMethod) |
protected Translation[] |
doubleSearch(Translation[] result,
String headWord,
MatchingMethod matchingMethod) |
String[] |
getSupportedMatchingMethods() |
Translation[] |
search(String headLang,
String targetLang,
String headWord,
String matchingMethod) |
protected void |
setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods) |
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairsacquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, 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, setStartupExceptiongetComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLastUpdate, getSupportedLanguagePairspublic AbstractBilingualDictionaryService()
public AbstractBilingualDictionaryService(ServiceContext context)
context - Service contextpublic AbstractBilingualDictionaryService(Collection<LanguagePair> supportedPairs)
supportedPairs - Set of supported language pairspublic AbstractBilingualDictionaryService(ServiceContext context, Collection<LanguagePair> supportedPairs)
context - Service contextsupportedPairs - Set of supported language pairspublic Translation[] search(String headLang, String targetLang, String headWord, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException, UnsupportedMatchingMethodException
search インタフェース内 BilingualDictionaryServiceAccessLimitExceededExceptionInvalidParameterExceptionLanguagePairNotUniquelyDecidedExceptionNoAccessPermissionExceptionNoValidEndpointsExceptionProcessFailedExceptionServerBusyExceptionServiceNotActiveExceptionServiceNotFoundExceptionUnsupportedLanguagePairExceptionUnsupportedMatchingMethodExceptionpublic String[] getSupportedMatchingMethods() throws AccessLimitExceededException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
protected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
protected Translation[] doubleSearch(Translation[] result, String headWord, MatchingMethod matchingMethod)
protected abstract Collection<Translation> doSearch(Language headLang, Language targetLang, String headWord, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
Copyright © 2021. All rights reserved.