public abstract class AbstractConceptDictionaryService extends AbstractLanguageService implements ConceptDictionaryService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| コンストラクタと説明 |
|---|
AbstractConceptDictionaryService()
Constructor that doesn't take parameter(s).
|
AbstractConceptDictionaryService(Collection<Language> supportedLanguages)
Constructor that takes the set of supported languages as a parameter.
|
AbstractConceptDictionaryService(ServiceContext serviceContext,
Collection<Language> supportedLanguages)
Constructor that takes the service context and supported language as a parameter(s).
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected abstract Collection<Concept> |
doGetRelatedConcepts(Language language,
String conceptId,
ConceptualRelation relation)
Runs a search on related concepts.
|
protected abstract Collection<Concept> |
doSearchConcepts(Language language,
String word,
MatchingMethod matchingMethod)
Runs a search on concepts.
|
Concept[] |
getRelatedConcepts(String language,
String conceptId,
String relation) |
Concept[] |
searchConcepts(String language,
String word,
String matchingMethod) |
protected void |
setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
Sets supported search methods.
|
getSupportedLanguageCollection, getSupportedLanguagePairCollection, getSupportedLanguages, setSupportedLanguageCollection, setSupportedLanguagesacquireSemaphore, 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 AbstractConceptDictionaryService()
public AbstractConceptDictionaryService(Collection<Language> supportedLanguages)
supportedLanguages - Set of supported languagespublic AbstractConceptDictionaryService(ServiceContext serviceContext, Collection<Language> supportedLanguages)
serviceContext - Service contextsupportedLanguages - Set of supported languagespublic final Concept[] searchConcepts(String language, String word, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException, UnsupportedMatchingMethodException
searchConcepts インタフェース内 ConceptDictionaryServiceAccessLimitExceededExceptionInvalidParameterExceptionLanguageNotUniquelyDecidedExceptionNoAccessPermissionExceptionNoValidEndpointsExceptionProcessFailedExceptionServerBusyExceptionServiceNotActiveExceptionServiceNotFoundExceptionUnsupportedLanguageExceptionUnsupportedMatchingMethodExceptionpublic final Concept[] getRelatedConcepts(String language, String conceptId, String relation) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, ProcessFailedException, NoValidEndpointsException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
getRelatedConcepts インタフェース内 ConceptDictionaryServiceAccessLimitExceededExceptionInvalidParameterExceptionLanguageNotUniquelyDecidedExceptionNoAccessPermissionExceptionProcessFailedExceptionNoValidEndpointsExceptionServerBusyExceptionServiceNotActiveExceptionServiceNotFoundExceptionUnsupportedLanguageExceptionprotected abstract Collection<Concept> doSearchConcepts(Language language, String word, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
language - Languageword - WordmatchingMethod - Matching methodInvalidParameterException - An invalid parameter was passedProcessFailedException - Process failedprotected abstract Collection<Concept> doGetRelatedConcepts(Language language, String conceptId, ConceptualRelation relation) throws InvalidParameterException, ProcessFailedException
language - LanguageconceptId - Concept IDrelation - Relation with concept IDInvalidParameterException - An invalid parameter was passedProcessFailedException - Process failedprotected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
supportedMatchingMethods - Set of supported search methodsCopyright © 2021. All rights reserved.