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;
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  }