01: /*
02: *
03: * Copyright 2005 Joe Walker
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18: package uk.ltd.getahead.dwrdemo.test;
19:
20: /**
21: * @author Joe Walker [joe at getahead dot ltd dot uk]
22: */
23: public class TestBean {
24: /**
25: *
26: */
27: public TestBean() {
28: }
29:
30: /**
31: * @param string
32: * @param integer
33: * @param testBean
34: */
35: public TestBean(int integer, String string, TestBean testBean) {
36: this .string = string;
37: this .integer = integer;
38: this .testBean = testBean;
39: }
40:
41: /**
42: * @return Returns the integer.
43: */
44: public int getInteger() {
45: return integer;
46: }
47:
48: /**
49: * @param integer The integer to set.
50: */
51: public void setInteger(int integer) {
52: this .integer = integer;
53: }
54:
55: /**
56: * @return Returns the string.
57: */
58: public String getString() {
59: return string;
60: }
61:
62: /**
63: * @param string The string to set.
64: */
65: public void setString(String string) {
66: this .string = string;
67: }
68:
69: /**
70: * @return Returns the testBean.
71: */
72: public TestBean getTestBean() {
73: return testBean;
74: }
75:
76: /**
77: * @param testBean The testBean to set.
78: */
79: public void setTestBean(TestBean testBean) {
80: this .testBean = testBean;
81: }
82:
83: private String string = "Default initial value";
84: private int integer = 0;
85: private TestBean testBean = null;
86: }
|