public abstract class AbstractMultilingualTranslationWithTemporalDictionaryService extends AbstractLanguagePairService implements MultilingualTranslationWithTemporalDictionaryService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
AbstractMultilingualTranslationWithTemporalDictionaryService() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
doTranslation(Language sourceLang,
Language[] targetLangs,
String source,
Translation[] temporalDictionary,
Language[] dictionaryTargetLangs) |
String |
translate(String sourceLang,
String[] targetLangs,
String source,
Translation[] temporalDict,
String[] dictTargetLangs)
Run translation.
|
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
public AbstractMultilingualTranslationWithTemporalDictionaryService()
public String translate(String sourceLang, String[] targetLangs, String source, Translation[] temporalDict, String[] dictTargetLangs) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, ProcessFailedException, NoValidEndpointsException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
MultilingualTranslationWithTemporalDictionaryService
translate
in interface MultilingualTranslationWithTemporalDictionaryService
sourceLang
- Translation source language (RFC3066 compliant)targetLangs
- Target languages of the translation (RFC3066 compliant)source
- String to be translatedtemporalDict
- Bilingual dictionary data used during translationdictTargetLangs
- Target languages of dictionary data(targetLang)AccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedLanguagePairNotUniquelyDecidedException
- Multiple candidate language pairs existUnsupportedLanguagePairException
- An unsupported language pair was specifiedNoAccessPermissionException
- The user executing the call lacks execution privilegesProcessFailedException
- Translation process failedNoValidEndpointsException
- There is no valid endpointServerBusyException
- The server is loaded and cannot process it.ServiceNotActiveException
- The service is not activeServiceNotFoundException
- The specified service was not foundprotected abstract String doTranslation(Language sourceLang, Language[] targetLangs, String source, Translation[] temporalDictionary, Language[] dictionaryTargetLangs) throws InvalidParameterException, ProcessFailedException