KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > holders > Book


1 package test.holders;
2
3 public class Book implements java.io.Serializable JavaDoc {
4     private java.lang.String JavaDoc author;
5     private java.lang.String JavaDoc title;
6     private int isbn;
7
8     public Book() {
9     }
10
11     public Book(
12             java.lang.String JavaDoc author,
13             int isbn,
14             java.lang.String JavaDoc title) {
15         this.author = author;
16         this.title = title;
17         this.isbn = isbn;
18     }
19
20     /**
21          * Gets the author value for this Book.
22          *
23          * @return author
24          */

25     public java.lang.String JavaDoc getAuthor() {
26         return author;
27     }
28
29     /**
30          * Sets the author value for this Book.
31          *
32          * @param author
33          */

34     public void setAuthor(java.lang.String JavaDoc author) {
35         this.author = author;
36     }
37
38     /**
39          * Gets the title value for this Book.
40          *
41          * @return title
42          */

43     public java.lang.String JavaDoc getTitle() {
44         return title;
45     }
46
47     /**
48          * Sets the title value for this Book.
49          *
50          * @param title
51          */

52     public void setTitle(java.lang.String JavaDoc title) {
53         this.title = title;
54     }
55
56     /**
57          * Gets the isbn value for this Book.
58          *
59          * @return isbn
60          */

61     public int getIsbn() {
62         return isbn;
63     }
64
65     /**
66      * Sets the isbn value for this Book.
67      *
68      * @param isbn
69      */

70     public void setIsbn(int isbn) {
71         this.isbn = isbn;
72     }
73 }
74
Popular Tags