public interface BilingualDictionaryWithLongestMatchSearchService extends BilingualDictionaryService
Modifier and Type | Method and Description |
---|---|
TranslationWithPosition[] |
searchLongestMatchingTerms(String headLang,
String targetLang,
Morpheme[] morphemes)
Runs a search based on an array of morphemes.
|
getLastUpdate, getSupportedLanguagePairs, getSupportedMatchingMethods, search
TranslationWithPosition[] searchLongestMatchingTerms(String headLang, String targetLang, Morpheme[] morphemes) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException, UnsupportedMatchingMethodException
headLang
- Source language of bilingual translation(RFC3066 compliant)targetLang
- Target language of bilingual translation (RFC3066 compliant)morphemes
- Array of morphemesAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- One of either headLang,targetLang,searchMethod is null or else is an empty string. headLang or targetLang do not comply with RFC3066.String not provided for by searchMethodLanguagePairNotUniquelyDecidedException
- The bilingual translation language pair candidates could not be singly resolved(Ex:When headLang, or else targetLang is specified as zh, the case where zh-Hans and zh-Hant both exist as supported language pairs)NoAccessPermissionException
- The user executing the call lacks execution privilegesNoValidEndpointsException
- There is no valid endpointProcessFailedException
- Search process failedServerBusyException
- The server is loaded and cannot process it.ServiceNotActiveException
- The service is not activeServiceNotFoundException
- The specified service was not foundUnsupportedLanguagePairException
- The specified language pair is not supported.UnsupportedMatchingMethodException
- The specified matching method is not supported