|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--dragon.onlinedb.AbstractQuery
|
+--dragon.onlinedb.amazon.AmazonReviewQuery
Amazon reveiw query
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Field Summary | |
protected Article[] |
arrArticle
|
protected HttpUtil |
http
|
protected java.lang.String |
queryKey
|
protected java.lang.String |
reviewUrl
|
protected java.lang.String |
term
|
protected java.lang.String |
webEnv
|
| Fields inherited from class dragon.onlinedb.AbstractQuery |
articleNum, curArticle, curArticleNo, curPageNo, curPageWidth, pageNum, pageWidth, parser |
| Constructor Summary | |
AmazonReviewQuery()
|
|
AmazonReviewQuery(java.lang.String productCode)
|
|
| Method Summary | |
protected Article |
getArticle(int articleNo)
|
Article |
getArticleByKey(java.lang.String PMID)
Reads out the article according to its key |
boolean |
initQuery()
One should call this method before retrieval articles. |
static void |
main(java.lang.String[] args)
|
boolean |
moveToPage(int pageNo)
Move to the given page and the pointer is set on the first article of the page. |
void |
setSearchTerm(java.lang.String productCode)
Set the searching terms. |
boolean |
supportArticleKeyRetrieval()
if the query supports this retrieval mode, one can get articles by calling getArticleByKey method. |
| Methods inherited from class dragon.onlinedb.AbstractQuery |
close, getArticle, getArticleKey, getArticleParser, getCurPageNo, getCurPageWidth, getNextArticle, getPageNum, getPageWidth, getTotalArticleNum, loadCollection, moveToArticle, moveToNextArticle, moveToNextPage, restart, setArticleParser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String webEnv
protected java.lang.String queryKey
protected java.lang.String term
protected java.lang.String reviewUrl
protected Article[] arrArticle
protected HttpUtil http
| Constructor Detail |
public AmazonReviewQuery(java.lang.String productCode)
public AmazonReviewQuery()
| Method Detail |
public static void main(java.lang.String[] args)
public boolean supportArticleKeyRetrieval()
CollectionReader
public void setSearchTerm(java.lang.String productCode)
ArticleQuery
public boolean initQuery()
ArticleQuery
public boolean moveToPage(int pageNo)
ArticleQuery
pageNo - the page #
public Article getArticleByKey(java.lang.String PMID)
CollectionReader
PMID - the unique entry number of the article
protected Article getArticle(int articleNo)
getArticle in class AbstractQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||