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 Guest implements Serializable {
21: /**
22: *
23: */
24: private static final long serialVersionUID = 400L;
25:
26: private String name;
27:
28: private Sex sex;
29:
30: private Hobby hobby;
31:
32: public Guest() {
33: }
34:
35: public Guest(final String name, final Sex sex, final Hobby hobby) {
36: this .name = name;
37: this .sex = sex;
38: this .hobby = hobby;
39: }
40:
41: public String getName() {
42: return this .name;
43: }
44:
45: public Hobby getHobby() {
46: return this .hobby;
47: }
48:
49: public Sex getSex() {
50: return this .sex;
51: }
52:
53: public String toString() {
54: return "[Guest name=" + this .name + ", sex=" + this .sex
55: + ", hobbies=" + this .hobby + "]";
56: }
57: }
|