KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > pets > domain > model > IShoppingCart


1 package org.apache.tapestry.pets.domain.model;
2
3 import java.util.Collection JavaDoc;
4
5 public interface IShoppingCart
6 {
7     public int getCount();
8
9     public double getTotal();
10
11     public Collection JavaDoc getItems();
12
13     public IBasketItem getBasketItem(int index);
14
15     public void clearCart();
16
17     public void add(IBasketItem value);
18
19     public void removeAt(int index);
20
21     public void remove(String JavaDoc itemID);
22
23     public void updateInStock();
24 }
25
Popular Tags