KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > EventBean


1 /*
2  * Copyright 2004,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.commons.betwixt;
18
19 import java.sql.Timestamp JavaDoc;
20
21 /**
22  * Represent some kind of event.
23  * @author <a HREF='http://jakarta.apache.org/'>Jakarta Commons Team</a>
24  * @version $Revision: 1.2 $
25  */

26 public class EventBean {
27
28     private Timestamp JavaDoc start;
29     private Timestamp JavaDoc end;
30     private String JavaDoc type;
31     private String JavaDoc description;
32     
33     public EventBean() {}
34     
35     public EventBean(String JavaDoc type, String JavaDoc description, Timestamp JavaDoc start, Timestamp JavaDoc end)
36     {
37         this.type = type;
38         this.description = description;
39         this.start = start;
40         this.end = end;
41     }
42     
43     
44     public String JavaDoc getDescription() {
45         return description;
46     }
47
48     public Timestamp JavaDoc getEnd() {
49         return end;
50     }
51
52     public Timestamp JavaDoc getStart() {
53         return start;
54     }
55
56     public String JavaDoc getType() {
57         return type;
58     }
59
60     public void setDescription(String JavaDoc string) {
61         description = string;
62     }
63
64     public void setEnd(Timestamp JavaDoc timestamp) {
65         end = timestamp;
66     }
67
68     public void setStart(Timestamp JavaDoc timestamp) {
69         start = timestamp;
70     }
71
72     public void setType(String JavaDoc string) {
73         type = string;
74     }
75
76 }
77
Popular Tags