KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > jmx > browser > mbean > ResultLine


1 /*
2
3  * EJTools, the Enterprise Java Tools
4
5  *
6
7  * Distributable under LGPL license.
8
9  * See terms of license at www.gnu.org.
10
11  */

12
13 package org.ejtools.jmx.browser.mbean;
14
15
16
17 import java.beans.beancontext.BeanContextSupport JavaDoc;
18
19
20
21 import javax.management.MBeanFeatureInfo JavaDoc;
22
23
24
25 import org.ejtools.jmx.MBeanAccessor;
26
27
28
29
30
31 /**
32
33  * Description of the Class
34
35  *
36
37  * @author letiemble
38
39  * @created 13 décembre 2001
40
41  * @version $Revision: 1.5 $
42
43  * @todo Javadoc to complete
44
45  */

46
47 public class ResultLine extends BeanContextSupport JavaDoc
48
49 {
50
51    /** Description of the Field */
52
53    protected MBeanAccessor accessor = null;
54
55    /** Description of the Field */
56
57    protected MBeanFeatureInfo JavaDoc info = null;
58
59    /** Description of the Field */
60
61    protected int type = -1;
62
63
64
65
66
67    /** Constructor */
68
69    public ResultLine() { }
70
71
72
73
74
75    /**
76
77     * Gets the objectName attribute of the ViewLine object
78
79     *
80
81     * @return The objectName value
82
83     */

84
85    public MBeanAccessor getAccessor()
86
87    {
88
89       return this.accessor;
90
91    }
92
93
94
95
96
97    /**
98
99     * Gets the name attribute of the ViewLine object
100
101     *
102
103     * @return The name value
104
105     */

106
107    public MBeanFeatureInfo JavaDoc getInfo()
108
109    {
110
111       return this.info;
112
113    }
114
115
116
117
118
119    /**
120
121     * Gets the name attribute of the ResultLine object
122
123     *
124
125     * @return The name value
126
127     */

128
129    public String JavaDoc getName()
130
131    {
132
133       return this.accessor.getCanonicalName();
134
135    }
136
137
138
139
140
141    /**
142
143     * Gets the type attribute of the ViewLine object
144
145     *
146
147     * @return The type value
148
149     */

150
151    public int getType()
152
153    {
154
155       return this.type;
156
157    }
158
159
160
161
162
163    /**
164
165     * Sets the objectName attribute of the ViewLine object
166
167     *
168
169     * @param accessor The new accessor value
170
171     */

172
173    public void setAccessor(MBeanAccessor accessor)
174
175    {
176
177       this.accessor = accessor;
178
179    }
180
181
182
183
184
185    /**
186
187     * Sets the name attribute of the ViewLine object
188
189     *
190
191     * @param info The new info value
192
193     */

194
195    public void setInfo(MBeanFeatureInfo JavaDoc info)
196
197    {
198
199       this.info = info;
200
201    }
202
203
204
205
206
207    /**
208
209     * Sets the type attribute of the ViewLine object
210
211     *
212
213     * @param type The new type value
214
215     */

216
217    public void setType(int type)
218
219    {
220
221       this.type = type;
222
223    }
224
225
226
227
228
229    /**
230
231     * Description of the Method
232
233     *
234
235     * @return Description of the Return Value
236
237     */

238
239    public String JavaDoc toString()
240
241    {
242
243       String JavaDoc result = "<undefined>";
244
245       if (this.accessor != null)
246
247       {
248
249          result = result + this.accessor.getCanonicalName();
250
251       }
252
253       if (this.info != null)
254
255       {
256
257          result = result + info.getName();
258
259       }
260
261       return result;
262
263    }
264
265 }
266
267
Popular Tags