1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.betwixt;
18
19 import java.sql.Timestamp;
20
21 /***
22 * Represent some kind of event.
23 * @author <a href='http://jakarta.apache.org/'>Jakarta Commons Team</a>
24 * @version $Revision: 155402 $
25 */
26 public class EventBean {
27
28 private Timestamp start;
29 private Timestamp end;
30 private String type;
31 private String description;
32
33 public EventBean() {}
34
35 public EventBean(String type, String description, Timestamp start, Timestamp end)
36 {
37 this.type = type;
38 this.description = description;
39 this.start = start;
40 this.end = end;
41 }
42
43
44 public String getDescription() {
45 return description;
46 }
47
48 public Timestamp getEnd() {
49 return end;
50 }
51
52 public Timestamp getStart() {
53 return start;
54 }
55
56 public String getType() {
57 return type;
58 }
59
60 public void setDescription(String string) {
61 description = string;
62 }
63
64 public void setEnd(Timestamp timestamp) {
65 end = timestamp;
66 }
67
68 public void setStart(Timestamp timestamp) {
69 start = timestamp;
70 }
71
72 public void setType(String string) {
73 type = string;
74 }
75
76 }