public abstract class AbstractParallelTextWithEmbeddedMetadataService extends AbstractLanguagePairService implements ParallelTextWithEmbeddedMetadataService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
AbstractParallelTextWithEmbeddedMetadataService() |
AbstractParallelTextWithEmbeddedMetadataService(Collection<LanguagePair> supportedPairs) |
AbstractParallelTextWithEmbeddedMetadataService(ServiceContext serviceContext,
Collection<LanguagePair> supportedPairs) |
Modifier and Type | Method and Description |
---|---|
protected abstract Collection<ParallelTextWithMetadata> |
doSearchParallelTextsByMetadata(Language sourceLang,
Language targetLang,
String[] metadata,
String text,
MatchingMethod matchingMethod) |
protected abstract String[] |
doSearchSupportedMetadata(String query,
MatchingMethod matchingMethod) |
ParallelTextWithMetadata[] |
searchParallelTextsByMetadata(String sourceLang,
String targetLang,
String[] metadata,
String text,
String matchingMethod) |
String[] |
searchSupportedMetadata(String query,
String matchingMethod) |
protected void |
setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods) |
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 AbstractParallelTextWithEmbeddedMetadataService()
public AbstractParallelTextWithEmbeddedMetadataService(Collection<LanguagePair> supportedPairs)
public AbstractParallelTextWithEmbeddedMetadataService(ServiceContext serviceContext, Collection<LanguagePair> supportedPairs)
public ParallelTextWithMetadata[] searchParallelTextsByMetadata(String sourceLang, String targetLang, String[] metadata, String text, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
searchParallelTextsByMetadata
in interface ParallelTextWithEmbeddedMetadataService
AccessLimitExceededException
InvalidParameterException
LanguagePairNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguagePairException
public String[] searchSupportedMetadata(String query, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
searchSupportedMetadata
in interface ParallelTextWithEmbeddedMetadataService
AccessLimitExceededException
InvalidParameterException
LanguagePairNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguagePairException
protected abstract Collection<ParallelTextWithMetadata> doSearchParallelTextsByMetadata(Language sourceLang, Language targetLang, String[] metadata, String text, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
protected abstract String[] doSearchSupportedMetadata(String query, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
protected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)