View Javadoc
1   /*
2    * JBoss, Home of Professional Open Source
3    * Copyright 2014, Red Hat, Inc. and/or its affiliates, and individual
4    * contributors by the @authors tag. See the copyright.txt in the
5    * distribution for a full listing of individual contributors.
6    *
7    * Licensed under the Apache License, Version 2.0 (the "License");
8    * you may not use this file except in compliance with the License.
9    * You may obtain a copy of the License at
10   * http://www.apache.org/licenses/LICENSE-2.0
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.jboss.as.quickstart.xml;
18  
19  import java.io.Serializable;
20  import java.util.Date;
21  
22  /**
23   * Simple Java Bean which is used as a data structure. It stores information about book.
24   * 
25   * @author baranowb
26   * 
27   */
28  @SuppressWarnings("serial")
29  public class Book implements Serializable {
30  
31      private String author;
32      private String title;
33      private String genre;
34      private float price;
35      private Date publishDate;
36      private String description;
37  
38      public String getAuthor() {
39          return author;
40      }
41  
42      public void setAuthor(String author) {
43          this.author = author;
44      }
45  
46      public String getTitle() {
47          return title;
48      }
49  
50      public void setTitle(String title) {
51          this.title = title;
52      }
53  
54      public String getGenre() {
55          return genre;
56      }
57  
58      public void setGenre(String genre) {
59          this.genre = genre;
60      }
61  
62      public float getPrice() {
63          return price;
64      }
65  
66      public void setPrice(float price) {
67          this.price = price;
68      }
69  
70      public Date getPublishDate() {
71          return publishDate;
72      }
73  
74      public void setPublishDate(Date publishDate) {
75          this.publishDate = publishDate;
76      }
77  
78      public String getDescription() {
79          return description;
80      }
81  
82      public void setDescription(String description) {
83          this.description = description;
84      }
85  
86  }