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