svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / SelectableTool.java @ 6431
History | View | Annotate | Download (8.89 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 6431 2006-07-19 10:41:35Z cesar $
|
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: 6431 $ $Date: 2006-07-19 12:41:35 +0200 (Wed, 19 Jul 2006) $
|
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 |
* Field _position
|
88 |
*/
|
89 |
private int _position; |
90 |
|
91 |
/**
|
92 |
* keeps track of state for field: _position
|
93 |
*/
|
94 |
private boolean _has_position; |
95 |
|
96 |
|
97 |
//----------------/
|
98 |
//- Constructors -/
|
99 |
//----------------/
|
100 |
|
101 |
public SelectableTool() {
|
102 |
super();
|
103 |
setGroup("unico");
|
104 |
} //-- com.iver.andami.plugins.config.generate.SelectableTool()
|
105 |
|
106 |
|
107 |
//-----------/
|
108 |
//- Methods -/
|
109 |
//-----------/
|
110 |
|
111 |
/**
|
112 |
* Method deleteIsDefault
|
113 |
*/
|
114 |
public void deleteIsDefault() |
115 |
{ |
116 |
this._has_isDefault= false; |
117 |
} //-- void deleteIsDefault()
|
118 |
|
119 |
/**
|
120 |
* Method deleteLast
|
121 |
*/
|
122 |
public void deleteLast() |
123 |
{ |
124 |
this._has_last= false; |
125 |
} //-- void deleteLast()
|
126 |
|
127 |
/**
|
128 |
* Method deletePosition
|
129 |
*/
|
130 |
public void deletePosition() |
131 |
{ |
132 |
this._has_position= false; |
133 |
} //-- void deletePosition()
|
134 |
|
135 |
/**
|
136 |
* Returns the value of field 'actionCommand'.
|
137 |
*
|
138 |
* @return the value of field 'actionCommand'.
|
139 |
*/
|
140 |
public java.lang.String getActionCommand()
|
141 |
{ |
142 |
return this._actionCommand; |
143 |
} //-- java.lang.String getActionCommand()
|
144 |
|
145 |
/**
|
146 |
* Returns the value of field 'enableText'.
|
147 |
*
|
148 |
* @return the value of field 'enableText'.
|
149 |
*/
|
150 |
public java.lang.String getEnableText()
|
151 |
{ |
152 |
return this._enableText; |
153 |
} //-- java.lang.String getEnableText()
|
154 |
|
155 |
/**
|
156 |
* Returns the value of field 'group'.
|
157 |
*
|
158 |
* @return the value of field 'group'.
|
159 |
*/
|
160 |
public java.lang.String getGroup()
|
161 |
{ |
162 |
return this._group; |
163 |
} //-- java.lang.String getGroup()
|
164 |
|
165 |
/**
|
166 |
* Returns the value of field 'icon'.
|
167 |
*
|
168 |
* @return the value of field 'icon'.
|
169 |
*/
|
170 |
public java.lang.String getIcon()
|
171 |
{ |
172 |
return this._icon; |
173 |
} //-- java.lang.String getIcon()
|
174 |
|
175 |
/**
|
176 |
* Returns the value of field 'isDefault'.
|
177 |
*
|
178 |
* @return the value of field 'isDefault'.
|
179 |
*/
|
180 |
public boolean getIsDefault() |
181 |
{ |
182 |
return this._isDefault; |
183 |
} //-- boolean getIsDefault()
|
184 |
|
185 |
/**
|
186 |
* Returns the value of field 'last'.
|
187 |
*
|
188 |
* @return the value of field 'last'.
|
189 |
*/
|
190 |
public boolean getLast() |
191 |
{ |
192 |
return this._last; |
193 |
} //-- boolean getLast()
|
194 |
|
195 |
/**
|
196 |
* Returns the value of field 'position'.
|
197 |
*
|
198 |
* @return the value of field 'position'.
|
199 |
*/
|
200 |
public int getPosition() |
201 |
{ |
202 |
return this._position; |
203 |
} //-- int getPosition()
|
204 |
|
205 |
/**
|
206 |
* Returns the value of field 'text'.
|
207 |
*
|
208 |
* @return the value of field 'text'.
|
209 |
*/
|
210 |
public java.lang.String getText()
|
211 |
{ |
212 |
return this._text; |
213 |
} //-- java.lang.String getText()
|
214 |
|
215 |
/**
|
216 |
* Returns the value of field 'tooltip'.
|
217 |
*
|
218 |
* @return the value of field 'tooltip'.
|
219 |
*/
|
220 |
public java.lang.String getTooltip()
|
221 |
{ |
222 |
return this._tooltip; |
223 |
} //-- java.lang.String getTooltip()
|
224 |
|
225 |
/**
|
226 |
* Method hasIsDefault
|
227 |
*/
|
228 |
public boolean hasIsDefault() |
229 |
{ |
230 |
return this._has_isDefault; |
231 |
} //-- boolean hasIsDefault()
|
232 |
|
233 |
/**
|
234 |
* Method hasLast
|
235 |
*/
|
236 |
public boolean hasLast() |
237 |
{ |
238 |
return this._has_last; |
239 |
} //-- boolean hasLast()
|
240 |
|
241 |
/**
|
242 |
* Method hasPosition
|
243 |
*/
|
244 |
public boolean hasPosition() |
245 |
{ |
246 |
return this._has_position; |
247 |
} //-- boolean hasPosition()
|
248 |
|
249 |
/**
|
250 |
* Method isValid
|
251 |
*/
|
252 |
public boolean isValid() |
253 |
{ |
254 |
try {
|
255 |
validate(); |
256 |
} |
257 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
258 |
return false; |
259 |
} |
260 |
return true; |
261 |
} //-- boolean isValid()
|
262 |
|
263 |
/**
|
264 |
* Method marshal
|
265 |
*
|
266 |
* @param out
|
267 |
*/
|
268 |
public void marshal(java.io.Writer out) |
269 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
270 |
{ |
271 |
|
272 |
Marshaller.marshal(this, out);
|
273 |
} //-- void marshal(java.io.Writer)
|
274 |
|
275 |
/**
|
276 |
* Method marshal
|
277 |
*
|
278 |
* @param handler
|
279 |
*/
|
280 |
public void marshal(org.xml.sax.ContentHandler handler) |
281 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
282 |
{ |
283 |
|
284 |
Marshaller.marshal(this, handler);
|
285 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
286 |
|
287 |
/**
|
288 |
* Sets the value of field 'actionCommand'.
|
289 |
*
|
290 |
* @param actionCommand the value of field 'actionCommand'.
|
291 |
*/
|
292 |
public void setActionCommand(java.lang.String actionCommand) |
293 |
{ |
294 |
this._actionCommand = actionCommand;
|
295 |
} //-- void setActionCommand(java.lang.String)
|
296 |
|
297 |
/**
|
298 |
* Sets the value of field 'enableText'.
|
299 |
*
|
300 |
* @param enableText the value of field 'enableText'.
|
301 |
*/
|
302 |
public void setEnableText(java.lang.String enableText) |
303 |
{ |
304 |
this._enableText = enableText;
|
305 |
} //-- void setEnableText(java.lang.String)
|
306 |
|
307 |
/**
|
308 |
* Sets the value of field 'group'.
|
309 |
*
|
310 |
* @param group the value of field 'group'.
|
311 |
*/
|
312 |
public void setGroup(java.lang.String group) |
313 |
{ |
314 |
this._group = group;
|
315 |
} //-- void setGroup(java.lang.String)
|
316 |
|
317 |
/**
|
318 |
* Sets the value of field 'icon'.
|
319 |
*
|
320 |
* @param icon the value of field 'icon'.
|
321 |
*/
|
322 |
public void setIcon(java.lang.String icon) |
323 |
{ |
324 |
this._icon = icon;
|
325 |
} //-- void setIcon(java.lang.String)
|
326 |
|
327 |
/**
|
328 |
* Sets the value of field 'isDefault'.
|
329 |
*
|
330 |
* @param isDefault the value of field 'isDefault'.
|
331 |
*/
|
332 |
public void setIsDefault(boolean isDefault) |
333 |
{ |
334 |
this._isDefault = isDefault;
|
335 |
this._has_isDefault = true; |
336 |
} //-- void setIsDefault(boolean)
|
337 |
|
338 |
/**
|
339 |
* Sets the value of field 'last'.
|
340 |
*
|
341 |
* @param last the value of field 'last'.
|
342 |
*/
|
343 |
public void setLast(boolean last) |
344 |
{ |
345 |
this._last = last;
|
346 |
this._has_last = true; |
347 |
} //-- void setLast(boolean)
|
348 |
|
349 |
/**
|
350 |
* Sets the value of field 'position'.
|
351 |
*
|
352 |
* @param position the value of field 'position'.
|
353 |
*/
|
354 |
public void setPosition(int position) |
355 |
{ |
356 |
this._position = position;
|
357 |
this._has_position = true; |
358 |
} //-- void setPosition(int)
|
359 |
|
360 |
/**
|
361 |
* Sets the value of field 'text'.
|
362 |
*
|
363 |
* @param text the value of field 'text'.
|
364 |
*/
|
365 |
public void setText(java.lang.String text) |
366 |
{ |
367 |
this._text = text;
|
368 |
} //-- void setText(java.lang.String)
|
369 |
|
370 |
/**
|
371 |
* Sets the value of field 'tooltip'.
|
372 |
*
|
373 |
* @param tooltip the value of field 'tooltip'.
|
374 |
*/
|
375 |
public void setTooltip(java.lang.String tooltip) |
376 |
{ |
377 |
this._tooltip = tooltip;
|
378 |
} //-- void setTooltip(java.lang.String)
|
379 |
|
380 |
/**
|
381 |
* Method unmarshal
|
382 |
*
|
383 |
* @param reader
|
384 |
*/
|
385 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
386 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
387 |
{ |
388 |
return (com.iver.andami.plugins.config.generate.SelectableTool) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.SelectableTool.class, reader);
|
389 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
390 |
|
391 |
/**
|
392 |
* Method validate
|
393 |
*/
|
394 |
public void validate() |
395 |
throws org.exolab.castor.xml.ValidationException
|
396 |
{ |
397 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
398 |
validator.validate(this);
|
399 |
} //-- void validate()
|
400 |
|
401 |
} |