01: package org.drools.base;
02:
03: import java.util.Collections;
04: import java.util.List;
05:
06: /*
07: * Copyright 2005 JBoss Inc
08: *
09: * Licensed under the Apache License, Version 2.0 (the "License");
10: * you may not use this file except in compliance with the License.
11: * You may obtain a copy of the License at
12: *
13: * http://www.apache.org/licenses/LICENSE-2.0
14: *
15: * Unless required by applicable law or agreed to in writing, software
16: * distributed under the License is distributed on an "AS IS" BASIS,
17: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18: * See the License for the specific language governing permissions and
19: * limitations under the License.
20: */
21:
22: public class TestBean {
23: private final String name = "michael";
24: private final int age = 42;
25:
26: private final boolean booleanAttr = true;
27: private final byte byteAttr = 1;
28: private final char charAttr = 'a';
29: private final short shortAttr = 3;
30: private final int intAttr = 4;
31: private final long longAttr = 5;
32: private final float floatAttr = 6.0f;
33: private final double doubleAttr = 7.0;
34: private final List listAttr = Collections.EMPTY_LIST;
35: private final Object nullAttr = null;
36:
37: public String getName() {
38: return this .name;
39: }
40:
41: public int getAge() {
42: return this .age;
43: }
44:
45: public boolean isBooleanAttr() {
46: return this .booleanAttr;
47: }
48:
49: public byte getByteAttr() {
50: return this .byteAttr;
51: }
52:
53: public char getCharAttr() {
54: return this .charAttr;
55: }
56:
57: public double getDoubleAttr() {
58: return this .doubleAttr;
59: }
60:
61: public float getFloatAttr() {
62: return this .floatAttr;
63: }
64:
65: public int getIntAttr() {
66: return this .intAttr;
67: }
68:
69: public List getListAttr() {
70: return this .listAttr;
71: }
72:
73: public long getLongAttr() {
74: return this .longAttr;
75: }
76:
77: public short getShortAttr() {
78: return this .shortAttr;
79: }
80:
81: public Object getNullAttr() {
82: return this.nullAttr;
83: }
84: }
|