public abstract class AbstractParallelTextService extends AbstractLanguagePairService implements ParallelTextService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| コンストラクタと説明 |
|---|
AbstractParallelTextService()
Constructor.
|
AbstractParallelTextService(Collection<LanguagePair> supportedPairs)
Constructor.
|
AbstractParallelTextService(ServiceContext serviceContext)
Constructor that takes the service context as a parameter.
|
AbstractParallelTextService(ServiceContext serviceContext,
Collection<LanguagePair> supportedPairs)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected abstract Collection<ParallelText> |
doSearch(Language sourceLang,
Language targetLang,
String source,
MatchingMethod matchingMethod)
Runs a search.
|
String[] |
getSupportedMatchingMethods() |
protected LanguagePair |
getValidLanguagePair(String parameterName1,
String lang1,
String parameterName2,
String lang2) |
protected MatchingMethod |
getValidMatchingMethod(String parameterName,
String matchingMethod) |
ParallelText[] |
search(String sourceLang,
String targetLang,
String source,
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, setServiceNamepublic AbstractParallelTextService()
public AbstractParallelTextService(ServiceContext serviceContext)
serviceContext - Service contextpublic AbstractParallelTextService(Collection<LanguagePair> supportedPairs)
supportedPairs - Set of supported language pairspublic AbstractParallelTextService(ServiceContext serviceContext, Collection<LanguagePair> supportedPairs)
serviceContext - Service contextsupportedPairs - Supported language pairspublic ParallelText[] search(String sourceLang, String targetLang, String source, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException, UnsupportedMatchingMethodException
search インタフェース内 ParallelTextServiceAccessLimitExceededExceptionInvalidParameterExceptionLanguagePairNotUniquelyDecidedExceptionNoAccessPermissionExceptionNoValidEndpointsExceptionProcessFailedExceptionServerBusyExceptionServiceNotActiveExceptionServiceNotFoundExceptionUnsupportedLanguagePairExceptionUnsupportedMatchingMethodExceptionprotected abstract Collection<ParallelText> doSearch(Language sourceLang, Language targetLang, String source, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
sourceLang - Source languagetargetLang - Target languagesource - Keywords to be searchedmatchingMethod - Matching methodInvalidParameterException - An invalid parameter was passedProcessFailedException - Process failedpublic String[] getSupportedMatchingMethods() throws AccessLimitExceededException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
protected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
protected LanguagePair getValidLanguagePair(String parameterName1, String lang1, String parameterName2, String lang2) throws LanguagePairNotUniquelyDecidedException, UnsupportedLanguagePairException, InvalidParameterException
protected MatchingMethod getValidMatchingMethod(String parameterName, String matchingMethod) throws InvalidParameterException
Copyright © 2021. All rights reserved.