public abstract class AbstractTranslationWithInternalDictionaryService extends AbstractTranslationService implements TranslationWithInternalDictionaryService
AbstractTranslationService.DivisionType
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
AbstractTranslationWithInternalDictionaryService()
Constructor that doesn't take parameter(s).
|
AbstractTranslationWithInternalDictionaryService(ServiceContext serviceContext)
Constructor that takes the service context as a parameter(s).
|
AbstractTranslationWithInternalDictionaryService(ServiceContext serviceContext,
Collection<LanguagePair> supportedPairs)
Constructor that takes the service context and supported language pair(s) as a parameter(s).
|
Modifier and Type | Method and Description |
---|---|
protected abstract String[] |
doGetSupportedInternalDictionaryIds(Language sourceLang,
Language targetLang) |
String[] |
getSupportedInternalDictionaryIds(String sourceLang,
String targetLang) |
backTranslate, doMultistatementTranslation, doTranslation, multihopTranslate, multistatementTranslate, setMaxSourceLength, setSentenceDivision, translate, validateLanguagePair
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairs
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, setStartupException
getComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
translate
public AbstractTranslationWithInternalDictionaryService()
public AbstractTranslationWithInternalDictionaryService(ServiceContext serviceContext)
serviceContext
- Service contextpublic AbstractTranslationWithInternalDictionaryService(ServiceContext serviceContext, Collection<LanguagePair> supportedPairs)
serviceContext
- Service contextsupportedPairs
- Supported language pairspublic String[] getSupportedInternalDictionaryIds(String sourceLang, String targetLang) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, ProcessFailedException, NoValidEndpointsException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
getSupportedInternalDictionaryIds
in interface TranslationWithInternalDictionaryService
AccessLimitExceededException
InvalidParameterException
LanguagePairNotUniquelyDecidedException
NoAccessPermissionException
ProcessFailedException
NoValidEndpointsException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguagePairException
protected abstract String[] doGetSupportedInternalDictionaryIds(Language sourceLang, Language targetLang) throws ProcessFailedException
ProcessFailedException