01: /*
02: * Copyright 2005 Joe Walker
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.getahead.dwrdemo.marshall;
17:
18: /**
19: * @author Joe Walker [joe at getahead dot ltd dot uk]
20: */
21: public class TestBean {
22: /**
23: *
24: */
25: public TestBean() {
26: }
27:
28: /**
29: * @param string
30: * @param integer
31: * @param testBean
32: */
33: public TestBean(int integer, String string, TestBean testBean) {
34: this .string = string;
35: this .integer = integer;
36: this .testBean = testBean;
37: }
38:
39: /**
40: * @return Returns the integer.
41: */
42: public int getInteger() {
43: return integer;
44: }
45:
46: /**
47: * @param integer The integer to set.
48: */
49: public void setInteger(int integer) {
50: this .integer = integer;
51: }
52:
53: /**
54: * @return Returns the string.
55: */
56: public String getString() {
57: return string;
58: }
59:
60: /**
61: * @param string The string to set.
62: */
63: public void setString(String string) {
64: this .string = string;
65: }
66:
67: /**
68: * @return Returns the testBean.
69: */
70: public TestBean getTestBean() {
71: return testBean;
72: }
73:
74: /**
75: * @param testBean The testBean to set.
76: */
77: public void setTestBean(TestBean testBean) {
78: this .testBean = testBean;
79: }
80:
81: private String string = "Default initial value";
82:
83: private int integer = 0;
84:
85: private TestBean testBean = null;
86: }
|