Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Book |
|
| 1.0;1 |
1 | /* | |
2 | * $$Id: Book.java 12221 2008-07-01 20:04:09Z dfeist $$ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.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 | public class Book | |
14 | { | |
15 | private long id; | |
16 | private String author; | |
17 | private String title; | |
18 | ||
19 | public Book() | |
20 | 0 | { |
21 | // empty constructor | |
22 | 0 | } |
23 | ||
24 | public Book(long id, String author, String title) | |
25 | 0 | { |
26 | 0 | this.id = id; |
27 | 0 | this.author = author; |
28 | 0 | this.title = title; |
29 | 0 | } |
30 | ||
31 | public long getId() | |
32 | { | |
33 | 0 | return id; |
34 | } | |
35 | ||
36 | public void setId(long id) | |
37 | { | |
38 | 0 | this.id = id; |
39 | 0 | } |
40 | ||
41 | public String getAuthor() | |
42 | { | |
43 | 0 | return author; |
44 | } | |
45 | ||
46 | public void setAuthor(String author) | |
47 | { | |
48 | 0 | this.author = author; |
49 | 0 | } |
50 | ||
51 | public String getTitle() | |
52 | { | |
53 | 0 | return title; |
54 | } | |
55 | ||
56 | public void setTitle(String title) | |
57 | { | |
58 | 0 | this.title = title; |
59 | 0 | } |
60 | } |