Package org.eclipse.help.search
Class SearchProcessorInfo
java.lang.Object
org.eclipse.help.search.SearchProcessorInfo
This class is a storage container for search processing
- Since:
- 3.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]AfterAbstractSearchProcessor.preSearch(String)is called, this method can be used to return an array of alternative search terms a user may wish to consider.getQuery()AfterAbstractSearchProcessor.preSearch(String)is called, this method can be used to change the search query used.voidsetAlternateTerms(String[] alternateTerms) Sets the alternate terms to be considered.voidSets the query to search with.
-
Constructor Details
-
SearchProcessorInfo
public SearchProcessorInfo()
-
-
Method Details
-
getQuery
AfterAbstractSearchProcessor.preSearch(String)is called, this method can be used to change the search query used.- Returns:
- new search query String, or
nullfor no change.
-
setQuery
Sets the query to search with.- Parameters:
query- the new search query string- See Also:
-
getAlternateTerms
AfterAbstractSearchProcessor.preSearch(String)is called, this method can be used to return an array of alternative search terms a user may wish to consider.- Returns:
- String[] of alternate terms, or
nullfor no alternate terms. An empty array has the same effect as returningnull.
-
setAlternateTerms
Sets the alternate terms to be considered.- Parameters:
alternateTerms- new alternate search terms, ornullfor no alternate terms.- See Also:
-