public class SuggestedSearch extends NavigationAction
Constructor and Description |
---|
SuggestedSearch()
Default constructor.
|
SuggestedSearch(String navigationState,
String label,
boolean autoPhrased,
boolean spellCorrected)
Constructs a suggested search with the given navigation state, label, auto phrase and spell correction.
|
SuggestedSearch(String navigationState,
String label,
boolean autoPhrased,
boolean spellCorrected,
long count)
Constructs a suggested search with the given navigation state, label, auto phrase, spell correction and count.
|
Modifier and Type | Method and Description |
---|---|
Long |
getCount()
Gets the number of records that will be returned if this suggested search is applied.
|
boolean |
isAutoPhrased() |
boolean |
isSpellCorrected() |
void |
setAutoPhrased(boolean autoPhrased)
Sets the auto-phrased flag.
|
void |
setCount(Long count)
Sets the number of records that will be returned if this suggested search is applied.
|
void |
setSpellCorrected(boolean spellCorrected)
Sets the spell correction flag.
|
getNavigationState, setNavigationState
getContentPath, getLabel, getSiteRootPath, getSiteState, setContentPath, setLabel, setSiteRootPath, setSiteState
public SuggestedSearch()
public SuggestedSearch(String navigationState, String label, boolean autoPhrased, boolean spellCorrected, long count)
navigationState
- a navigation statelabel
- the label for the navigation actionautoPhrased
- true if the term was adjusted to a phrasespellCorrected
- true if the term was spell correctedcount
- the number of records that will be returned if this suggested search is appliedpublic SuggestedSearch(String navigationState, String label, boolean autoPhrased, boolean spellCorrected)
navigationState
- a navigation statelabel
- the label for the navigation actionautoPhrased
- true if the term was adjusted to a phrasespellCorrected
- true if the term was spell correctedpublic boolean isSpellCorrected()
public void setSpellCorrected(boolean spellCorrected)
spellCorrected
- true if the terms were spell correctedpublic boolean isAutoPhrased()
public void setAutoPhrased(boolean autoPhrased)
autoPhrased
- true if the terms were auto-phrasedpublic Long getCount()
MdexResource
).public void setCount(Long count)
count
- the refinement countCopyright © 2014, Oracle and/or its affiliates. All rights reserved.