|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.json.app.J_SnippetOptions
public class J_SnippetOptions
Used to configure snippets which are text fragments returned by the search engine surrounding the search text.
| Constructor Summary | |
|---|---|
J_SnippetOptions()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public J_SnippetOptions()
| Method Detail |
|---|
public boolean isEnableSnippets()
public void setEnableSnippets(boolean _enableSnippets)
_enableSnippets - the enableSnippets to setpublic int getNumberOfSnippets()
public void setNumberOfSnippets(int _numberOfSnippets)
_numberOfSnippets - the numberOfSnippets to setpublic int getSnippetSizeInChars()
public void setSnippetSizeInChars(int _snippetSizeInChars)
_snippetSizeInChars - the snippetSizeInChars to setpublic java.lang.String getPreKeywordHighlight()
public void setPreKeywordHighlight(java.lang.String _preKeywordHighlight)
_preKeywordHighlight - the preKeywordHighlight to setpublic java.lang.String getPostKeywordHighlight()
public void setPostKeywordHighlight(java.lang.String _postKeywordHighlight)
_postKeywordHighlight - the postKeywordHighlight to setpublic void setEscapeHTML(boolean _escapeHTML)
_escapeHTML - the escapeHTML to setpublic boolean isEscapeHTML()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||