root / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / SelectableTool.java @ 598
History | View | Annotate | Download (7.96 KB)
1 |
/*
|
---|---|
2 |
* This class was automatically generated with
|
3 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
4 |
* Schema.
|
5 |
* $Id: SelectableTool.java 598 2004-12-22 10:11:38Z fernando $
|
6 |
*/
|
7 |
|
8 |
package com.iver.andami.plugins.config.generate; |
9 |
|
10 |
//---------------------------------/
|
11 |
//- Imported classes and packages -/
|
12 |
//---------------------------------/
|
13 |
|
14 |
import java.io.IOException; |
15 |
import java.io.Reader; |
16 |
import java.io.Serializable; |
17 |
import java.io.Writer; |
18 |
import org.exolab.castor.xml.MarshalException; |
19 |
import org.exolab.castor.xml.Marshaller; |
20 |
import org.exolab.castor.xml.Unmarshaller; |
21 |
import org.exolab.castor.xml.ValidationException; |
22 |
import org.xml.sax.ContentHandler; |
23 |
|
24 |
/**
|
25 |
* Class SelectableTool.
|
26 |
*
|
27 |
* @version $Revision: 598 $ $Date: 2004-12-22 11:11:38 +0100 (Wed, 22 Dec 2004) $
|
28 |
*/
|
29 |
public class SelectableTool implements java.io.Serializable { |
30 |
|
31 |
|
32 |
//--------------------------/
|
33 |
//- Class/Member Variables -/
|
34 |
//--------------------------/
|
35 |
|
36 |
/**
|
37 |
* Field _text
|
38 |
*/
|
39 |
private java.lang.String _text;
|
40 |
|
41 |
/**
|
42 |
* Field _actionCommand
|
43 |
*/
|
44 |
private java.lang.String _actionCommand;
|
45 |
|
46 |
/**
|
47 |
* Field _isDefault
|
48 |
*/
|
49 |
private boolean _isDefault; |
50 |
|
51 |
/**
|
52 |
* keeps track of state for field: _isDefault
|
53 |
*/
|
54 |
private boolean _has_isDefault; |
55 |
|
56 |
/**
|
57 |
* Field _last
|
58 |
*/
|
59 |
private boolean _last; |
60 |
|
61 |
/**
|
62 |
* keeps track of state for field: _last
|
63 |
*/
|
64 |
private boolean _has_last; |
65 |
|
66 |
/**
|
67 |
* Field _icon
|
68 |
*/
|
69 |
private java.lang.String _icon;
|
70 |
|
71 |
/**
|
72 |
* Field _tooltip
|
73 |
*/
|
74 |
private java.lang.String _tooltip;
|
75 |
|
76 |
/**
|
77 |
* Field _enableText
|
78 |
*/
|
79 |
private java.lang.String _enableText;
|
80 |
|
81 |
/**
|
82 |
* Field _group
|
83 |
*/
|
84 |
private java.lang.String _group = "unico"; |
85 |
|
86 |
|
87 |
//----------------/
|
88 |
//- Constructors -/
|
89 |
//----------------/
|
90 |
|
91 |
public SelectableTool() {
|
92 |
super();
|
93 |
setGroup("unico");
|
94 |
} //-- com.iver.andami.plugins.config.generate.SelectableTool()
|
95 |
|
96 |
|
97 |
//-----------/
|
98 |
//- Methods -/
|
99 |
//-----------/
|
100 |
|
101 |
/**
|
102 |
* Method deleteIsDefault
|
103 |
*/
|
104 |
public void deleteIsDefault() |
105 |
{ |
106 |
this._has_isDefault= false; |
107 |
} //-- void deleteIsDefault()
|
108 |
|
109 |
/**
|
110 |
* Method deleteLast
|
111 |
*/
|
112 |
public void deleteLast() |
113 |
{ |
114 |
this._has_last= false; |
115 |
} //-- void deleteLast()
|
116 |
|
117 |
/**
|
118 |
* Returns the value of field 'actionCommand'.
|
119 |
*
|
120 |
* @return the value of field 'actionCommand'.
|
121 |
*/
|
122 |
public java.lang.String getActionCommand()
|
123 |
{ |
124 |
return this._actionCommand; |
125 |
} //-- java.lang.String getActionCommand()
|
126 |
|
127 |
/**
|
128 |
* Returns the value of field 'enableText'.
|
129 |
*
|
130 |
* @return the value of field 'enableText'.
|
131 |
*/
|
132 |
public java.lang.String getEnableText()
|
133 |
{ |
134 |
return this._enableText; |
135 |
} //-- java.lang.String getEnableText()
|
136 |
|
137 |
/**
|
138 |
* Returns the value of field 'group'.
|
139 |
*
|
140 |
* @return the value of field 'group'.
|
141 |
*/
|
142 |
public java.lang.String getGroup()
|
143 |
{ |
144 |
return this._group; |
145 |
} //-- java.lang.String getGroup()
|
146 |
|
147 |
/**
|
148 |
* Returns the value of field 'icon'.
|
149 |
*
|
150 |
* @return the value of field 'icon'.
|
151 |
*/
|
152 |
public java.lang.String getIcon()
|
153 |
{ |
154 |
return this._icon; |
155 |
} //-- java.lang.String getIcon()
|
156 |
|
157 |
/**
|
158 |
* Returns the value of field 'isDefault'.
|
159 |
*
|
160 |
* @return the value of field 'isDefault'.
|
161 |
*/
|
162 |
public boolean getIsDefault() |
163 |
{ |
164 |
return this._isDefault; |
165 |
} //-- boolean getIsDefault()
|
166 |
|
167 |
/**
|
168 |
* Returns the value of field 'last'.
|
169 |
*
|
170 |
* @return the value of field 'last'.
|
171 |
*/
|
172 |
public boolean getLast() |
173 |
{ |
174 |
return this._last; |
175 |
} //-- boolean getLast()
|
176 |
|
177 |
/**
|
178 |
* Returns the value of field 'text'.
|
179 |
*
|
180 |
* @return the value of field 'text'.
|
181 |
*/
|
182 |
public java.lang.String getText()
|
183 |
{ |
184 |
return this._text; |
185 |
} //-- java.lang.String getText()
|
186 |
|
187 |
/**
|
188 |
* Returns the value of field 'tooltip'.
|
189 |
*
|
190 |
* @return the value of field 'tooltip'.
|
191 |
*/
|
192 |
public java.lang.String getTooltip()
|
193 |
{ |
194 |
return this._tooltip; |
195 |
} //-- java.lang.String getTooltip()
|
196 |
|
197 |
/**
|
198 |
* Method hasIsDefault
|
199 |
*/
|
200 |
public boolean hasIsDefault() |
201 |
{ |
202 |
return this._has_isDefault; |
203 |
} //-- boolean hasIsDefault()
|
204 |
|
205 |
/**
|
206 |
* Method hasLast
|
207 |
*/
|
208 |
public boolean hasLast() |
209 |
{ |
210 |
return this._has_last; |
211 |
} //-- boolean hasLast()
|
212 |
|
213 |
/**
|
214 |
* Method isValid
|
215 |
*/
|
216 |
public boolean isValid() |
217 |
{ |
218 |
try {
|
219 |
validate(); |
220 |
} |
221 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
222 |
return false; |
223 |
} |
224 |
return true; |
225 |
} //-- boolean isValid()
|
226 |
|
227 |
/**
|
228 |
* Method marshal
|
229 |
*
|
230 |
* @param out
|
231 |
*/
|
232 |
public void marshal(java.io.Writer out) |
233 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
234 |
{ |
235 |
|
236 |
Marshaller.marshal(this, out);
|
237 |
} //-- void marshal(java.io.Writer)
|
238 |
|
239 |
/**
|
240 |
* Method marshal
|
241 |
*
|
242 |
* @param handler
|
243 |
*/
|
244 |
public void marshal(org.xml.sax.ContentHandler handler) |
245 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
246 |
{ |
247 |
|
248 |
Marshaller.marshal(this, handler);
|
249 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
250 |
|
251 |
/**
|
252 |
* Sets the value of field 'actionCommand'.
|
253 |
*
|
254 |
* @param actionCommand the value of field 'actionCommand'.
|
255 |
*/
|
256 |
public void setActionCommand(java.lang.String actionCommand) |
257 |
{ |
258 |
this._actionCommand = actionCommand;
|
259 |
} //-- void setActionCommand(java.lang.String)
|
260 |
|
261 |
/**
|
262 |
* Sets the value of field 'enableText'.
|
263 |
*
|
264 |
* @param enableText the value of field 'enableText'.
|
265 |
*/
|
266 |
public void setEnableText(java.lang.String enableText) |
267 |
{ |
268 |
this._enableText = enableText;
|
269 |
} //-- void setEnableText(java.lang.String)
|
270 |
|
271 |
/**
|
272 |
* Sets the value of field 'group'.
|
273 |
*
|
274 |
* @param group the value of field 'group'.
|
275 |
*/
|
276 |
public void setGroup(java.lang.String group) |
277 |
{ |
278 |
this._group = group;
|
279 |
} //-- void setGroup(java.lang.String)
|
280 |
|
281 |
/**
|
282 |
* Sets the value of field 'icon'.
|
283 |
*
|
284 |
* @param icon the value of field 'icon'.
|
285 |
*/
|
286 |
public void setIcon(java.lang.String icon) |
287 |
{ |
288 |
this._icon = icon;
|
289 |
} //-- void setIcon(java.lang.String)
|
290 |
|
291 |
/**
|
292 |
* Sets the value of field 'isDefault'.
|
293 |
*
|
294 |
* @param isDefault the value of field 'isDefault'.
|
295 |
*/
|
296 |
public void setIsDefault(boolean isDefault) |
297 |
{ |
298 |
this._isDefault = isDefault;
|
299 |
this._has_isDefault = true; |
300 |
} //-- void setIsDefault(boolean)
|
301 |
|
302 |
/**
|
303 |
* Sets the value of field 'last'.
|
304 |
*
|
305 |
* @param last the value of field 'last'.
|
306 |
*/
|
307 |
public void setLast(boolean last) |
308 |
{ |
309 |
this._last = last;
|
310 |
this._has_last = true; |
311 |
} //-- void setLast(boolean)
|
312 |
|
313 |
/**
|
314 |
* Sets the value of field 'text'.
|
315 |
*
|
316 |
* @param text the value of field 'text'.
|
317 |
*/
|
318 |
public void setText(java.lang.String text) |
319 |
{ |
320 |
this._text = text;
|
321 |
} //-- void setText(java.lang.String)
|
322 |
|
323 |
/**
|
324 |
* Sets the value of field 'tooltip'.
|
325 |
*
|
326 |
* @param tooltip the value of field 'tooltip'.
|
327 |
*/
|
328 |
public void setTooltip(java.lang.String tooltip) |
329 |
{ |
330 |
this._tooltip = tooltip;
|
331 |
} //-- void setTooltip(java.lang.String)
|
332 |
|
333 |
/**
|
334 |
* Method unmarshal
|
335 |
*
|
336 |
* @param reader
|
337 |
*/
|
338 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
339 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
340 |
{ |
341 |
return (com.iver.andami.plugins.config.generate.SelectableTool) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.SelectableTool.class, reader);
|
342 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
343 |
|
344 |
/**
|
345 |
* Method validate
|
346 |
*/
|
347 |
public void validate() |
348 |
throws org.exolab.castor.xml.ValidationException
|
349 |
{ |
350 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
351 |
validator.validate(this);
|
352 |
} //-- void validate()
|
353 |
|
354 |
} |