public class SimpleTBConnector extends Object implements ITermAccess
| Constructor and Description |
|---|
SimpleTBConnector() |
| Modifier and Type | Method and Description |
|---|---|
Entry |
addEntry(String srcTerm,
String trgTerm) |
void |
close()
Closes the connection to the termbase.
|
List<TermHit> |
getExistingStrings(TextFragment fragment,
LocaleId fragmentLocId,
LocaleId otherLocId) |
List<TermHit> |
getExistingTerms(TextFragment fragment,
LocaleId fragmentLocId,
LocaleId otherLocId)
Gets the list of all terms of the termbase that exist in a given fragment
for a given source/target pair of locales.
|
IParameters |
getParameters()
Gets the current parameters for this termbase connector.
|
void |
initializeSearch(boolean stringSearch,
boolean betweenCodes) |
void |
open()
Opens the connection to the termbase.
|
void |
setParameters(IParameters params)
Sets the parameters for this termbase connector.
|
public IParameters getParameters()
ITermAccessgetParameters in interface ITermAccesspublic void setParameters(IParameters params)
ITermAccesssetParameters in interface ITermAccessparams - the new parameterpublic void open()
ITermAccessITermAccess.setParameters(IParameters) before this method.open in interface ITermAccesspublic void close()
ITermAccessclose in interface ITermAccesspublic List<TermHit> getExistingTerms(TextFragment fragment, LocaleId fragmentLocId, LocaleId otherLocId)
ITermAccessgetExistingTerms in interface ITermAccessfragment - the fragment to examine.fragmentLocId - the locale of the fragment.otherLocId - the other (source or target) locale.public List<TermHit> getExistingStrings(TextFragment fragment, LocaleId fragmentLocId, LocaleId otherLocId)
getExistingStrings in interface ITermAccesspublic void initializeSearch(boolean stringSearch,
boolean betweenCodes)
Copyright © 2019. All rights reserved.