|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.bookfinder.domain.SearchResult
public final class SearchResult
Describes search results as returned by the Amazon.com web services. The result is either an error message, or a list of items plus the number of total results.
Constructor Summary | |
---|---|
SearchResult()
Constructs an empty SearchResult . |
Method Summary | |
---|---|
void |
addBook(Book book)
|
List |
getBooks()
Returns the list of items that matched the search. |
String |
getErrorMsg()
Returns the errorMsg. |
long |
getTotalPages()
Returns the total number of pages. |
long |
getTotalResults()
Returns the total number of results. |
void |
setErrorMsg(String errorMsg)
Sets the errorMsg. |
void |
setTotalPages(long totalPages)
Sets the total number of pages. |
void |
setTotalResults(long totalResults)
Sets the totalResults. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchResult()
SearchResult
.
Method Detail |
---|
public List getBooks()
public void addBook(Book book)
public String getErrorMsg()
public long getTotalResults()
public long getTotalPages()
public void setErrorMsg(String errorMsg)
errorMsg
- The errorMsg to setpublic void setTotalResults(long totalResults)
totalResults
- The totalResults to setpublic void setTotalPages(long totalPages)
totalPages
- The number of pages to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |