com.sun.j2ee.blueprints.shoppingcart.catalog.model
Class Item

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.shoppingcart.catalog.model.Item

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

This class represents a particular item in the Java Pet Store Demo. Each item belongs to particular type of product and has attributes like id,listprice etc.

See Also:
Serialized Form

Constructor Summary
Item(java.lang.String productId, java.lang.String itemId, java.lang.String attribute, double listPrice, double unitCost)
           
 
Method Summary
 java.lang.String getAttribute()
           
 java.lang.String getItemId()
           
 double getListCost()
           
 java.lang.String getProductId()
           
 double getUnitCost()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Item

public Item(java.lang.String productId,
            java.lang.String itemId,
            java.lang.String attribute,
            double listPrice,
            double unitCost)
Method Detail

getProductId

public java.lang.String getProductId()

getAttribute

public java.lang.String getAttribute()

getItemId

public java.lang.String getItemId()

getUnitCost

public double getUnitCost()

getListCost

public double getListCost()


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.