net.sourceforge.atunes.kernel.modules.amazon
Class AmazonAlbum

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.amazon.AmazonAlbum

public class AmazonAlbum
extends java.lang.Object

This class represents data about an album retrieved from Amazon Web Services It's responsible of parsing a xml document returned by Amazon containing data And example of xml document returned can be viewed in a web browser with the following url: http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&Operation=ItemSearch&SubscriptionId=06SX9FYP905XDBHBCZR2&SearchIndex=Music&Artist=Metallica&Title=Load&ResponseGroup=Images,Tracks


Constructor Summary
protected AmazonAlbum()
          Default constructor.
 
Method Summary
 java.lang.String getAlbum()
          Returns the name of the album.
protected static AmazonAlbum getAlbum(org.w3c.dom.Document xml)
          Parses xml document and gets data into a new AmazonAlbum object.
 java.lang.String getArtist()
          Returns the name of the artist.
 java.util.List<AmazonDisc> getDiscs()
          Return discs.
 java.lang.String getImageURL()
          Returns cover url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmazonAlbum

protected AmazonAlbum()
Default constructor.

Method Detail

getAlbum

protected static AmazonAlbum getAlbum(org.w3c.dom.Document xml)
Parses xml document and gets data into a new AmazonAlbum object.

Parameters:
xml - the xml
Returns:
the album

getAlbum

public java.lang.String getAlbum()
Returns the name of the album.

Returns:
the album

getArtist

public java.lang.String getArtist()
Returns the name of the artist.

Returns:
the artist

getDiscs

public java.util.List<AmazonDisc> getDiscs()
Return discs.

Returns:
the discs

getImageURL

public java.lang.String getImageURL()
Returns cover url.

Returns:
the image url


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.