1   /*
2    * Copyright 2006-2007-2007 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.ezmorph.bean.sample;
18  
19  import java.util.List;
20  import java.util.Map;
21  
22  import org.apache.commons.lang.builder.ToStringBuilder;
23  import org.apache.commons.lang.builder.ToStringStyle;
24  
25  /**
26   * @author Andres Almiray <aalmiray@users.sourceforge.net>
27   */
28  public class TypedBean
29  {
30     private int[] parray;
31     private TypedBean pbean;
32     private Boolean pboolean;
33     private Byte pbyte;
34     private Character pchar;
35     private Class pclass;
36     private Double pdouble;
37     private Float pfloat;
38     private Integer pint;
39     private List plist;
40     private Long plong;
41     private Map pmap;
42     private Short pshort;
43     private String pstring;
44  
45     public int[] getParray()
46     {
47        return parray;
48     }
49  
50     public TypedBean getPbean()
51     {
52        return pbean;
53     }
54  
55     public Boolean getPboolean()
56     {
57        return pboolean;
58     }
59  
60     public Byte getPbyte()
61     {
62        return pbyte;
63     }
64  
65     public Character getPchar()
66     {
67        return pchar;
68     }
69  
70     public Class getPclass()
71     {
72        return pclass;
73     }
74  
75     public Double getPdouble()
76     {
77        return pdouble;
78     }
79  
80     public Float getPfloat()
81     {
82        return pfloat;
83     }
84  
85     public Integer getPint()
86     {
87        return pint;
88     }
89  
90     public List getPlist()
91     {
92        return plist;
93     }
94  
95     public Long getPlong()
96     {
97        return plong;
98     }
99  
100    public Map getPmap()
101    {
102       return pmap;
103    }
104 
105    public Short getPshort()
106    {
107       return pshort;
108    }
109 
110    public String getPstring()
111    {
112       return pstring;
113    }
114 
115    public void setParray( int[] parray )
116    {
117       this.parray = parray;
118    }
119 
120    public void setPbean( TypedBean pbean )
121    {
122       this.pbean = pbean;
123    }
124 
125    public void setPboolean( Boolean pboolean )
126    {
127       this.pboolean = pboolean;
128    }
129 
130    public void setPbyte( Byte pbyte )
131    {
132       this.pbyte = pbyte;
133    }
134 
135    public void setPchar( Character pchar )
136    {
137       this.pchar = pchar;
138    }
139 
140    public void setPclass( Class pclass )
141    {
142       this.pclass = pclass;
143    }
144 
145    public void setPdouble( Double pdouble )
146    {
147       this.pdouble = pdouble;
148    }
149 
150    public void setPfloat( Float pfloat )
151    {
152       this.pfloat = pfloat;
153    }
154 
155    public void setPint( Integer pint )
156    {
157       this.pint = pint;
158    }
159 
160    public void setPlist( List plist )
161    {
162       this.plist = plist;
163    }
164 
165    public void setPlong( Long plong )
166    {
167       this.plong = plong;
168    }
169 
170    public void setPmap( Map pmap )
171    {
172       this.pmap = pmap;
173    }
174 
175    public void setPshort( Short pshort )
176    {
177       this.pshort = pshort;
178    }
179 
180    public void setPstring( String pstring )
181    {
182       this.pstring = pstring;
183    }
184 
185    public String toString()
186    {
187       return ToStringBuilder.reflectionToString( this, ToStringStyle.MULTI_LINE_STYLE );
188    }
189 }