/**
 * Copyright (c) 2005 Red Hat, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 *
 * Component of: Red Hat Application Server
 *
 * Initial Developers: Gregory Lapouchnian
 *                     Patrick Smith
 * --------------------------------------------------------------------------
 * $Id$
 * --------------------------------------------------------------------------
 */
package olstore.client;

import java.awt.image.BufferedImage;

/**
 * A representation of a single item on sale in the store.
 */
public class Item {

    /** The title of this item. */
    private String title;

    /** The description for this item. */
    private String description;

    /** The price of this item. */
    private String price;

    /** The product category for this item. */
    private String category;

    /** The unique ID for this item. */
    private String id;

    /** The image for this item. */
    private BufferedImage image;

    /**
     * A single item from the catalog.
     * @param title item's name
     * @param description item's description
     * @param price the price
     * @param category the product category
     * @param id the unique ID
     * @param image an image showing this item
     */
    public Item(String title, String description, String price,
            String category, String id, BufferedImage image) {

        this.title = title;
        this.description = description;
        this.price = price;
        this.category = category;
        this.id = id;
        this.image = image;
    }

    /**
     * Get the product category.
     * @return Returns the category.
     */
    public String getCategory() {
        return category;
    }

    /**
     * Set the product category.
     * @param category The category to set.
     */
    public void setCategory(String category) {
        this.category = category;
    }

    /**
     * Get the description of this item.
     * @return Returns the description.
     */
    public String getDescription() {
        return description;
    }

    /**
     * Set the description for this item.
     * @param description
     *            The description to set.
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * Get the image showing this item.
     * @return Returns the image.
     */
    public BufferedImage getImage() {
        return image;
    }

    /**
     * Set the image that represents this item.
     * @param image The image to set.
     */
    public void setImage(BufferedImage image) {
        this.image = image;
    }

    /**
     * Get the price for this item.
     * @return Returns the price.
     */
    public String getPrice() {
        return price;
    }

    /**
     * Set the price for this item.
     * @param price The price to set.
     */
    public void setPrice(String price) {
        this.price = price;
    }

    /**
     * Get the title for this item.
     * @return Returns the title.
     */
    public String getTitle() {
        return title;
    }

    /**
     * Set the title for this item.
     * @param title The title to set.
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * Get the ID for this item.
     * @return The ID for this item.
     */
    public String getId() {
        return id;
    }
}
