public class AmazonCatalogQuery extends AbstractQuery
Amazon catalog query
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected Article[] |
arrArticle |
protected String |
browseUrl |
protected HttpUtil |
http |
protected String |
queryKey |
protected String |
searchUrl |
protected String |
term |
articleNum, curArticle, curArticleNo, curPageNo, curPageWidth, pageNum, pageWidth, parser| Constructor and Description |
|---|
AmazonCatalogQuery() |
AmazonCatalogQuery(String productCatalog) |
| Modifier and Type | Method and Description |
|---|---|
protected Article |
getArticle(int articleNo) |
Article |
getArticleByKey(String PMID)
Reads out the article according to its key
|
static void |
getProductList(String catalogNode,
String codeListFile,
String descriptionListFile) |
boolean |
initQuery()
One should call this method before retrieval articles.
|
static void |
main(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(String productCatalog)
Set the searching terms.
|
boolean |
supportArticleKeyRetrieval()
if the query supports this retrieval mode, one can get articles by calling getArticleByKey method.
|
close, getArticle, getArticleKey, getArticleParser, getCurPageNo, getCurPageWidth, getNextArticle, getPageNum, getPageWidth, getTotalArticleNum, loadCollection, moveToArticle, moveToNextArticle, moveToNextPage, restart, setArticleParser, sizeprotected String queryKey
protected String term
protected String searchUrl
protected String browseUrl
protected Article[] arrArticle
protected HttpUtil http
public AmazonCatalogQuery(String productCatalog)
public AmazonCatalogQuery()
public static void main(String[] args)
public static void getProductList(String catalogNode, String codeListFile, String descriptionListFile)
public boolean supportArticleKeyRetrieval()
CollectionReaderpublic void setSearchTerm(String productCatalog)
ArticleQuerypublic boolean initQuery()
ArticleQuerypublic boolean moveToPage(int pageNo)
ArticleQuerypageNo - the page #public Article getArticleByKey(String PMID)
CollectionReaderPMID - the unique entry number of the articleprotected Article getArticle(int articleNo)
getArticle in class AbstractQueryCopyright © 2018 JULIE Lab, Germany. All rights reserved.