Statistics
| Revision:

root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / plugins / config / generate / SelectableTool.java @ 38564

History | View | Annotate | Download (9.41 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 38564 2012-07-16 11:19:13Z jjdelcerro $
6
 */
7

    
8
package org.gvsig.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: 38564 $ $Date: 2012-07-16 13:19:13 +0200 (Mon, 16 Jul 2012) $
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 _name
43
     */
44
    private java.lang.String _name;
45

    
46
    /**
47
     * Field _actionCommand
48
     */
49
    private java.lang.String _actionCommand;
50

    
51
    /**
52
     * Field _isDefault
53
     */
54
    private boolean _isDefault;
55

    
56
    /**
57
     * keeps track of state for field: _isDefault
58
     */
59
    private boolean _has_isDefault;
60

    
61
    /**
62
     * Field _last
63
     */
64
    private boolean _last;
65

    
66
    /**
67
     * keeps track of state for field: _last
68
     */
69
    private boolean _has_last;
70

    
71
    /**
72
     * Field _icon
73
     */
74
    private java.lang.String _icon;
75

    
76
    /**
77
     * Field _tooltip
78
     */
79
    private java.lang.String _tooltip;
80

    
81
    /**
82
     * Field _enableText
83
     */
84
    private java.lang.String _enableText;
85

    
86
    /**
87
     * Field _group
88
     */
89
    private java.lang.String _group = "unico";
90

    
91
    /**
92
     * Field _position
93
     */
94
    private long _position;
95

    
96
    /**
97
     * keeps track of state for field: _position
98
     */
99
    private boolean _has_position;
100

    
101

    
102
      //----------------/
103
     //- Constructors -/
104
    //----------------/
105

    
106
    public SelectableTool() {
107
        super();
108
        setGroup("unico");
109
    } //-- com.iver.andami.plugins.config.generate.SelectableTool()
110

    
111

    
112
      //-----------/
113
     //- Methods -/
114
    //-----------/
115

    
116
    /**
117
     * Method deleteIsDefault
118
     */
119
    public void deleteIsDefault()
120
    {
121
        this._has_isDefault= false;
122
    } //-- void deleteIsDefault() 
123

    
124
    /**
125
     * Method deleteLast
126
     */
127
    public void deleteLast()
128
    {
129
        this._has_last= false;
130
    } //-- void deleteLast() 
131

    
132
    /**
133
     * Method deletePosition
134
     */
135
    public void deletePosition()
136
    {
137
        this._has_position= false;
138
    } //-- void deletePosition() 
139

    
140
    /**
141
     * Returns the value of field 'actionCommand'.
142
     * 
143
     * @return the value of field 'actionCommand'.
144
     */
145
    public java.lang.String getActionCommand()
146
    {
147
        return this._actionCommand;
148
    } //-- java.lang.String getActionCommand() 
149

    
150
    /**
151
     * Returns the value of field 'enableText'.
152
     * 
153
     * @return the value of field 'enableText'.
154
     */
155
    public java.lang.String getEnableText()
156
    {
157
        return this._enableText;
158
    } //-- java.lang.String getEnableText() 
159

    
160
    /**
161
     * Returns the value of field 'group'.
162
     * 
163
     * @return the value of field 'group'.
164
     */
165
    public java.lang.String getGroup()
166
    {
167
        return this._group;
168
    } //-- java.lang.String getGroup() 
169

    
170
    /**
171
     * Returns the value of field 'icon'.
172
     * 
173
     * @return the value of field 'icon'.
174
     */
175
    public java.lang.String getIcon()
176
    {
177
        return this._icon;
178
    } //-- java.lang.String getIcon() 
179

    
180
    /**
181
     * Returns the value of field 'isDefault'.
182
     * 
183
     * @return the value of field 'isDefault'.
184
     */
185
    public boolean getIsDefault()
186
    {
187
        return this._isDefault;
188
    } //-- boolean getIsDefault() 
189

    
190
    /**
191
     * Returns the value of field 'last'.
192
     * 
193
     * @return the value of field 'last'.
194
     */
195
    public boolean getLast()
196
    {
197
        return this._last;
198
    } //-- boolean getLast() 
199

    
200
    /**
201
     * Returns the value of field 'name'.
202
     * 
203
     * @return the value of field 'name'.
204
     */
205
    public java.lang.String getName()
206
    {
207
        return this._name;
208
    } //-- java.lang.String getName() 
209

    
210
    /**
211
     * Returns the value of field 'position'.
212
     * 
213
     * @return the value of field 'position'.
214
     */
215
    public long getPosition()
216
    {
217
        return this._position;
218
    } //-- int getPosition() 
219

    
220
    /**
221
     * Returns the value of field 'text'.
222
     * 
223
     * @return the value of field 'text'.
224
     */
225
    public java.lang.String getText()
226
    {
227
        return this._text;
228
    } //-- java.lang.String getText() 
229

    
230
    /**
231
     * Returns the value of field 'tooltip'.
232
     * 
233
     * @return the value of field 'tooltip'.
234
     */
235
    public java.lang.String getTooltip()
236
    {
237
        return this._tooltip;
238
    } //-- java.lang.String getTooltip() 
239

    
240
    /**
241
     * Method hasIsDefault
242
     */
243
    public boolean hasIsDefault()
244
    {
245
        return this._has_isDefault;
246
    } //-- boolean hasIsDefault() 
247

    
248
    /**
249
     * Method hasLast
250
     */
251
    public boolean hasLast()
252
    {
253
        return this._has_last;
254
    } //-- boolean hasLast() 
255

    
256
    /**
257
     * Method hasPosition
258
     */
259
    public boolean hasPosition()
260
    {
261
        return this._has_position;
262
    } //-- boolean hasPosition() 
263

    
264
    /**
265
     * Method isValid
266
     */
267
    public boolean isValid()
268
    {
269
        try {
270
            validate();
271
        }
272
        catch (org.exolab.castor.xml.ValidationException vex) {
273
            return false;
274
        }
275
        return true;
276
    } //-- boolean isValid() 
277

    
278
    /**
279
     * Method marshal
280
     * 
281
     * @param out
282
     */
283
    public void marshal(java.io.Writer out)
284
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
285
    {
286
        
287
        Marshaller.marshal(this, out);
288
    } //-- void marshal(java.io.Writer) 
289

    
290
    /**
291
     * Method marshal
292
     * 
293
     * @param handler
294
     */
295
    public void marshal(org.xml.sax.ContentHandler handler)
296
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
297
    {
298
        
299
        Marshaller.marshal(this, handler);
300
    } //-- void marshal(org.xml.sax.ContentHandler) 
301

    
302
    /**
303
     * Sets the value of field 'actionCommand'.
304
     * 
305
     * @param actionCommand the value of field 'actionCommand'.
306
     */
307
    public void setActionCommand(java.lang.String actionCommand)
308
    {
309
        this._actionCommand = actionCommand;
310
    } //-- void setActionCommand(java.lang.String) 
311

    
312
    /**
313
     * Sets the value of field 'enableText'.
314
     * 
315
     * @param enableText the value of field 'enableText'.
316
     */
317
    public void setEnableText(java.lang.String enableText)
318
    {
319
        this._enableText = enableText;
320
    } //-- void setEnableText(java.lang.String) 
321

    
322
    /**
323
     * Sets the value of field 'group'.
324
     * 
325
     * @param group the value of field 'group'.
326
     */
327
    public void setGroup(java.lang.String group)
328
    {
329
        this._group = group;
330
    } //-- void setGroup(java.lang.String) 
331

    
332
    /**
333
     * Sets the value of field 'icon'.
334
     * 
335
     * @param icon the value of field 'icon'.
336
     */
337
    public void setIcon(java.lang.String icon)
338
    {
339
        this._icon = icon;
340
    } //-- void setIcon(java.lang.String) 
341

    
342
    /**
343
     * Sets the value of field 'isDefault'.
344
     * 
345
     * @param isDefault the value of field 'isDefault'.
346
     */
347
    public void setIsDefault(boolean isDefault)
348
    {
349
        this._isDefault = isDefault;
350
        this._has_isDefault = true;
351
    } //-- void setIsDefault(boolean) 
352

    
353
    /**
354
     * Sets the value of field 'last'.
355
     * 
356
     * @param last the value of field 'last'.
357
     */
358
    public void setLast(boolean last)
359
    {
360
        this._last = last;
361
        this._has_last = true;
362
    } //-- void setLast(boolean) 
363

    
364
    /**
365
     * Sets the value of field 'name'.
366
     * 
367
     * @param name the value of field 'name'.
368
     */
369
    public void setName(java.lang.String name)
370
    {
371
        this._name = name;
372
    } //-- void setName(java.lang.String) 
373

    
374
    /**
375
     * Sets the value of field 'position'.
376
     * 
377
     * @param position the value of field 'position'.
378
     */
379
    public void setPosition(long position)
380
    {
381
        this._position = position;
382
        this._has_position = true;
383
    } //-- void setPosition(int) 
384

    
385
    /**
386
     * Sets the value of field 'text'.
387
     * 
388
     * @param text the value of field 'text'.
389
     */
390
    public void setText(java.lang.String text)
391
    {
392
        this._text = text;
393
    } //-- void setText(java.lang.String) 
394

    
395
    /**
396
     * Sets the value of field 'tooltip'.
397
     * 
398
     * @param tooltip the value of field 'tooltip'.
399
     */
400
    public void setTooltip(java.lang.String tooltip)
401
    {
402
        this._tooltip = tooltip;
403
    } //-- void setTooltip(java.lang.String) 
404

    
405
    /**
406
     * Method unmarshal
407
     * 
408
     * @param reader
409
     */
410
    public static java.lang.Object unmarshal(java.io.Reader reader)
411
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
412
    {
413
        return (org.gvsig.andami.plugins.config.generate.SelectableTool) Unmarshaller.unmarshal(org.gvsig.andami.plugins.config.generate.SelectableTool.class, reader);
414
    } //-- java.lang.Object unmarshal(java.io.Reader) 
415

    
416
    /**
417
     * Method validate
418
     */
419
    public void validate()
420
        throws org.exolab.castor.xml.ValidationException
421
    {
422
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
423
        validator.validate(this);
424
    } //-- void validate() 
425

    
426
}