1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.json.sample;
18
19 import org.apache.commons.lang.builder.ToStringBuilder;
20 import org.apache.commons.lang.builder.ToStringStyle;
21
22
23
24
25 public class BeanC {
26 private BeanA beanA = new BeanA();
27 private BeanB beanB = new BeanB();
28
29 public BeanA getBeanA() {
30 return beanA;
31 }
32
33 public BeanB getBeanB() {
34 return beanB;
35 }
36
37 public void setBeanA( BeanA beanA ) {
38 this.beanA = beanA;
39 }
40
41 public void setBeanB( BeanB beanB ) {
42 this.beanB = beanB;
43 }
44
45 public String toString() {
46 return ToStringBuilder.reflectionToString( this, ToStringStyle.MULTI_LINE_STYLE );
47 }
48 }