|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.dionloy.joogle.JGDocument
JGDocument represents the data contained in the
response from a Google search. This will include a listing of
JGResult objects representing the individual links
returned in the search.
| Constructor Summary | |
JGDocument()
Constructs a new JGDocument instance. |
|
| Method Summary | |
int |
getEndIndex()
Returns the end index (1-based) of this page of results. |
java.lang.String |
getNextURL()
Returns the 'Next' URL, if one were to page through the results. |
java.lang.String |
getPreviousURL()
Returns the 'Previous' URL, if one were to page through the results. |
java.lang.String |
getQuery()
Returns the query string as seen by Google. |
java.util.Enumeration |
getSearchResults()
Returns an Enumeration of the JGResult
objects, representing the search result links in the order that
they were given. |
int |
getStartIndex()
Returns the start index (1-based) of this page of results. |
java.lang.String |
getTime()
Returns the time it took to finish this query (on Google's side). |
java.lang.String |
getVersion()
Returns the version of the XML document. |
void |
parse(org.w3c.dom.Node rootNode)
Parses the DOM tree to fill up our instance variables. |
protected void |
parseNavigation(org.w3c.dom.Node node)
Parses the navigation nodes ( JGTags.Navigation). |
protected void |
parseNode(org.w3c.dom.Node node)
Parses the node given and assign it to the correct variable. |
protected void |
parseResultList(org.w3c.dom.Node node)
Parses the result list node. |
protected void |
parseResultListChild(org.w3c.dom.Node node)
Parses the child node of the result list node. |
java.lang.String |
toString()
Outputs ourselves to a human readable String. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public JGDocument()
JGDocument instance.| Method Detail |
public java.lang.String getVersion()
public java.lang.String getTime()
public java.lang.String getQuery()
public int getStartIndex()
public int getEndIndex()
public java.lang.String getNextURL()
null if no other 'pages' exist.public java.lang.String getPreviousURL()
null if no other 'pages' exist.public java.util.Enumeration getSearchResults()
Enumeration of the JGResult
objects, representing the search result links in the order that
they were given.public void parse(org.w3c.dom.Node rootNode)
public java.lang.String toString()
toString in class java.lang.Objectprotected void parseNode(org.w3c.dom.Node node)
protected void parseResultList(org.w3c.dom.Node node)
protected void parseResultListChild(org.w3c.dom.Node node)
protected void parseNavigation(org.w3c.dom.Node node)
JGTags.Navigation).
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||