public class GlossarySearcher
extends java.lang.Object
Constructor and Description |
---|
GlossarySearcher(ITokenizer tok,
Language lang,
boolean mergeAltDefinitions) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkCancelled()
Override this to throw an exception (that you will catch) to abort matching.
|
protected static boolean |
isCjkMatch(java.lang.String fullText,
java.lang.String term) |
java.util.List<GlossaryEntry> |
searchSourceMatches(SourceTextEntry ste,
java.util.List<GlossaryEntry> entries) |
java.util.List<Token[]> |
searchSourceMatchTokens(SourceTextEntry ste,
GlossaryEntry entry) |
java.util.List<java.lang.String> |
searchTargetMatches(java.lang.String trg,
ProtectedPart[] protectedParts,
GlossaryEntry entry) |
public GlossarySearcher(ITokenizer tok, Language lang, boolean mergeAltDefinitions)
public java.util.List<GlossaryEntry> searchSourceMatches(SourceTextEntry ste, java.util.List<GlossaryEntry> entries)
public java.util.List<Token[]> searchSourceMatchTokens(SourceTextEntry ste, GlossaryEntry entry)
public java.util.List<java.lang.String> searchTargetMatches(java.lang.String trg, ProtectedPart[] protectedParts, GlossaryEntry entry)
protected void checkCancelled()
protected static boolean isCjkMatch(java.lang.String fullText, java.lang.String term)