public interface HighlightAgent
| Modifier and Type | Field and Description |
|---|---|
static SpecialistType<HighlightAgent> |
TYPE
Technical type of an agent specialized in highlighting.
|
| Modifier and Type | Method and Description |
|---|---|
void |
highlightExactMatch(String text)
Request to highlight the specified
String. |
void |
highlightPattern(String pattern)
Request to highlight text fragments that matches the specified regular expression.
|
void |
highlightWords(String words)
Request to highlight the words contained in the specified
String. |
void |
reset()
Request to remove the current highlighting.
|
static final SpecialistType<HighlightAgent> TYPE
void highlightWords(String words)
String.
The specified String should contain a whitespace-separated list of words.
Words may contain the character * which matches any sequence of characters,
and ? which matches any single character (not including whitespace).words - a whitespace-separated list of words to highlightvoid highlightExactMatch(String text)
String.
Metacharacters or escape sequences in the input sequence will be given no special meaning.text - the String to highlightvoid highlightPattern(String pattern)
pattern - the regular expression to use for highlightingIllegalArgumentException - if the expression's syntax is invalidvoid reset()
Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408