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.Object
public boolean isEnableSnippets()
SnippetOptionsIf
isEnableSnippets
in interface SnippetOptionsIf
public void setEnableSnippets(boolean enableSnippets)
SnippetOptionsIf
setEnableSnippets
in interface SnippetOptionsIf
enableSnippets
- the enableSnippets to setpublic int getNumberOfSnippets()
SnippetOptionsIf
getNumberOfSnippets
in interface SnippetOptionsIf
public void setNumberOfSnippets(int numberOfSnippets)
SnippetOptionsIf
setNumberOfSnippets
in interface SnippetOptionsIf
numberOfSnippets
- the numberOfSnippets to setpublic int getSnippetSizeInChars()
SnippetOptionsIf
getSnippetSizeInChars
in interface SnippetOptionsIf
public void setSnippetSizeInChars(int snippetSizeInChars)
SnippetOptionsIf
setSnippetSizeInChars
in interface SnippetOptionsIf
snippetSizeInChars
- the snippetSizeInChars to setpublic java.lang.String getPreKeywordHighlight()
SnippetOptionsIf
getPreKeywordHighlight
in interface SnippetOptionsIf
public void setPreKeywordHighlight(java.lang.String preKeywordHighlight)
SnippetOptionsIf
setPreKeywordHighlight
in interface SnippetOptionsIf
preKeywordHighlight
- the preKeywordHighlight to setpublic java.lang.String getPostKeywordHighlight()
SnippetOptionsIf
getPostKeywordHighlight
in interface SnippetOptionsIf
public void setPostKeywordHighlight(java.lang.String postKeywordHighlight)
SnippetOptionsIf
setPostKeywordHighlight
in interface SnippetOptionsIf
postKeywordHighlight
- the postKeywordHighlight to setpublic void setEscapeHTML(boolean escapeHTML)
SnippetOptionsIf
setEscapeHTML
in interface SnippetOptionsIf
escapeHTML
- the escapeHTML to setpublic boolean isEscapeHTML()
SnippetOptionsIf
isEscapeHTML
in interface SnippetOptionsIf
Copyright © 2018 DS Data Systems UK Ltd.