KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > golfShop > spec > cart > CartItem


1 /*
2  * Enhydra Java Application Server
3  * The Initial Developer of the Original Code is Lutris Technologies Inc.
4  * Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies
5  * Inc.
6  * All Rights Reserved.
7  *
8  * The contents of this file are subject to the Enhydra Public License Version
9  * 1.0 (the "License"); you may not use this file except in compliance with the
10  * License. You may obtain a copy of the License at
11  * http://www.enhydra.org/software/license/epl.html
12  *
13  * Software distributed under the License is distributed on an "AS IS" basis,
14  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
15  * License for the specific language governing rights and limitations under the
16  * License.
17  *
18  *
19  */

20
21 /**
22     This interface defines the required functions of the items stored
23     in the shopping cart. The functions are used to search the cart, and
24     to create descriptions of the cart's contents.
25     Items are referenced by an ObjectId. This
26     must be a uniqe identifier, different for each item.
27     This interface exists so that the shopping cart may be reused in
28     other contexts, with other objects. It also allows the cart to hold
29     multiple kinds of items, even if they are unrelated.
30 */

31
32 package golfShop.spec.cart;
33
34 import java.lang.String JavaDoc;
35
36 public interface CartItem {
37     long getObjectId();
38     String JavaDoc getName();
39     double getPrice();
40     String JavaDoc getDescription();
41 }
42
Popular Tags