KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jmx > compliance > standard > support > Torture


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, 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.jmx.compliance.standard.support;
23
24 /**
25  * @author <a HREF="mailto:trevor@protocool.com">Trevor Squires</a>.
26  */

27
28 public class Torture implements TortureMBean
29 {
30    public Torture()
31    {
32    }
33
34    public Torture(String JavaDoc[][] something)
35    {
36    }
37
38    Torture(int foo)
39    {
40    }
41
42    protected Torture(String JavaDoc wibble)
43    {
44       this(0d);
45    }
46
47    private Torture(double trouble)
48    {
49    }
50
51    public String JavaDoc getNiceString()
52    {
53       return null;
54    }
55
56    public void setNiceString(String JavaDoc nice)
57    {
58    }
59
60    public boolean isNiceBoolean()
61    {
62       return false;
63    }
64
65    public void setNiceBoolean(boolean nice)
66    {
67    }
68
69    public void setInt(int foo)
70    {
71    }
72
73    public void setIntArray(int[] foo)
74    {
75    }
76
77    public void setNestedIntArray(int[][][] foo)
78    {
79    }
80
81    public void setInteger(Integer JavaDoc foo)
82    {
83    }
84
85    public void setIntegerArray(Integer JavaDoc[] foo)
86    {
87    }
88
89    public void setNestedIntegerArray(Integer JavaDoc[][][] foo)
90    {
91    }
92
93    public int getMyinteger()
94    {
95       return 0;
96    }
97
98    public int[] getMyintegerArray()
99    {
100       return new int[0];
101    }
102
103    public int[][][] getMyNestedintegerArray()
104    {
105       return new int[0][][];
106    }
107
108    public Integer JavaDoc getMyInteger()
109    {
110       return null;
111    }
112
113    public Integer JavaDoc[] getMyIntegerArray()
114    {
115       return new Integer JavaDoc[0];
116    }
117
118    public Integer JavaDoc[][][] getMyNestedIntegerArray()
119    {
120       return new Integer JavaDoc[0][][];
121    }
122
123    // these should give an isIs right?
124
public boolean isready()
125    {
126       return false;
127    }
128
129    public Boolean JavaDoc getReady()
130    {
131       return null;
132    }
133
134    // these should be operations
135
public boolean ispeachy(int peachy)
136    {
137       return false;
138    }
139
140    public Boolean JavaDoc isPeachy(int peachy)
141    {
142       return null;
143    }
144
145    public String JavaDoc issuer()
146    {
147       return null;
148    }
149
150    public int settlement(String JavaDoc thing)
151    {
152       return 0;
153    }
154
155    public void setMulti(String JavaDoc foo, Integer JavaDoc bar)
156    {
157    }
158
159    public String JavaDoc getResult(String JavaDoc source)
160    {
161       return null;
162    }
163
164    public void setNothing()
165    {
166    }
167
168    public void getNothing()
169    {
170    }
171
172    // ok, we have an attribute called Something
173
// and an operation called getSomething...
174
public void setSomething(String JavaDoc something)
175    {
176    }
177
178    public void getSomething()
179    {
180    }
181
182    // ooh yesssss
183
public String JavaDoc[][] doSomethingCrazy(Object JavaDoc[] args, String JavaDoc[] foo, int[][][] goMental)
184    {
185       return new String JavaDoc[0][];
186    }
187 }
188
Popular Tags