View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.example.bookstore;
8   
9   /**
10   * Simple class which represents a Book Order.
11   */
12  public class Order 
13  {
14      private Book book;
15      private int quantity;
16      /** Shipping address */
17      private String address;
18      /** E-mail address used to receive order notifications */
19      private String email;
20      
21      public Order()
22      {
23          // empty constructor
24      }
25      
26      public Order(Book book, int quantity, String address, String email)
27      {
28          this.book = book;
29          this.quantity = quantity;
30          this.address = address;
31          this.email = email;
32      }
33      
34      public Book getBook()
35      {
36          return book;
37      }
38  
39      public void setBook(Book book)
40      {
41          this.book = book;
42      }
43  
44      public int getQuantity()
45      {
46          return quantity;
47      }
48  
49      public void setQuantity(int quantity)
50      {
51          this.quantity = quantity;
52      }
53  
54      public String getAddress()
55      {
56          return address;
57      }
58  
59      public void setAddress(String address)
60      {
61          this.address = address;
62      }
63  
64      public String getEmail()
65      {
66          return email;
67      }
68  
69      public void setEmail(String email)
70      {
71          this.email = email;
72      }
73  }