View Javadoc

1   /*
2    * $$Id: Book.java 19423 2010-09-08 08:04:54Z dirk.olmes $$
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.example.bookstore;
12  
13  /**
14   * Simple class which represents a Book in the catalog of the bookstore.
15   */
16  public class Book 
17  {
18      private long id;
19      private String author;
20      private String title;
21      double price;
22  
23      public Book()
24      {
25          // empty constructor
26      }
27      
28      public Book(String author, String title, double price)
29      {
30          this.author = author;
31          this.title = title;
32          this.price = price;
33      }
34      
35      public long getId()
36      {
37          return id;
38      }
39      
40      public void setId(long id)
41      {
42          this.id = id;
43      }
44      
45      public String getAuthor()
46      {
47          return author;
48      }
49      
50      public void setAuthor(String author)
51      {
52          this.author = author;
53      }
54      
55      public String getTitle()
56      {
57          return title;
58      }
59      
60      public void setTitle(String title)
61      {
62          this.title = title;
63      }
64  
65      public double getPrice()
66      {
67          return price;
68      }
69  
70      public void setPrice(double price)
71      {
72          this.price = price;
73      }
74  }