Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / plugins / config / generate / ActionTool.java @ 38564

History | View | Annotate | Download (8.53 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: ActionTool.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 ActionTool.
26
 * 
27
 * @version $Revision: 38564 $ $Date: 2012-07-16 13:19:13 +0200 (Mon, 16 Jul 2012) $
28
 */
29
public class ActionTool 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 _icon
53
     */
54
    private java.lang.String _icon;
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 _tooltip
68
     */
69
    private java.lang.String _tooltip;
70

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

    
76
    /**
77
     * Field _position
78
     */
79
    private long _position;
80

    
81
    /**
82
     * keeps track of state for field: _position
83
     */
84
    private boolean _has_position;
85

    
86

    
87
      //----------------/
88
     //- Constructors -/
89
    //----------------/
90

    
91
    public ActionTool() {
92
        super();
93
    } //-- com.iver.andami.plugins.config.generate.ActionTool()
94

    
95

    
96
      //-----------/
97
     //- Methods -/
98
    //-----------/
99

    
100
    /**
101
     * Method deleteLast
102
     */
103
    public void deleteLast()
104
    {
105
        this._has_last= false;
106
    } //-- void deleteLast() 
107

    
108
    /**
109
     * Method deletePosition
110
     */
111
    public void deletePosition()
112
    {
113
        this._has_position= false;
114
    } //-- void deletePosition() 
115

    
116
    /**
117
     * Returns the value of field 'actionCommand'.
118
     * 
119
     * @return the value of field 'actionCommand'.
120
     */
121
    public java.lang.String getActionCommand()
122
    {
123
        return this._actionCommand;
124
    } //-- java.lang.String getActionCommand() 
125

    
126
    /**
127
     * Returns the value of field 'enableText'.
128
     * 
129
     * @return the value of field 'enableText'.
130
     */
131
    public java.lang.String getEnableText()
132
    {
133
        return this._enableText;
134
    } //-- java.lang.String getEnableText() 
135

    
136
    /**
137
     * Returns the value of field 'icon'.
138
     * 
139
     * @return the value of field 'icon'.
140
     */
141
    public java.lang.String getIcon()
142
    {
143
        return this._icon;
144
    } //-- java.lang.String getIcon() 
145

    
146
    /**
147
     * Returns the value of field 'last'.
148
     * 
149
     * @return the value of field 'last'.
150
     */
151
    public boolean getLast()
152
    {
153
        return this._last;
154
    } //-- boolean getLast() 
155

    
156
    /**
157
     * Returns the value of field 'name'.
158
     * 
159
     * @return the value of field 'name'.
160
     */
161
    public java.lang.String getName()
162
    {
163
        return this._name;
164
    } //-- java.lang.String getName() 
165

    
166
    /**
167
     * Returns the value of field 'position'.
168
     * 
169
     * @return the value of field 'position'.
170
     */
171
    public long getPosition()
172
    {
173
        return this._position;
174
    } //-- int getPosition() 
175

    
176
    /**
177
     * Returns the value of field 'text'.
178
     * 
179
     * @return the value of field 'text'.
180
     */
181
    public java.lang.String getText()
182
    {
183
        return this._text;
184
    } //-- java.lang.String getText() 
185

    
186
    /**
187
     * Returns the value of field 'tooltip'.
188
     * 
189
     * @return the value of field 'tooltip'.
190
     */
191
    public java.lang.String getTooltip()
192
    {
193
        return this._tooltip;
194
    } //-- java.lang.String getTooltip() 
195

    
196
    /**
197
     * Method hasLast
198
     */
199
    public boolean hasLast()
200
    {
201
        return this._has_last;
202
    } //-- boolean hasLast() 
203

    
204
    /**
205
     * Method hasPosition
206
     */
207
    public boolean hasPosition()
208
    {
209
        return this._has_position;
210
    } //-- boolean hasPosition() 
211

    
212
    /**
213
     * Method isValid
214
     */
215
    public boolean isValid()
216
    {
217
        try {
218
            validate();
219
        }
220
        catch (org.exolab.castor.xml.ValidationException vex) {
221
            return false;
222
        }
223
        return true;
224
    } //-- boolean isValid() 
225

    
226
    /**
227
     * Method marshal
228
     * 
229
     * @param out
230
     */
231
    public void marshal(java.io.Writer out)
232
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
233
    {
234
        
235
        Marshaller.marshal(this, out);
236
    } //-- void marshal(java.io.Writer) 
237

    
238
    /**
239
     * Method marshal
240
     * 
241
     * @param handler
242
     */
243
    public void marshal(org.xml.sax.ContentHandler handler)
244
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
245
    {
246
        
247
        Marshaller.marshal(this, handler);
248
    } //-- void marshal(org.xml.sax.ContentHandler) 
249

    
250
    /**
251
     * Sets the value of field 'actionCommand'.
252
     * 
253
     * @param actionCommand the value of field 'actionCommand'.
254
     */
255
    public void setActionCommand(java.lang.String actionCommand)
256
    {
257
        this._actionCommand = actionCommand;
258
    } //-- void setActionCommand(java.lang.String) 
259

    
260
    /**
261
     * Sets the value of field 'enableText'.
262
     * 
263
     * @param enableText the value of field 'enableText'.
264
     */
265
    public void setEnableText(java.lang.String enableText)
266
    {
267
        this._enableText = enableText;
268
    } //-- void setEnableText(java.lang.String) 
269

    
270
    /**
271
     * Sets the value of field 'icon'.
272
     * 
273
     * @param icon the value of field 'icon'.
274
     */
275
    public void setIcon(java.lang.String icon)
276
    {
277
        this._icon = icon;
278
    } //-- void setIcon(java.lang.String) 
279

    
280
    /**
281
     * Sets the value of field 'last'.
282
     * 
283
     * @param last the value of field 'last'.
284
     */
285
    public void setLast(boolean last)
286
    {
287
        this._last = last;
288
        this._has_last = true;
289
    } //-- void setLast(boolean) 
290

    
291
    /**
292
     * Sets the value of field 'name'.
293
     * 
294
     * @param name the value of field 'name'.
295
     */
296
    public void setName(java.lang.String name)
297
    {
298
        this._name = name;
299
    } //-- void setName(java.lang.String) 
300

    
301
    /**
302
     * Sets the value of field 'position'.
303
     * 
304
     * @param position the value of field 'position'.
305
     */
306
    public void setPosition(long position)
307
    {
308
        this._position = position;
309
        this._has_position = true;
310
    } //-- void setPosition(int) 
311

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

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

    
332
    /**
333
     * Method unmarshal
334
     * 
335
     * @param reader
336
     */
337
    public static java.lang.Object unmarshal(java.io.Reader reader)
338
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
339
    {
340
        return (org.gvsig.andami.plugins.config.generate.ActionTool) Unmarshaller.unmarshal(org.gvsig.andami.plugins.config.generate.ActionTool.class, reader);
341
    } //-- java.lang.Object unmarshal(java.io.Reader) 
342

    
343
    /**
344
     * Method validate
345
     */
346
    public void validate()
347
        throws org.exolab.castor.xml.ValidationException
348
    {
349
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
350
        validator.validate(this);
351
    } //-- void validate() 
352

    
353
    public String toString() {
354
            StringBuffer buffer = new StringBuffer();
355
            buffer.append("ActionTool {");
356
            buffer.append("name='").append(this._name).append("', ");
357
            buffer.append("text='").append("', text='").append("', ");
358
            buffer.append("tooltip='").append(this._tooltip).append("', ");
359
            buffer.append("actionCommand='").append(this._actionCommand).append("', ");
360
            buffer.append("position='").append(this._position).append("', ");
361
            buffer.append("icon='").append(this._icon).append("', ");
362
            buffer.append("enableText='").append(this._enableText).append("', ");
363
            buffer.append("last='").append(this._last).append("' }");
364
                return buffer.toString();
365
        }
366
    
367
}