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 PrimitiveBean
29  {
30     private int[] parray;
31     private ObjectBean pbean;
32     private boolean pboolean;
33     private byte pbyte;
34     private char pchar;
35     private Class pclass;
36     private double pdouble;
37     private float pfloat;
38     private int 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 ObjectBean getPbean()
51     {
52        return pbean;
53     }
54  
55     public byte getPbyte()
56     {
57        return pbyte;
58     }
59  
60     public char getPchar()
61     {
62        return pchar;
63     }
64  
65     public Class getPclass()
66     {
67        return pclass;
68     }
69  
70     public double getPdouble()
71     {
72        return pdouble;
73     }
74  
75     public float getPfloat()
76     {
77        return pfloat;
78     }
79  
80     public int getPint()
81     {
82        return pint;
83     }
84  
85     public List getPlist()
86     {
87        return plist;
88     }
89  
90     public long getPlong()
91     {
92        return plong;
93     }
94  
95     public Map getPmap()
96     {
97        return pmap;
98     }
99  
100    public short getPshort()
101    {
102       return pshort;
103    }
104 
105    public String getPstring()
106    {
107       return pstring;
108    }
109 
110    public boolean isPboolean()
111    {
112       return pboolean;
113    }
114 
115    public void setParray( int[] parray )
116    {
117       this.parray = parray;
118    }
119 
120    public void setPbean( ObjectBean 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( char 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( int 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 }