com.jgoodies.bookfinder.domain
Class Book

java.lang.Object
  extended by com.jgoodies.bookfinder.domain.Book

public final class Book
extends Object

Describes a book as returned by the Amazon.com web services.

Version:
$Revision: 1.8 $
Author:
Karsten Lentzsch

Field Summary
static String PROPERTYNAME_AUTHORS
           
static String PROPERTYNAME_BINDING
           
static String PROPERTYNAME_ISBN
           
static String PROPERTYNAME_LIST_PRICE
           
static String PROPERTYNAME_MEDIUM_IMAGE_URL
           
static String PROPERTYNAME_PAGES
           
static String PROPERTYNAME_PUBLICATION_DATE
           
static String PROPERTYNAME_PUBLISHER
           
static String PROPERTYNAME_REVIEWS
           
static String PROPERTYNAME_SMALL_IMAGE_URL
           
static String PROPERTYNAME_TITLE
           
 
Constructor Summary
Book()
           
 
Method Summary
 List getAuthors()
          Returns the list of authors.
 String getAuthorsEtAl()
          Computes and returns the first author of the given details followed by an optional , et al.
 String getBinding()
           
 String getConcatenatedAuthors()
          Computes and returns the list of authors of the given details instance as concatenated strings, separated by a colon.
 String getEditorialReview()
          Returns the editorial review.
 String getISBN()
          Returns the ISBN.
 String getListPrice()
          Returns our price.
 URL getMediumImageURL()
          Returns the URL of the medium sized image.
 String getPages()
           
 float getPrice()
           
 String getPublicationDate()
          Returns the release date.
 String getPublisher()
          Returns the manufacturer.
 List getReviews()
          Returns the list of reviews.
 URL getSmallImageURL()
          Returns the URL of the small image.
 String getTitle()
          Returns the product name.
 int getYear()
           
 void setAuthors(List authors)
          Sets the authors.
 void setBinding(String binding)
           
 void setISBN(String isbn)
          Sets the ISBN.
 void setListPrice(String listPrice)
          Sets the list price.
 void setMediumImageURL(String imageUrlMedium)
          Sets the medium image URL.
 void setPages(String pages)
           
 void setPublicationDate(String releaseDate)
          Sets the release date.
 void setPublisher(String publisher)
          Sets the publisher.
 void setReviews(List reviews)
          Sets the reviews.
 void setSmallImageURL(String imageUrlSmall)
          Sets the small image URL.
 void setTitle(String productName)
          Sets the product name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTYNAME_TITLE

public static final String PROPERTYNAME_TITLE
See Also:
Constant Field Values

PROPERTYNAME_AUTHORS

public static final String PROPERTYNAME_AUTHORS
See Also:
Constant Field Values

PROPERTYNAME_LIST_PRICE

public static final String PROPERTYNAME_LIST_PRICE
See Also:
Constant Field Values

PROPERTYNAME_BINDING

public static final String PROPERTYNAME_BINDING
See Also:
Constant Field Values

PROPERTYNAME_PAGES

public static final String PROPERTYNAME_PAGES
See Also:
Constant Field Values

PROPERTYNAME_PUBLISHER

public static final String PROPERTYNAME_PUBLISHER
See Also:
Constant Field Values

PROPERTYNAME_PUBLICATION_DATE

public static final String PROPERTYNAME_PUBLICATION_DATE
See Also:
Constant Field Values

PROPERTYNAME_ISBN

public static final String PROPERTYNAME_ISBN
See Also:
Constant Field Values

PROPERTYNAME_SMALL_IMAGE_URL

public static final String PROPERTYNAME_SMALL_IMAGE_URL
See Also:
Constant Field Values

PROPERTYNAME_MEDIUM_IMAGE_URL

public static final String PROPERTYNAME_MEDIUM_IMAGE_URL
See Also:
Constant Field Values

PROPERTYNAME_REVIEWS

public static final String PROPERTYNAME_REVIEWS
See Also:
Constant Field Values
Constructor Detail

Book

public Book()
Method Detail

getISBN

public String getISBN()
Returns the ISBN.

Returns:
the ISBN

getTitle

public String getTitle()
Returns the product name.

Returns:
String

getAuthors

public List getAuthors()
Returns the list of authors.

Returns:
the list of authors

getPublicationDate

public String getPublicationDate()
Returns the release date.

Returns:
the release date

getPublisher

public String getPublisher()
Returns the manufacturer.

Returns:
String

getSmallImageURL

public URL getSmallImageURL()
Returns the URL of the small image.

Returns:
a URL for the small image

getMediumImageURL

public URL getMediumImageURL()
Returns the URL of the medium sized image.

Returns:
String

getReviews

public List getReviews()
Returns the list of reviews.

Returns:
the list of reviews

getListPrice

public String getListPrice()
Returns our price.

Returns:
our price

setISBN

public void setISBN(String isbn)
Sets the ISBN.

Parameters:
isbn - The ISBN to set

setTitle

public void setTitle(String productName)
Sets the product name.

Parameters:
productName - The product name to set

setAuthors

public void setAuthors(List authors)
Sets the authors.

Parameters:
authors - the List of authors

setPublicationDate

public void setPublicationDate(String releaseDate)
Sets the release date.

Parameters:
releaseDate - The release date to set

setSmallImageURL

public void setSmallImageURL(String imageUrlSmall)
Sets the small image URL.

Parameters:
imageUrlSmall - The imageUrlMedium to set

setMediumImageURL

public void setMediumImageURL(String imageUrlMedium)
Sets the medium image URL.

Parameters:
imageUrlMedium - The imageUrlMedium to set

setPublisher

public void setPublisher(String publisher)
Sets the publisher.

Parameters:
publisher - The publisher to set

setListPrice

public void setListPrice(String listPrice)
Sets the list price.

Parameters:
listPrice - The price to set

setReviews

public void setReviews(List reviews)
Sets the reviews.

Parameters:
reviews - The reviews to set

getEditorialReview

public String getEditorialReview()
Returns the editorial review.

Returns:
the editorial review text

getAuthorsEtAl

public String getAuthorsEtAl()
Computes and returns the first author of the given details followed by an optional , et al.

Returns:
a string that consists of the first author and optional , et al.

getConcatenatedAuthors

public String getConcatenatedAuthors()
Computes and returns the list of authors of the given details instance as concatenated strings, separated by a colon.

Returns:
a string that consists of the concatenated authors

getPrice

public float getPrice()

getYear

public int getYear()

getBinding

public String getBinding()
Returns:
the binding.

setBinding

public void setBinding(String binding)
Parameters:
binding - the binding to set

getPages

public String getPages()
Returns:
the pages.

setPages

public void setPages(String pages)
Parameters:
pages - the pages to set


Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.