public abstract class AbstractTranslationWithTemporalDictionaryService extends AbstractLanguagePairService implements TranslationWithTemporalDictionaryService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| Constructor and Description |
|---|
AbstractTranslationWithTemporalDictionaryService() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
doTranslation(Language sourceLang,
Language targetLang,
String source,
Translation[] temporalDictionary,
Language dictionaryTargetLang) |
String |
translate(String sourceLang,
String targetLang,
String source,
Translation[] temporalDict,
String dictTargetLang)
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 AbstractTranslationWithTemporalDictionaryService()
public String translate(String sourceLang, String targetLang, String source, Translation[] temporalDict, String dictTargetLang) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, ProcessFailedException, NoValidEndpointsException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
TranslationWithTemporalDictionaryServicetranslate in interface TranslationWithTemporalDictionaryServicesourceLang - Translation source language (RFC3066 compliant)targetLang - Target language of the translation (RFC3066 compliant)source - String to be translatedtemporalDict - Bilingual dictionary data used during translationdictTargetLang - Target language 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 targetLang, String source, Translation[] temporalDictionary, Language dictionaryTargetLang) throws InvalidParameterException, ProcessFailedException