01: /*
02: * Copyright 2005 JBoss Inc
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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.drools.examples.manners;
17:
18: import java.io.Serializable;
19:
20: public class Chosen implements Serializable {
21:
22: /**
23: *
24: */
25: private static final long serialVersionUID = 400L;
26:
27: private int id;
28:
29: private String guestName;
30:
31: private Hobby hobby;
32:
33: public Chosen() {
34:
35: }
36:
37: public Chosen(final int id, final String guestName,
38: final Hobby hobby) {
39: this .id = id;
40: this .guestName = guestName;
41: this .hobby = hobby;
42: }
43:
44: public int getId() {
45: return this .id;
46: }
47:
48: public String getGuestName() {
49: return this .guestName;
50: }
51:
52: public Hobby getHobby() {
53: return this .hobby;
54: }
55:
56: public String toString() {
57: return "{Chosen id=" + this .id + ", name=" + this .guestName
58: + ", hobbies=" + this .hobby + "}";
59: }
60: }
|