/*
 * $$Id: Book.java 19191 2010-08-25 21:05:23Z tcarlson $$
 * --------------------------------------------------------------------------------------
 * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */

package org.mule.example.bookstore;

/**
 * Simple class which represents a Book in the catalog of the bookstore.
 */
public class Book 
{
    private long id;
    private String author;
    private String title;
    double price;

    public Book()
    {
        // empty constructor
    }
    
    public Book(String author, String title, double price)
    {
        this.author = author;
        this.title = title;
        this.price = price;
    }
    
    public long getId()
    {
        return id;
    }
    
    public void setId(long id)
    {
        this.id = id;
    }
    
    public String getAuthor()
    {
        return author;
    }
    
    public void setAuthor(String author)
    {
        this.author = author;
    }
    
    public String getTitle()
    {
        return title;
    }
    
    public void setTitle(String title)
    {
        this.title = title;
    }

    public double getPrice()
    {
        return price;
    }

    public void setPrice(double price)
    {
        this.price = price;
    }
}
