public class SnippetOptions extends java.lang.Object implements SnippetOptionsIf
| Constructor and Description |
|---|
SnippetOptions()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfSnippets()
Number of snippets returned.
|
java.lang.String |
getPostKeywordHighlight()
The text inserted after the keywords in order to highlight them.
|
java.lang.String |
getPreKeywordHighlight()
The text inserted before the keywords in order to highlight them.
|
int |
getSnippetSizeInChars()
The snippet length in characters.
|
boolean |
isEnableSnippets()
Snippets are enabled when set to true.
|
boolean |
isEscapeHTML()
Escape and HTML characters in the snippet.
|
void |
setEnableSnippets(boolean enableSnippets)
Snippets are enabled when set to true.
|
void |
setEscapeHTML(boolean escapeHTML)
Escape and HTML characters in the snippet.
|
void |
setNumberOfSnippets(int numberOfSnippets)
Number of snippets returned.
|
void |
setPostKeywordHighlight(java.lang.String postKeywordHighlight)
The text inserted after the keywords in order to highlight them.
|
void |
setPreKeywordHighlight(java.lang.String preKeywordHighlight)
The text inserted before the keywords in order to highlight them.
|
void |
setSnippetSizeInChars(int snippetSizeInChars)
The snippet length in characters.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isEnableSnippets()
SnippetOptionsIfisEnableSnippets in interface SnippetOptionsIfpublic void setEnableSnippets(boolean enableSnippets)
SnippetOptionsIfsetEnableSnippets in interface SnippetOptionsIfenableSnippets - the enableSnippets to setpublic int getNumberOfSnippets()
SnippetOptionsIfgetNumberOfSnippets in interface SnippetOptionsIfpublic void setNumberOfSnippets(int numberOfSnippets)
SnippetOptionsIfsetNumberOfSnippets in interface SnippetOptionsIfnumberOfSnippets - the numberOfSnippets to setpublic int getSnippetSizeInChars()
SnippetOptionsIfgetSnippetSizeInChars in interface SnippetOptionsIfpublic void setSnippetSizeInChars(int snippetSizeInChars)
SnippetOptionsIfsetSnippetSizeInChars in interface SnippetOptionsIfsnippetSizeInChars - the snippetSizeInChars to setpublic java.lang.String getPreKeywordHighlight()
SnippetOptionsIfgetPreKeywordHighlight in interface SnippetOptionsIfpublic void setPreKeywordHighlight(java.lang.String preKeywordHighlight)
SnippetOptionsIfsetPreKeywordHighlight in interface SnippetOptionsIfpreKeywordHighlight - the preKeywordHighlight to setpublic java.lang.String getPostKeywordHighlight()
SnippetOptionsIfgetPostKeywordHighlight in interface SnippetOptionsIfpublic void setPostKeywordHighlight(java.lang.String postKeywordHighlight)
SnippetOptionsIfsetPostKeywordHighlight in interface SnippetOptionsIfpostKeywordHighlight - the postKeywordHighlight to setpublic void setEscapeHTML(boolean escapeHTML)
SnippetOptionsIfsetEscapeHTML in interface SnippetOptionsIfescapeHTML - the escapeHTML to setpublic boolean isEscapeHTML()
SnippetOptionsIfisEscapeHTML in interface SnippetOptionsIfCopyright © 2018 DS Data Systems UK Ltd.