Package net.sf.okapi.lib.terminology
Interface ITermAccess
-
- All Known Implementing Classes:
SimpleTBConnector
public interface ITermAccess
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the connection to the termbase.List<TermHit>getExistingStrings(TextFragment fragment, LocaleId fragmentLoc, LocaleId otherLoc)List<TermHit>getExistingTerms(TextFragment fragment, LocaleId fragmentLoc, LocaleId otherLoc)Gets the list of all terms of the termbase that exist in a given fragment for a given source/target pair of locales.IParametersgetParameters()Gets the current parameters for this termbase connector.voidopen()Opens the connection to the termbase.voidsetParameters(IParameters params)Sets the parameters for this termbase connector.
-
-
-
Method Detail
-
setParameters
void setParameters(IParameters params)
Sets the parameters for this termbase connector.- Parameters:
params- the new parameter
-
getParameters
IParameters getParameters()
Gets the current parameters for this termbase connector.- Returns:
- the current parameters for this termbase connector.
-
open
void open()
Opens the connection to the termbase. You may need to callsetParameters(IParameters)before this method.
-
close
void close()
Closes the connection to the termbase.
-
getExistingTerms
List<TermHit> getExistingTerms(TextFragment fragment, LocaleId fragmentLoc, LocaleId otherLoc)
Gets the list of all terms of the termbase that exist in a given fragment for a given source/target pair of locales.- Parameters:
fragment- the fragment to examine.fragmentLoc- the locale of the fragment.otherLoc- the other (source or target) locale.- Returns:
- the list of all terms of the termbase that exist in the given fragment.
-
getExistingStrings
List<TermHit> getExistingStrings(TextFragment fragment, LocaleId fragmentLoc, LocaleId otherLoc)
-
-