|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object googlesearch.SearchResult
public class SearchResult
Represents the result of doing a Google search. It contains information about the search, such as the search string, and also the result web pages returned from the search. This is an adapter class to obtain a simpler (and safer) interface to the official GoogleSearchResult object. In particular it hides setter methods that would be dangerous to use here. It also returns the result objects as a java.util.List, rather than an array.
Field Summary | |
---|---|
static SearchResult |
NULL_RESULT
Represents an empty search result. |
Constructor Summary | |
---|---|
SearchResult(com.google.soap.search.GoogleSearchResult adapted)
Create a SearchResult object containg a set of result pages and information about the search. |
Method Summary | |
---|---|
int |
getEndIndex()
Get the Google-supplied index ranking of the end of this result set |
int |
getEstimatedTotalResultsCount()
Obtain an estimate of the number of hits (pages) in this search. |
java.util.List<SearchResultPage> |
getResultPages()
Return up to ten result pages in a list. |
java.lang.String |
getSearchQuery()
Get the query string that was used to retrieve these results |
int |
getStartIndex()
Get the google supplied index ranking of the beginning of this result set |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SearchResult NULL_RESULT
Constructor Detail |
---|
public SearchResult(com.google.soap.search.GoogleSearchResult adapted)
adapted
- The Google API equivalent objectMethod Detail |
---|
public java.lang.String getSearchQuery()
public int getStartIndex()
public int getEndIndex()
public java.lang.String toString()
toString
in class java.lang.Object
public int getEstimatedTotalResultsCount()
public java.util.List<SearchResultPage> getResultPages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |