01: package org.mvel.tests.main.res;
02:
03: import java.util.List;
04: import java.util.ArrayList;
05:
06: public class Bar {
07: private String name = "dog";
08: private boolean woof = true;
09: private int age = 14;
10: private String assignTest = "";
11: private List testList = new ArrayList();
12:
13: public String getName() {
14: return name;
15: }
16:
17: public void setName(String name) {
18: this .name = name;
19: }
20:
21: public boolean isWoof() {
22: return woof;
23: }
24:
25: public void setWoof(boolean woof) {
26: this .woof = woof;
27: }
28:
29: public int getAge() {
30: return age;
31: }
32:
33: public void setAge(int age) {
34: this .age = age;
35: }
36:
37: public boolean isFoo(Object obj) {
38: return obj instanceof Foo;
39: }
40:
41: public String getAssignTest() {
42: return assignTest;
43: }
44:
45: public void setAssignTest(String assignTest) {
46: this .assignTest = assignTest;
47: }
48:
49: public List getTestList() {
50: return testList;
51: }
52:
53: public void setTestList(List testList) {
54: this .testList = testList;
55: }
56:
57: public String happy() {
58: return "happyBar";
59: }
60:
61: public static int staticMethod() {
62: return 1;
63: }
64:
65: public boolean equals(Object o) {
66: return o instanceof Bar;
67: }
68: }
|