com.melloware.jukes.ws
Class AmazonItem

java.lang.Object
  extended by com.melloware.jukes.ws.AmazonItem

public final class AmazonItem
extends Object

Wrapper class for an Amazon Product to mask the complexity from the user and provide easy accessor methods to the data contained within.

Copyright (c) 1999-2007 Melloware, Inc.

Version:
4.0 AZ Development 2010
Author:
Emil A. Lefkof III

Constructor Summary
AmazonItem(Node aAmazonItem)
          Default constructor based on Amazon search result.
 
Method Summary
 boolean equals(Object obj)
          Default Equals method.
 String getArtist()
          Gets the artist.
 Image getBestImage()
          Tries first large, then medium, then small
 int getBestImageHeight()
          Gets the bestImageHeight.
 String getBestImageUrl()
          Tries first large, then medium, then small
 int getBestImageWidth()
          Gets the bestImageWidth.
 String getDisc()
          Gets the disc.
 String getItemId()
          Gets the itemId.
 Image getLargeImage()
          Gets the largeImage.
 String getLargeImageUrl()
          Gets the largeImageUrl.
 Image getMediumImage()
          Gets the mediumImage.
 String getMediumImageUrl()
          Gets the mediumImageUrl.
 String getReleaseDate()
          Gets the releaseDate.
 String getReleaseYear()
          Gets the releaseYear.
 Image getSmallestImage()
          Tries first small, then medium, then large
 Image getSmallImage()
          Gets the smallImage.
 String getSmallImageUrl()
          Gets the smallImageUrl.
 Collection getTracks()
          Gets the tracks.
 int hashCode()
          Default hashcode method.
 String toString()
          Default toString() method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmazonItem

public AmazonItem(Node aAmazonItem)
Default constructor based on Amazon search result.

Method Detail

getDisc

public String getDisc()
Gets the disc.

Returns:
Returns the disc.

getArtist

public String getArtist()
Gets the artist.

Returns:
Returns the artist.

getItemId

public String getItemId()
Gets the itemId.

Returns:
Returns the itemId.

getBestImageUrl

public String getBestImageUrl()
Tries first large, then medium, then small

Returns:
Returns the best fit url

getBestImage

public Image getBestImage()
Tries first large, then medium, then small

Returns:
Returns the best fit image

getSmallestImage

public Image getSmallestImage()
Tries first small, then medium, then large

Returns:
Returns the best fit image

getLargeImage

public Image getLargeImage()
Gets the largeImage.

Returns:
Returns the largeImage.

getLargeImageUrl

public String getLargeImageUrl()
Gets the largeImageUrl.

Returns:
Returns the largeImageUrl.

getMediumImage

public Image getMediumImage()
Gets the mediumImage.

Returns:
Returns the mediumImage.

getMediumImageUrl

public String getMediumImageUrl()
Gets the mediumImageUrl.

Returns:
Returns the mediumImageUrl.

getReleaseDate

public String getReleaseDate()
Gets the releaseDate.

Returns:
Returns the releaseDate.

getReleaseYear

public String getReleaseYear()
Gets the releaseYear.

Returns:
Returns the releaseYear.

getSmallImage

public Image getSmallImage()
Gets the smallImage.

Returns:
Returns the smallImage.

getSmallImageUrl

public String getSmallImageUrl()
Gets the smallImageUrl.

Returns:
Returns the smallImageUrl.

getTracks

public Collection getTracks()
Gets the tracks.

Returns:
Returns the tracks.

equals

public boolean equals(Object obj)
Default Equals method.

Overrides:
equals in class Object

hashCode

public int hashCode()
Default hashcode method.

Overrides:
hashCode in class Object

toString

public String toString()
Default toString() method.

Overrides:
toString in class Object

getBestImageHeight

public int getBestImageHeight()
Gets the bestImageHeight.

Returns:
Returns the bestImageHeight.

getBestImageWidth

public int getBestImageWidth()
Gets the bestImageWidth.

Returns:
Returns the bestImageWidth.


Copyright © 1999-2010 Melloware Inc. All Rights Reserved.