com.ecyrd.jspwiki
Class SearchMatcher.SearchResultImpl
java.lang.Object
com.ecyrd.jspwiki.SearchMatcher.SearchResultImpl
- All Implemented Interfaces:
- SearchResult
- Enclosing class:
- SearchMatcher
public class SearchMatcher.SearchResultImpl
- extends Object
- implements SearchResult
Method Summary |
String[] |
getContexts()
Collection of XHTML fragments representing some contexts in which
the match was made (a.k.a., "snippets"). |
WikiPage |
getPage()
Return the page. |
int |
getScore()
Returns the score. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchMatcher.SearchResultImpl
public SearchMatcher.SearchResultImpl(String name,
int score)
getPage
public WikiPage getPage()
- Description copied from interface:
SearchResult
- Return the page.
- Specified by:
getPage
in interface SearchResult
getScore
public int getScore()
- Description copied from interface:
SearchResult
- Returns the score.
- Specified by:
getScore
in interface SearchResult
getContexts
public String[] getContexts()
- Description copied from interface:
SearchResult
- Collection of XHTML fragments representing some contexts in which
the match was made (a.k.a., "snippets").
- Specified by:
getContexts
in interface SearchResult
- Returns:
- the search results