KickJava   Java API By Example, From Geeks To Geeks.

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


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.ObjectName JavaDoc;
22
23
24
25
26
27 /**
28
29  * Description of the Class
30
31  *
32
33  * @author letiemble
34
35  * @created 13 décembre 2001
36
37  * @version $Revision: 1.5 $
38
39  * @todo Javadoc to complete
40
41  */

42
43 public class ViewLine extends BeanContextSupport JavaDoc
44
45 {
46
47    /** Description of the Field */
48
49    protected String JavaDoc name = "<undefined>";
50
51    /** Description of the Field */
52
53    protected ObjectName JavaDoc objectName = null;
54
55    /** Description of the Field */
56
57    protected int type = -1;
58
59
60
61
62
63    /** Constructor */
64
65    public ViewLine() { }
66
67
68
69
70
71    /**
72
73     * Gets the name attribute of the ViewLine object
74
75     *
76
77     * @return The name value
78
79     */

80
81    public String JavaDoc getName()
82
83    {
84
85       return this.name;
86
87    }
88
89
90
91
92
93    /**
94
95     * Gets the objectName attribute of the ViewLine object
96
97     *
98
99     * @return The objectName value
100
101     */

102
103    public ObjectName JavaDoc getObjectName()
104
105    {
106
107       return this.objectName;
108
109    }
110
111
112
113
114
115    /**
116
117     * Gets the type attribute of the ViewLine object
118
119     *
120
121     * @return The type value
122
123     */

124
125    public int getType()
126
127    {
128
129       return this.type;
130
131    }
132
133
134
135
136
137    /**
138
139     * Sets the name attribute of the ViewLine object
140
141     *
142
143     * @param name The new name value
144
145     */

146
147    public void setName(String JavaDoc name)
148
149    {
150
151       this.name = name;
152
153    }
154
155
156
157
158
159    /**
160
161     * Sets the objectName attribute of the ViewLine object
162
163     *
164
165     * @param objectName The new objectName value
166
167     */

168
169    public void setObjectName(ObjectName JavaDoc objectName)
170
171    {
172
173       this.objectName = objectName;
174
175    }
176
177
178
179
180
181    /**
182
183     * Sets the type attribute of the ViewLine object
184
185     *
186
187     * @param type The new type value
188
189     */

190
191    public void setType(int type)
192
193    {
194
195       this.type = type;
196
197    }
198
199
200
201
202
203    /**
204
205     * Description of the Method
206
207     *
208
209     * @return Description of the Return Value
210
211     */

212
213    public String JavaDoc toString()
214
215    {
216
217       return (this.objectName != null) ? (this.objectName.getCanonicalName()) : ("<undefined>");
218
219    }
220
221 }
222
223
Popular Tags