01: /*
02: * GolfShop
03: *
04: * Enhydra super-servlet specification object
05: *
06: */
07:
08: package golfShop.spec.cart;
09:
10: import java.util.Enumeration;
11:
12: public interface Cart {
13:
14: public void addItem(long ObjectId);
15:
16: public void removeItem(long ObjectId);
17:
18: public void setQuantity(long ObjectId, int quantity);
19:
20: public int getQuantity(long ObjectId);
21:
22: public double getTotal();
23:
24: public Enumeration getContents();
25:
26: public boolean isEmpty();
27:
28: public void reset();
29:
30: public boolean canUndo();
31:
32: public boolean canRedo();
33:
34: public void doneModifying();
35:
36: public void undo();
37:
38: public void redo();
39:
40: }
|