|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.google.soap.search.GoogleSearchResult
GoogleSearchResult encapsulates the complete results returned by the Google Web APIs search call. Users of the API should only call the get methods on this object; the fields are filled in when a search result is returned.
GoogleSearchResultElement
,
GoogleSearchDirectoryCategory
Constructor Summary | |
GoogleSearchResult()
|
Method Summary | |
GoogleSearchDirectoryCategory[] |
getDirectoryCategories()
Returns an array of directory categories for this result. |
boolean |
getDocumentFiltering()
Returns true if and only if filtering was performed on the search results, which happens only if: (a) you requested filtering, and (b) filtering actually occurred. |
int |
getEndIndex()
Returns the index (1-based) of the last search result in the result elements. |
int |
getEstimatedTotalResultsCount()
Returns the estimated total number of results returned for the query. |
boolean |
getEstimateIsExact()
Returns true if and only if the estimated number of results is exact. |
GoogleSearchResultElement[] |
getResultElements()
Returns an array of result elements. |
java.lang.String |
getSearchComments()
Returns string intended for display to an end user. |
java.lang.String |
getSearchQuery()
Returns the query string that generated this result. |
double |
getSearchTime()
Returns total server time to process the query (in seconds). |
java.lang.String |
getSearchTips()
Returns a string intended for display to the end user; provides instructive suggestions on how to use Google. |
int |
getStartIndex()
Returns the index (1-based) of the first search result in the result elements. |
void |
setDirectoryCategories(GoogleSearchDirectoryCategory[] cats)
|
void |
setDocumentFiltering(boolean fi)
|
void |
setEndIndex(int en)
|
void |
setEstimatedTotalResultsCount(int m)
|
void |
setEstimateIsExact(boolean xt)
|
void |
setResultElements(GoogleSearchResultElement[] rs)
|
void |
setSearchComments(java.lang.String ct)
|
void |
setSearchQuery(java.lang.String q)
|
void |
setSearchTime(double tm)
|
void |
setSearchTips(java.lang.String tt)
|
void |
setStartIndex(int sn)
|
java.lang.String |
toString()
Returns a nicely formatted representation of a Google search result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GoogleSearchResult()
Method Detail |
public void setSearchTime(double tm)
public double getSearchTime()
public void setSearchQuery(java.lang.String q)
public java.lang.String getSearchQuery()
public void setSearchComments(java.lang.String ct)
public java.lang.String getSearchComments()
public void setSearchTips(java.lang.String tt)
public java.lang.String getSearchTips()
public void setDirectoryCategories(GoogleSearchDirectoryCategory[] cats)
public GoogleSearchDirectoryCategory[] getDirectoryCategories()
public void setStartIndex(int sn)
public int getStartIndex()
public void setEndIndex(int en)
public int getEndIndex()
public void setEstimatedTotalResultsCount(int m)
public int getEstimatedTotalResultsCount()
public void setDocumentFiltering(boolean fi)
public boolean getDocumentFiltering()
public void setEstimateIsExact(boolean xt)
public boolean getEstimateIsExact()
public void setResultElements(GoogleSearchResultElement[] rs)
public GoogleSearchResultElement[] getResultElements()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |