1   /*
2    * Copyright 2002-2009 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
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  
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   * @author Andres Almiray <aalmiray@users.sourceforge.net>
24   */
25  public class ObjectBean {
26     private Object parray;
27     private Object pbean;
28     private Object pboolean;
29     private Object pbyte;
30     private Object pchar;
31     private Object pclass;
32     private Object pdouble;
33     private Object pexcluded;
34     private Object pfloat;
35     private Object pfunction;
36     private Object pint;
37     private Object plist;
38     private Object plong;
39     private Object pmap;
40     private Object pshort;
41     private Object pstring;
42  
43     public Object getParray() {
44        return parray;
45     }
46  
47     public Object getPbean() {
48        return pbean;
49     }
50  
51     public Object getPboolean() {
52        return pboolean;
53     }
54  
55     public Object getPbyte() {
56        return pbyte;
57     }
58  
59     public Object getPchar() {
60        return pchar;
61     }
62  
63     public Object getPclass() {
64        return pclass;
65     }
66  
67     public Object getPdouble() {
68        return pdouble;
69     }
70  
71     public Object getPexcluded() {
72        return pexcluded;
73     }
74  
75     public Object getPfloat() {
76        return pfloat;
77     }
78  
79     public Object getPfunction() {
80        return pfunction;
81     }
82  
83     public Object getPint() {
84        return pint;
85     }
86  
87     public Object getPlist() {
88        return plist;
89     }
90  
91     public Object getPlong() {
92        return plong;
93     }
94  
95     public Object getPmap() {
96        return pmap;
97     }
98  
99     public Object getPshort() {
100       return pshort;
101    }
102 
103    public Object getPstring() {
104       return pstring;
105    }
106 
107    public void setParray( Object parray ) {
108       this.parray = parray;
109    }
110 
111    public void setPbean( Object bean ) {
112       this.pbean = bean;
113    }
114 
115    public void setPboolean( Object pboolean ) {
116       this.pboolean = pboolean;
117    }
118 
119    public void setPbyte( Object pbyte ) {
120       this.pbyte = pbyte;
121    }
122 
123    public void setPchar( Object pchar ) {
124       this.pchar = pchar;
125    }
126 
127    public void setPclass( Object pclass ) {
128       this.pclass = pclass;
129    }
130 
131    public void setPdouble( Object pdouble ) {
132       this.pdouble = pdouble;
133    }
134 
135    public void setPexcluded( Object pexcluded ) {
136       this.pexcluded = pexcluded;
137    }
138 
139    public void setPfloat( Object pfloat ) {
140       this.pfloat = pfloat;
141    }
142 
143    public void setPfunction( Object pfunction ) {
144       this.pfunction = pfunction;
145    }
146 
147    public void setPint( Object pint ) {
148       this.pint = pint;
149    }
150 
151    public void setPlist( Object plist ) {
152       this.plist = plist;
153    }
154 
155    public void setPlong( Object plong ) {
156       this.plong = plong;
157    }
158 
159    public void setPmap( Object pmap ) {
160       this.pmap = pmap;
161    }
162 
163    public void setPshort( Object pshort ) {
164       this.pshort = pshort;
165    }
166 
167    public void setPstring( Object pstring ) {
168       this.pstring = pstring;
169    }
170 
171    public String toString() {
172       return ToStringBuilder.reflectionToString( this, ToStringStyle.MULTI_LINE_STYLE );
173    }
174 }