1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.commons.jelly.core;
17
18 /***
19 * A sample bean that we can construct via Jelly tags
20 *
21 * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
22 * @version $Revision: 1.5 $
23 */
24 public class Product {
25
26 private String id;
27 private String name;
28
29 public Product() {
30 }
31
32 public String toString() {
33 return "Product[id=" + id + ";name=" + name + "]";
34 }
35
36
37
38 /***
39 * Returns the id.
40 * @return String
41 */
42 public String getId() {
43 return id;
44 }
45
46 /***
47 * Returns the name.
48 * @return String
49 */
50 public String getName() {
51 return name;
52 }
53
54 /***
55 * Sets the id.
56 * @param id The id to set
57 */
58 public void setId(String id) {
59 this.id = id;
60 }
61
62 /***
63 * Sets the name.
64 * @param name The name to set
65 */
66 public void setName(String name) {
67 this.name = name;
68 }
69
70 }