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

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

public class Item
extends java.lang.Object
implements java.io.Serializable

A generic Amazon Item - an unspecified type It should be normally abstract, but having it a concrete class allows us to proceed with generic item operations (like searches)

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

Field Summary
protected  java.lang.String aSIN
           
protected  int listPrice
          Price in US dollars multiplied by 100 (no decimal symbol required)
protected  java.lang.String productGroup
           
protected  int rank
           
protected  java.lang.String title
           
 
Constructor Summary
Item(java.lang.String asin, java.lang.String productGroup, java.lang.String title, int listPrice, int rank)
           
 
Method Summary
 java.lang.String getASIN()
          Access method for the aSIN property.
 int getListPrice()
          Access method for the listPrice property.
 java.lang.String getProductGroup()
          Access method for the productGroup property.
 int getRank()
           
 java.lang.String getTitle()
          Access method for the title property.
protected  void innerToString(java.lang.StringBuffer buf)
           
 void setTitle(java.lang.String title)
          Set title property.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

aSIN

protected java.lang.String aSIN

productGroup

protected java.lang.String productGroup

title

protected java.lang.String title

rank

protected int rank

listPrice

protected int listPrice
Price in US dollars multiplied by 100 (no decimal symbol required)

Constructor Detail

Item

public Item(java.lang.String asin,
            java.lang.String productGroup,
            java.lang.String title,
            int listPrice,
            int rank)
Parameters:
asin -
productGroup -
title -
listPrice -
rank -
Method Detail

getASIN

public java.lang.String getASIN()
Access method for the aSIN property.

Returns:
the current value of the aSIN property

getProductGroup

public java.lang.String getProductGroup()
Access method for the productGroup property.

Returns:
the current value of the productGroup property

setTitle

public void setTitle(java.lang.String title)
Set title property.

Parameters:
title - The new value of the title property

getTitle

public java.lang.String getTitle()
Access method for the title property.

Returns:
the current value of the title property

getListPrice

public int getListPrice()
Access method for the listPrice property.

Returns:
the current value of the listPrice property

innerToString

protected void innerToString(java.lang.StringBuffer buf)
Parameters:
buf -

toString

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

getRank

public int getRank()
Returns:
Returns the rank.


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