01: package org.drools.decisiontable;
02:
03: /*
04: * Copyright 2005 JBoss Inc
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: public class Person {
20: private String name;
21: private String likes;
22: private int age;
23:
24: private char sex;
25:
26: private boolean alive;
27:
28: private String status;
29:
30: public Person() {
31:
32: }
33:
34: public Person(final String name) {
35: this (name, "", 0);
36: }
37:
38: public Person(final String name, final String likes) {
39: this (name, likes, 0);
40: }
41:
42: public Person(final String name, final String likes, final int age) {
43: this .name = name;
44: this .likes = likes;
45: this .age = age;
46: }
47:
48: public String getStatus() {
49: return this .status;
50: }
51:
52: public void setStatus(final String status) {
53: this .status = status;
54: }
55:
56: public String getLikes() {
57: return this .likes;
58: }
59:
60: public String getName() {
61: return this .name;
62: }
63:
64: public int getAge() {
65: return this .age;
66: }
67:
68: public boolean isAlive() {
69: return this .alive;
70: }
71:
72: public void setAlive(final boolean alive) {
73: this .alive = alive;
74: }
75:
76: public char getSex() {
77: return this .sex;
78: }
79:
80: public void setSex(final char sex) {
81: this .sex = sex;
82: }
83:
84: public String toString() {
85: return "[Person name='" + this .name + "']";
86: }
87: }
|