|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.dionloy.joogle.JGResult
JGResult represents an individual search result link
from Google.
| Constructor Summary | |
JGResult()
Constructs a new JGResult instance. |
|
| Method Summary | |
java.lang.String |
getDescription()
Returns the description of the document found. |
int |
getIndex()
Returns the index of this result (1-based). |
int |
getLevel()
Returns the level of this result (1-based). |
java.lang.String |
getRank()
Returns the rank of the document found. |
java.lang.String |
getTitle()
Returns the title of the document found. |
java.lang.String |
getURL()
Returns the URL where the document can be found. |
void |
parse(org.w3c.dom.Node node)
Parses the node given and validates it. |
protected void |
parseAttributes(org.w3c.dom.Node node)
Parses the attributes of the result node. |
protected void |
parseChild(org.w3c.dom.Node node)
Parses the child node of the result node. |
java.lang.String |
toString()
Outputs the variables to a String. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public JGResult()
| Method Detail |
public int getIndex()
-1 if
the index was not found in the XML.public int getLevel()
-1 if
the level was not found in the XML.public java.lang.String getURL()
public java.lang.String getTitle()
public java.lang.String getRank()
public java.lang.String getDescription()
public void parse(org.w3c.dom.Node node)
true if successful.public java.lang.String toString()
toString in class java.lang.Objectprotected void parseAttributes(org.w3c.dom.Node node)
protected void parseChild(org.w3c.dom.Node node)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||