Package org.apache.wiki.search
Class SearchMatcher.SearchResultImpl
- java.lang.Object
 - 
- org.apache.wiki.search.SearchMatcher.SearchResultImpl
 
 
- 
- All Implemented Interfaces:
 SearchResult,SearchResult
- Enclosing class:
 - SearchMatcher
 
public class SearchMatcher.SearchResultImpl extends java.lang.Object implements SearchResult
A local search result. 
- 
- 
Constructor Summary
Constructors Constructor Description SearchResultImpl(java.lang.String name, int score)Create a new SearchResult with a given name and a score. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getContexts()Returns an empty array, since BasicSearchProvider does not support context matching.WikiPagegetPage()Returns Wikipage for this result.intgetScore()Returns a score for this match. 
 - 
 
- 
- 
Constructor Detail
- 
SearchResultImpl
public SearchResultImpl(java.lang.String name, int score)
Create a new SearchResult with a given name and a score.- Parameters:
 name- Page Namescore- A score from 0+
 
 - 
 
- 
Method Detail
- 
getPage
public WikiPage getPage()
Returns Wikipage for this result.- Specified by:
 getPagein interfaceSearchResult- Specified by:
 getPagein interfaceSearchResult- Returns:
 - WikiPage
 
 
- 
getScore
public int getScore()
Returns a score for this match.- Specified by:
 getScorein interfaceSearchResult- Returns:
 - Score from 0+
 
 
- 
getContexts
public java.lang.String[] getContexts()
Returns an empty array, since BasicSearchProvider does not support context matching.- Specified by:
 getContextsin interfaceSearchResult- Returns:
 - an empty array
 
 
 - 
 
 -