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, 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 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
MultilingualTranslationWithTemporalDictionaryServicetranslate in interface MultilingualTranslationWithTemporalDictionaryServicesourceLang - 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