KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > mx > mxbean > support > SimpleObject


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2006, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.test.mx.mxbean.support;
23
24 import java.math.BigDecimal JavaDoc;
25 import java.math.BigInteger JavaDoc;
26 import java.util.Date JavaDoc;
27
28 import javax.management.ObjectName JavaDoc;
29
30 /**
31  * SimpleObject.
32  *
33  * @author <a HREF="adrian@jboss.com">Adrian Brock</a>
34  * @version $Revision: 1.1 $
35  */

36 public class SimpleObject implements SimpleInterface
37 {
38    private BigDecimal JavaDoc bigDecimal = bigDecimalValue;
39    private BigInteger JavaDoc bigInteger = bigIntegerValue;
40    private Boolean JavaDoc booleanV = booleanValue;
41    private Byte JavaDoc byteV = byteValue;
42    private Character JavaDoc characterV = characterValue;
43    private Date JavaDoc date = dateValue;
44    private Double JavaDoc doubleV = doubleValue;
45    private Float JavaDoc floatV = floatValue;
46    private Integer JavaDoc integer = integerValue;
47    private Long JavaDoc longV = longValue;
48    private ObjectName JavaDoc objectName = objectNameValue;
49    private boolean primitiveBoolean = primitiveBooleanValue;
50    private byte primitiveByte = primitiveByteValue;
51    private char primitiveChar = primitiveCharValue;
52    private double primitiveDouble = primitiveDoubleValue;
53    private float primitiveFloat = primitiveFloatValue;
54    private int primitiveInt = primitiveIntValue;
55    private long primitiveLong = primitiveLongValue;
56    private Short JavaDoc shortV = shortValue;
57    private short primitiveShort = primitiveShortValue;
58    private String JavaDoc string = stringValue;
59
60    public BigDecimal JavaDoc getBigDecimal()
61    {
62       return bigDecimal;
63    }
64    
65    public BigInteger JavaDoc getBigInteger()
66    {
67       return bigInteger;
68    }
69
70    public Boolean JavaDoc getBoolean()
71    {
72       return booleanV;
73    }
74
75    public Byte JavaDoc getByte()
76    {
77       return byteV;
78    }
79    
80    public Character JavaDoc getCharacter()
81    {
82       return characterV;
83    }
84
85    public Date JavaDoc getDate()
86    {
87       return date;
88    }
89
90    public Double JavaDoc getDouble()
91    {
92       return doubleV;
93    }
94
95    public Float JavaDoc getFloat()
96    {
97       return floatV;
98    }
99
100    public Integer JavaDoc getInteger()
101    {
102       return integer;
103    }
104
105    public Long JavaDoc getLong()
106    {
107       return longV;
108    }
109
110    public ObjectName JavaDoc getObjectName()
111    {
112       return objectName;
113    }
114
115    public byte getPrimitiveByte()
116    {
117       return primitiveByte;
118    }
119
120    public char getPrimitiveChar()
121    {
122       return primitiveChar;
123    }
124
125    public double getPrimitiveDouble()
126    {
127       return primitiveDouble;
128    }
129
130    public float getPrimitiveFloat()
131    {
132       return primitiveFloat;
133    }
134
135    public int getPrimitiveInt()
136    {
137       return primitiveInt;
138    }
139
140    public long getPrimitiveLong()
141    {
142       return primitiveLong;
143    }
144
145    public short getPrimitiveShort()
146    {
147       return primitiveShort;
148    }
149
150    public Short JavaDoc getShort()
151    {
152       return shortV;
153    }
154
155    public String JavaDoc getString()
156    {
157       return string;
158    }
159
160    public boolean isPrimitiveBoolean()
161    {
162       return primitiveBoolean;
163    }
164
165    public void setBoolean(Boolean JavaDoc booleanV)
166    {
167       this.booleanV = booleanV;
168    }
169
170    public void setByte(Byte JavaDoc byteV)
171    {
172       this.byteV = byteV;
173    }
174
175    public void setCharacter(Character JavaDoc characterV)
176    {
177       this.characterV = characterV;
178    }
179    
180    public void setDouble(Double JavaDoc doubleV)
181    {
182       this.doubleV = doubleV;
183    }
184    
185    public void setFloat(Float JavaDoc floatV)
186    {
187       this.floatV = floatV;
188    }
189
190    public void setLong(Long JavaDoc longV)
191    {
192       this.longV = longV;
193    }
194
195    public void setShort(Short JavaDoc shortV)
196    {
197       this.shortV = shortV;
198    }
199
200    public void setBigDecimal(BigDecimal JavaDoc bigDecimal)
201    {
202       this.bigDecimal = bigDecimal;
203    }
204
205    public void setBigInteger(BigInteger JavaDoc bigInteger)
206    {
207       this.bigInteger = bigInteger;
208    }
209
210    public void setDate(Date JavaDoc date)
211    {
212       this.date = date;
213    }
214
215    public void setInteger(Integer JavaDoc integer)
216    {
217       this.integer = integer;
218    }
219
220    public void setObjectName(ObjectName JavaDoc objectName)
221    {
222       this.objectName = objectName;
223    }
224
225    public void setPrimitiveBoolean(boolean primitiveBoolean)
226    {
227       this.primitiveBoolean = primitiveBoolean;
228    }
229
230    public void setPrimitiveByte(byte primitiveByte)
231    {
232       this.primitiveByte = primitiveByte;
233    }
234
235    public void setPrimitiveChar(char primitiveChar)
236    {
237       this.primitiveChar = primitiveChar;
238    }
239
240    public void setPrimitiveDouble(double primitiveDouble)
241    {
242       this.primitiveDouble = primitiveDouble;
243    }
244
245    public void setPrimitiveFloat(float primitiveFloat)
246    {
247       this.primitiveFloat = primitiveFloat;
248    }
249
250    public void setPrimitiveInt(int primitiveInt)
251    {
252       this.primitiveInt = primitiveInt;
253    }
254
255    public void setPrimitiveLong(long primitiveLong)
256    {
257       this.primitiveLong = primitiveLong;
258    }
259
260    public void setPrimitiveShort(short primitiveShort)
261    {
262       this.primitiveShort = primitiveShort;
263    }
264
265    public void setString(String JavaDoc string)
266    {
267       this.string = string;
268    }
269 }
270
Popular Tags