coreservlets
Class Item
java.lang.Object
|
+--coreservlets.Item
- public class Item
- extends Object
Describes a catalog item for on-line store. The itemID
uniquely identifies the item, the short description
gives brief info like the book title and author,
the long description describes the item in a couple
of sentences, and the cost gives the current per-item price.
Both the short and long descriptions can contain HTML
markup.
Taken from Core Servlets and JavaServer Pages
from Prentice Hall and Sun Microsystems Press,
http://www.coreservlets.com/.
© 2000 Marty Hall; may be freely used or adapted.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Item
public Item(String itemID,
String shortDescription,
String longDescription,
double cost)
getItemID
public String getItemID()
setItemID
protected void setItemID(String itemID)
getShortDescription
public String getShortDescription()
setShortDescription
protected void setShortDescription(String shortDescription)
getLongDescription
public String getLongDescription()
setLongDescription
protected void setLongDescription(String longDescription)
getCost
public double getCost()
setCost
protected void setCost(double cost)
 |
|---|
| CSAJSP @ amazon.com |
|---|