1 package org.apache.commons.digester3.examples.api.catalog;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 public class Book
24 implements Item
25 {
26
27 private String isbn;
28
29 private String title;
30
31 private String author;
32
33 private String desc;
34
35 public Book( String isbn )
36 {
37 this.isbn = isbn;
38 }
39
40 public void setTitle( String title )
41 {
42 this.title = title;
43 }
44
45 public void setAuthor( String author )
46 {
47 this.author = author;
48 }
49
50 public void setDesc( String desc )
51 {
52 this.desc = desc;
53 }
54
55 public void print()
56 {
57 System.out.println( "Book:" );
58 System.out.println( " isbn=" + isbn );
59 System.out.println( " title=" + title );
60 System.out.println( " author=" + author );
61 System.out.println( " desc=" + desc );
62 }
63
64 }