com.sun.j2ee.blueprints.shoppingcart.cart.model
Class CartItem

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.shoppingcart.cart.model.CartItem

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

This class represents an individual line item of the shopping cart.

See Also:
Serialized Form

Constructor Summary
CartItem(java.lang.String itemId, java.lang.String productId, java.lang.String name, java.lang.String attribute, int quantity, double unitCost)
           
 
Method Summary
 java.lang.String getAttribute()
           
 java.lang.String getItemId()
           
 java.lang.String getName()
           
 java.lang.String getProductId()
           
 int getQuantity()
           
 double getTotalCost()
           
 double getUnitCost()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CartItem

public CartItem(java.lang.String itemId,
                java.lang.String productId,
                java.lang.String name,
                java.lang.String attribute,
                int quantity,
                double unitCost)
Method Detail

getItemId

public java.lang.String getItemId()

getProductId

public java.lang.String getProductId()

getName

public java.lang.String getName()

getAttribute

public java.lang.String getAttribute()

getQuantity

public int getQuantity()

getUnitCost

public double getUnitCost()

getTotalCost

public double getTotalCost()


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.