01: package org.csvbeans.samples.fixedlength;
02:
03: import org.apache.commons.lang.builder.ToStringBuilder;
04:
05: public class Bean1 {
06: private String field1;
07:
08: private String field2;
09:
10: private Bean2 bean = new Bean2();
11:
12: public Bean2 getBean() {
13: return bean;
14: }
15:
16: public void setBean(Bean2 bean) {
17: this .bean = bean;
18: }
19:
20: public String getField1() {
21: return field1;
22: }
23:
24: public void setField1(String field1) {
25: this .field1 = field1;
26: }
27:
28: public String getField2() {
29: return field2;
30: }
31:
32: public void setField2(String field2) {
33: this .field2 = field2;
34: }
35:
36: public String toString() {
37: return ToStringBuilder.reflectionToString(this);
38: }
39: }
|