|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.google.soap.search.GoogleSearchResultElement
GoogleSearchResultElement contains an individual search result component of a GoogleSearchResult. Users of the API should only call the get methods on this object; the fields are filled in when a search result is returned.
GoogleSearchFault
,
GoogleSearchResult
,
GoogleSearchResultElement
,
GoogleSearchDirectoryCategory
Constructor Summary | |
GoogleSearchResultElement()
|
Method Summary | |
java.lang.String |
getCachedSize()
Returns the size in kilobytes of the cached version. |
GoogleSearchDirectoryCategory |
getDirectoryCategory()
Returns the directory category of this result element |
java.lang.String |
getDirectoryTitle()
Returns the title that appears in the directory if this document is contained in the ODP directory. |
java.lang.String |
getHostName()
Returns the host name in the case where multiple results come from a single host. |
boolean |
getRelatedInformationPresent()
Returns true if and only if the "related:" special query term is supported for this URL. |
java.lang.String |
getSnippet()
Returns a snippet which shows the query in context on the URL where it appears. |
java.lang.String |
getSummary()
Returns the ODP summary if this document is contained in the ODP directory. |
java.lang.String |
getTitle()
Returns the title of the search result, formatted as HTML. |
java.lang.String |
getURL()
Returns the absolute URL of the search result |
void |
setCachedSize(java.lang.String sz)
|
void |
setDirectoryCategory(GoogleSearchDirectoryCategory cat)
|
void |
setDirectoryTitle(java.lang.String dt)
|
void |
setHostName(java.lang.String hn)
|
void |
setRelatedInformationPresent(boolean rt)
|
void |
setSnippet(java.lang.String s)
|
void |
setSummary(java.lang.String ds)
|
void |
setTitle(java.lang.String t)
|
void |
setURL(java.lang.String u)
|
java.lang.String |
toString()
Returns a nicely formatted string representation of a Google search result element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GoogleSearchResultElement()
Method Detail |
public void setURL(java.lang.String u)
public java.lang.String getURL()
public void setTitle(java.lang.String t)
public java.lang.String getTitle()
public void setSnippet(java.lang.String s)
public java.lang.String getSnippet()
public void setDirectoryCategory(GoogleSearchDirectoryCategory cat)
public GoogleSearchDirectoryCategory getDirectoryCategory()
public void setDirectoryTitle(java.lang.String dt)
public java.lang.String getDirectoryTitle()
public void setSummary(java.lang.String ds)
public java.lang.String getSummary()
public void setCachedSize(java.lang.String sz)
public java.lang.String getCachedSize()
public void setRelatedInformationPresent(boolean rt)
public boolean getRelatedInformationPresent()
public void setHostName(java.lang.String hn)
public java.lang.String getHostName()
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 |