Order the Book

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.


Constructor Summary
Item(String itemID, String shortDescription, String longDescription, double cost)
           
 
Method Summary
 double getCost()
           
 String getItemID()
           
 String getLongDescription()
           
 String getShortDescription()
           
protected  void setCost(double cost)
           
protected  void setItemID(String itemID)
           
protected  void setLongDescription(String longDescription)
           
protected  void setShortDescription(String shortDescription)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Item

public Item(String itemID,
            String shortDescription,
            String longDescription,
            double cost)
Method Detail

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)

Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive