com.sun.j2ee.blueprints.shoppingcart.catalog.model
Class Category

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.shoppingcart.catalog.model.Category

public class Category
extends java.lang.Object
implements java.io.Serializable

This class represents different categories of pets in the Java Pet Store Demo. Each category can have one or more products under it and each product in turn can have one or more inventory items under it. For example, the Java Pet Store Demo currently has five categories: birds, cats, dogs, fish, and reptiles.

See Also:
Serialized Form

Constructor Summary
Category(java.lang.String id, java.lang.String name, java.lang.String description)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Category

public Category(java.lang.String id,
                java.lang.String name,
                java.lang.String description)
Method Detail

getId

public java.lang.String getId()

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.