KickJava   Java API By Example, From Geeks To Geeks.

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


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  * NullSimpleObject.
32  *
33  * @author <a HREF="adrian@jboss.com">Adrian Brock</a>
34  * @version $Revision: 1.1 $
35  */

36 public class NullSimpleObject implements SimpleInterface
37 {
38    public BigDecimal JavaDoc getBigDecimal()
39    {
40       return null;
41    }
42
43    public BigInteger JavaDoc getBigInteger()
44    {
45       return null;
46    }
47
48    public Boolean JavaDoc getBoolean()
49    {
50       return null;
51    }
52
53    public Byte JavaDoc getByte()
54    {
55       return null;
56    }
57
58    public Character JavaDoc getCharacter()
59    {
60       return null;
61    }
62
63    public Date JavaDoc getDate()
64    {
65       return null;
66    }
67
68    public Double JavaDoc getDouble()
69    {
70       return null;
71    }
72
73    public Float JavaDoc getFloat()
74    {
75       return null;
76    }
77
78    public Integer JavaDoc getInteger()
79    {
80       return null;
81    }
82
83    public Long JavaDoc getLong()
84    {
85       return null;
86    }
87
88    public ObjectName JavaDoc getObjectName()
89    {
90       return null;
91    }
92
93    public byte getPrimitiveByte()
94    {
95       return primitiveByteValue;
96    }
97
98    public char getPrimitiveChar()
99    {
100       return primitiveCharValue;
101    }
102
103    public double getPrimitiveDouble()
104    {
105       return primitiveDoubleValue;
106    }
107
108    public float getPrimitiveFloat()
109    {
110       return primitiveFloatValue;
111    }
112
113    public int getPrimitiveInt()
114    {
115       return primitiveIntValue;
116    }
117
118    public long getPrimitiveLong()
119    {
120       return primitiveLongValue;
121    }
122
123    public short getPrimitiveShort()
124    {
125       return primitiveShortValue;
126    }
127
128    public Short JavaDoc getShort()
129    {
130       return null;
131    }
132
133    public String JavaDoc getString()
134    {
135       return null;
136    }
137
138    public boolean isPrimitiveBoolean()
139    {
140       return primitiveBooleanValue;
141    }
142 }
143
Popular Tags