Package edu.indiana.lib.twinpeaks.search
Interface SearchResultInterface
-
- All Known Implementing Classes:
Response,Response,SearchResultBase,Web2Response
public interface SearchResultInterfaceSearch characteristics, all matching items
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanPaginate()Can this display be paginated (next/previous pages for display)?voiddoParse()Populate the search result listintgetMatchCount()Return the count of matching items foundStringgetNextPreviewPage()Fetch the "next preview page" reference (used to paginate results null if none)StringgetPreviousPreviewPage()Fetch the "previous preview page" reference (used to paginate results, null if none)StringgetQuery()Fetch the original query textStringgetSearchResponseString()Return search results as a StringintgetSearchStart()Return the starting item number for this search (one based)voidinitialize(QueryBase query)Save various attributes of the general search requestIteratoriterator()Get an iterator to the result list
-
-
-
Method Detail
-
initialize
void initialize(QueryBase query)
Save various attributes of the general search request- Parameters:
query- The QueryBase extension that sent the search request
-
doParse
void doParse()
Populate the search result list
-
getQuery
String getQuery()
Fetch the original query text- Returns:
- Search string
-
getSearchResponseString
String getSearchResponseString()
Return search results as a String- Returns:
- Result Document
-
getSearchStart
int getSearchStart()
Return the starting item number for this search (one based)- Returns:
- Starting item number
-
getMatchCount
int getMatchCount()
Return the count of matching items found- Returns:
- Item count
-
getNextPreviewPage
String getNextPreviewPage()
Fetch the "next preview page" reference (used to paginate results null if none)- Returns:
- Next page reference
-
getPreviousPreviewPage
String getPreviousPreviewPage()
Fetch the "previous preview page" reference (used to paginate results, null if none)- Returns:
- Previous page reference
-
canPaginate
boolean canPaginate()
Can this display be paginated (next/previous pages for display)?- Returns:
- true if so
-
iterator
Iterator iterator()
Get an iterator to the result list- Returns:
- An iterator to the list of matching items
-
-