public abstract class AbstractMultihopTranslationService extends AbstractService implements MultihopTranslationService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| コンストラクタと説明 |
|---|
AbstractMultihopTranslationService()
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected abstract MultihopTranslationResult |
doMultihopTranslation(LanguagePath languagePath,
String source)
Template method supporting multihopTranstlate.
|
MultihopTranslationResult |
multihopTranslate(String sourceLang,
String[] intermediateLangs,
String targetLang,
String source) |
protected void |
setSupportedLanguagePaths(Collection<LanguagePath> paths)
Sets the supported language path group.
|
acquireSemaphore, 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 AbstractMultihopTranslationService()
public MultihopTranslationResult multihopTranslate(String sourceLang, String[] intermediateLangs, String targetLang, String source) throws AccessLimitExceededException, InvalidParameterException, LanguagePathNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePathException
multihopTranslate インタフェース内 MultihopTranslationServiceAccessLimitExceededExceptionInvalidParameterExceptionLanguagePathNotUniquelyDecidedExceptionNoAccessPermissionExceptionNoValidEndpointsExceptionProcessFailedExceptionServerBusyExceptionServiceNotActiveExceptionServiceNotFoundExceptionUnsupportedLanguagePathExceptionprotected abstract MultihopTranslationResult doMultihopTranslation(LanguagePath languagePath, String source) throws InvalidParameterException, ProcessFailedException
languagePath - Translation language pathsource - String to be translatedInvalidParameterException - An invalid parameter was passedProcessFailedException - Process failedprotected void setSupportedLanguagePaths(Collection<LanguagePath> paths)
paths - Language paths groupCopyright © 2021. All rights reserved.