KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jbossmx > 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.jbossmx.compliance.standard.support;
23
24 /**
25  * @author <a HREF="mailto:trevor@protocool.com">Trevor Squires</a>.
26  * @author <a HREF="mailto:dimitris@jboss.org">Dimitris Andreadis</a>.
27  */

28
29 public class Torture implements TortureMBean
30 {
31    public Torture()
32    {
33    }
34
35    public Torture(String JavaDoc[][] something)
36    {
37    }
38
39    Torture(int foo)
40    {
41    }
42
43    protected Torture(String JavaDoc wibble)
44    {
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
124
public boolean isready()
125    {
126       return false;
127    }
128
129    // this is an operation
130
public Boolean JavaDoc isReady()
131    {
132       return null;
133    }
134
135    // these should be operations
136
public boolean ispeachy(int peachy)
137    {
138       return false;
139    }
140
141    public Boolean JavaDoc isPeachy(int peachy)
142    {
143       return null;
144    }
145
146    public String JavaDoc issuer()
147    {
148       return null;
149    }
150
151    public int settlement(String JavaDoc thing)
152    {
153       return 0;
154    }
155
156    public void setMulti(String JavaDoc foo, Integer JavaDoc bar)
157    {
158    }
159
160    public String JavaDoc getResult(String JavaDoc source)
161    {
162       return null;
163    }
164
165    public void setNothing()
166    {
167    }
168
169    public void getNothing()
170    {
171    }
172
173    // ok, we have an attribute called Something
174
// and an operation called getSomething...
175
public void setSomething(String JavaDoc something)
176    {
177    }
178
179    public void getSomething()
180    {
181    }
182
183    // ooh yesssss
184
public String JavaDoc[][] doSomethingCrazy(Object JavaDoc[] args, String JavaDoc[] foo, int[][][] goMental)
185    {
186       return new String JavaDoc[0][];
187    }
188 }
189
Popular Tags