FileDocCategorySizeDatePackage
CartItem.javaAPI DocJBoss 4.2.12251Fri Jul 13 20:55:58 BST 2007xpetstore.services.cart.model

CartItem

public class CartItem extends Object implements Serializable
author
Herve Tchepannou

Fields Summary
private String
itemId
private String
productId
private String
name
private String
description
private int
quantity
private double
unitCost
Constructors Summary
public CartItem(String itemId, String productId, String name, String description, int quantity, double unitCost)

        this.itemId      = itemId;
        this.productId   = productId;
        this.name        = name;
        this.description = description;
        this.quantity    = quantity;
        this.unitCost    = unitCost;
    
Methods Summary
public java.lang.StringgetDescription()

        return description;
    
public java.lang.StringgetItemId()

        return itemId;
    
public java.lang.StringgetName()

        return name;
    
public java.lang.StringgetProductId()

        return productId;
    
public intgetQuantity()

        return quantity;
    
public doublegetTotalCost()

        return quantity * unitCost;
    
public doublegetUnitCost()

        return unitCost;