org.apache.taglibs.rdc.sampleapps.musicstore.ws
Class MusicAlbum

java.lang.Object
  extended by org.apache.taglibs.rdc.sampleapps.musicstore.ws.Item
      extended by org.apache.taglibs.rdc.sampleapps.musicstore.ws.MusicAlbum
All Implemented Interfaces:
java.io.Serializable

public class MusicAlbum
extends Item
implements java.io.Serializable

Class representing a music album.

Author:
Jaroslav Gergic, Rahul Akolkar, Thomas Ling
See Also:
Serialized Form

Field Summary
protected  java.lang.String artist
           
static java.text.SimpleDateFormat DATE_FORMAT
           
protected  int[] genres
           
protected  java.lang.String label
           
protected  OfferSummary offerSummary
           
protected  java.util.Date releaseDate
           
protected  Image smallImage
           
 
Fields inherited from class org.apache.taglibs.rdc.sampleapps.musicstore.ws.Item
aSIN, listPrice, productGroup, rank, title
 
Constructor Summary
MusicAlbum(java.lang.String asin, java.lang.String group, java.lang.String title, int listPrice, java.lang.String artist, java.util.Date releaseDate, java.lang.String label, int rank)
           
 
Method Summary
 java.lang.String getArtist()
          Access method for the artist property.
 java.lang.String getDetails()
          Get the album details
 int[] getGenres()
          Access method for the genres property.
 java.lang.String getLabel()
          Access method for the label property.
 OfferSummary getOfferSummary()
           
 java.util.Date getReleaseDate()
          Access method for the releaseDate property.
 Image getSmallImage()
           
 java.lang.String getSummary()
          Get the album summary
 void setGenres(int[] aGenres)
          Sets the value of the genres property.
 void setOfferSummary(OfferSummary offerSummary)
           
 void setSmallImage(Image smallImage)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.taglibs.rdc.sampleapps.musicstore.ws.Item
getASIN, getListPrice, getProductGroup, getRank, getTitle, innerToString, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

artist

protected java.lang.String artist

releaseDate

protected java.util.Date releaseDate

label

protected java.lang.String label

DATE_FORMAT

public static java.text.SimpleDateFormat DATE_FORMAT

genres

protected int[] genres

smallImage

protected Image smallImage

offerSummary

protected OfferSummary offerSummary
Constructor Detail

MusicAlbum

public MusicAlbum(java.lang.String asin,
                  java.lang.String group,
                  java.lang.String title,
                  int listPrice,
                  java.lang.String artist,
                  java.util.Date releaseDate,
                  java.lang.String label,
                  int rank)
Parameters:
asin -
group -
title -
listPrice -
artist -
releaseDate -
label -
rank -
Method Detail

getArtist

public java.lang.String getArtist()
Access method for the artist property.

Returns:
the current value of the artist property

getReleaseDate

public java.util.Date getReleaseDate()
Access method for the releaseDate property.

Returns:
the current value of the releaseDate property

getLabel

public java.lang.String getLabel()
Access method for the label property.

Returns:
the current value of the label property

getGenres

public int[] getGenres()
Access method for the genres property.

Returns:
the current value of the genres property

setGenres

public void setGenres(int[] aGenres)
Sets the value of the genres property.

Parameters:
aGenres - the new value of the genres property

getSmallImage

public Image getSmallImage()
Returns:
Returns the smallImage.

setSmallImage

public void setSmallImage(Image smallImage)
Parameters:
smallImage - The smallImage to set.

getOfferSummary

public OfferSummary getOfferSummary()
Returns:
Returns the price offer summary.

setOfferSummary

public void setOfferSummary(OfferSummary offerSummary)
Parameters:
offerSummary - The offerSummary to set.

getSummary

public java.lang.String getSummary()
Get the album summary

Returns:
java.lang.String The album summary

getDetails

public java.lang.String getDetails()
Get the album details

Returns:
java.lang.String The album details

toString

public java.lang.String toString()
Overrides:
toString in class Item
Returns:
java.lang.String


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.