search
Class SearchManager

java.lang.Object
  extended by search.SearchManager

public class SearchManager
extends java.lang.Object


Constructor Summary
SearchManager(SearchEngine thisEngine)
          Constructor for SearchManager.
 
Method Summary
 java.util.ArrayList<SearchResult> doSearch(java.lang.String searchTerms)
          This method forwards the search call to the search engine being used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchManager

public SearchManager(SearchEngine thisEngine)
Constructor for SearchManager.

Parameters:
thisEngine - - The search engine to attach to the search manager
Method Detail

doSearch

public java.util.ArrayList<SearchResult> doSearch(java.lang.String searchTerms)
This method forwards the search call to the search engine being used. Abstracted here in case someone wants to use multiple search engines at some point.

Parameters:
searchTerms - - the search terms to search for.
Returns:
- An ArrayList of SearchResult objects.