KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright 2001-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 package org.apache.commons.betwixt;
17
18 import java.util.Date JavaDoc;
19
20
21 /** Simple bean
22   *
23   * @author <a HREF="mailto:rdonkin@apache.org">Robert Burrell Donkin</a>
24   * @version $Revision: 1.4 $
25   */

26 public class PartyBean {
27     
28     private String JavaDoc excuse;
29     private Date JavaDoc dateOfParty;
30     private AddressBean venue;
31     private int fromHour;
32     
33     public PartyBean () {}
34     
35     public PartyBean(String JavaDoc excuse, Date JavaDoc date, int fromHour, AddressBean venue) {
36         setExcuse(excuse);
37         setDateOfParty(date);
38         setVenue(venue);
39         setFromHour(fromHour);
40     }
41     
42     public String JavaDoc getExcuse() {
43         return excuse;
44     }
45     
46     public void setExcuse(String JavaDoc excuse) {
47         this.excuse = excuse;
48     }
49     
50     public Date JavaDoc getDateOfParty() {
51         return dateOfParty;
52     }
53     
54     public void setDateOfParty(Date JavaDoc dateOfParty) {
55         this.dateOfParty = dateOfParty;
56     }
57     
58     public AddressBean getVenue() {
59         return venue;
60     }
61     
62     public void setVenue(AddressBean venue) {
63         this.venue = venue;
64     }
65     
66     public int getFromHour() {
67         return fromHour;
68     }
69     
70     public void setFromHour(int fromHour) {
71         this.fromHour = fromHour;
72     }
73 }
74
75
Popular Tags