Statistics
| Revision:

svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ActionTool.java @ 5281

History | View | Annotate | Download (6.73 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 5281 2006-05-19 09:01:59Z cesar $
6
 */
7

    
8
package com.iver.andami.plugins.config.generate;
9

    
10
  //---------------------------------/
11
 //- Imported classes and packages -/
12
//---------------------------------/
13

    
14
import org.exolab.castor.xml.Marshaller;
15
import org.exolab.castor.xml.Unmarshaller;
16

    
17
/**
18
 * Class ActionTool.
19
 * 
20
 * @version $Revision: 5281 $ $Date: 2006-05-19 11:01:59 +0200 (Fri, 19 May 2006) $
21
 */
22
public class ActionTool implements java.io.Serializable {
23

    
24

    
25
      //--------------------------/
26
     //- Class/Member Variables -/
27
    //--------------------------/
28

    
29
    /**
30
     * Field _text
31
     */
32
    private java.lang.String _text;
33

    
34
    /**
35
     * Field _actionCommand
36
     */
37
    private java.lang.String _actionCommand;
38

    
39
    /**
40
     * Field _icon
41
     */
42
    private java.lang.String _icon;
43

    
44
    /**
45
     * Field _last
46
     */
47
    private boolean _last;
48

    
49
    /**
50
     * keeps track of state for field: _last
51
     */
52
    private boolean _has_last;
53

    
54
    /**
55
     * Field _tooltip
56
     */
57
    private java.lang.String _tooltip;
58

    
59
    /**
60
     * Field _enableText
61
     */
62
    private java.lang.String _enableText;
63

    
64
    /**
65
     * Field _position
66
     */
67
    private java.lang.String _position;
68

    
69

    
70
      //----------------/
71
     //- Constructors -/
72
    //----------------/
73

    
74
    public ActionTool() {
75
        super();
76
    } //-- com.iver.andami.plugins.config.generate.ActionTool()
77

    
78

    
79
      //-----------/
80
     //- Methods -/
81
    //-----------/
82

    
83
    /**
84
     * Method deleteLast
85
     */
86
    public void deleteLast()
87
    {
88
        this._has_last= false;
89
    } //-- void deleteLast() 
90

    
91
    /**
92
     * Returns the value of field 'actionCommand'.
93
     * 
94
     * @return the value of field 'actionCommand'.
95
     */
96
    public java.lang.String getActionCommand()
97
    {
98
        return this._actionCommand;
99
    } //-- java.lang.String getActionCommand() 
100

    
101
    /**
102
     * Returns the value of field 'enableText'.
103
     * 
104
     * @return the value of field 'enableText'.
105
     */
106
    public java.lang.String getEnableText()
107
    {
108
        return this._enableText;
109
    } //-- java.lang.String getEnableText() 
110

    
111
    /**
112
     * Returns the value of field 'icon'.
113
     * 
114
     * @return the value of field 'icon'.
115
     */
116
    public java.lang.String getIcon()
117
    {
118
        return this._icon;
119
    } //-- java.lang.String getIcon() 
120

    
121
    /**
122
     * Returns the value of field 'last'.
123
     * 
124
     * @return the value of field 'last'.
125
     */
126
    public boolean getLast()
127
    {
128
        return this._last;
129
    } //-- boolean getLast() 
130

    
131
    /**
132
     * Returns the value of field 'position'.
133
     * 
134
     * @return the value of field 'position'.
135
     */
136
    public java.lang.String getPosition()
137
    {
138
        return this._position;
139
    } //-- java.lang.String getPosition() 
140

    
141
    /**
142
     * Returns the value of field 'text'.
143
     * 
144
     * @return the value of field 'text'.
145
     */
146
    public java.lang.String getText()
147
    {
148
        return this._text;
149
    } //-- java.lang.String getText() 
150

    
151
    /**
152
     * Returns the value of field 'tooltip'.
153
     * 
154
     * @return the value of field 'tooltip'.
155
     */
156
    public java.lang.String getTooltip()
157
    {
158
        return this._tooltip;
159
    } //-- java.lang.String getTooltip() 
160

    
161
    /**
162
     * Method hasLast
163
     */
164
    public boolean hasLast()
165
    {
166
        return this._has_last;
167
    } //-- boolean hasLast() 
168

    
169
    /**
170
     * Method isValid
171
     */
172
    public boolean isValid()
173
    {
174
        try {
175
            validate();
176
        }
177
        catch (org.exolab.castor.xml.ValidationException vex) {
178
            return false;
179
        }
180
        return true;
181
    } //-- boolean isValid() 
182

    
183
    /**
184
     * Method marshal
185
     * 
186
     * @param out
187
     */
188
    public void marshal(java.io.Writer out)
189
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
190
    {
191
        
192
        Marshaller.marshal(this, out);
193
    } //-- void marshal(java.io.Writer) 
194

    
195
    /**
196
     * Method marshal
197
     * 
198
     * @param handler
199
     */
200
    public void marshal(org.xml.sax.ContentHandler handler)
201
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
202
    {
203
        
204
        Marshaller.marshal(this, handler);
205
    } //-- void marshal(org.xml.sax.ContentHandler) 
206

    
207
    /**
208
     * Sets the value of field 'actionCommand'.
209
     * 
210
     * @param actionCommand the value of field 'actionCommand'.
211
     */
212
    public void setActionCommand(java.lang.String actionCommand)
213
    {
214
        this._actionCommand = actionCommand;
215
    } //-- void setActionCommand(java.lang.String) 
216

    
217
    /**
218
     * Sets the value of field 'enableText'.
219
     * 
220
     * @param enableText the value of field 'enableText'.
221
     */
222
    public void setEnableText(java.lang.String enableText)
223
    {
224
        this._enableText = enableText;
225
    } //-- void setEnableText(java.lang.String) 
226

    
227
    /**
228
     * Sets the value of field 'icon'.
229
     * 
230
     * @param icon the value of field 'icon'.
231
     */
232
    public void setIcon(java.lang.String icon)
233
    {
234
        this._icon = icon;
235
    } //-- void setIcon(java.lang.String) 
236

    
237
    /**
238
     * Sets the value of field 'last'.
239
     * 
240
     * @param last the value of field 'last'.
241
     */
242
    public void setLast(boolean last)
243
    {
244
        this._last = last;
245
        this._has_last = true;
246
    } //-- void setLast(boolean) 
247

    
248
    /**
249
     * Sets the value of field 'position'.
250
     * 
251
     * @param position the value of field 'position'.
252
     */
253
    public void setPosition(java.lang.String position)
254
    {
255
        this._position = position;
256
    } //-- void setPosition(java.lang.String) 
257

    
258
    /**
259
     * Sets the value of field 'text'.
260
     * 
261
     * @param text the value of field 'text'.
262
     */
263
    public void setText(java.lang.String text)
264
    {
265
        this._text = text;
266
    } //-- void setText(java.lang.String) 
267

    
268
    /**
269
     * Sets the value of field 'tooltip'.
270
     * 
271
     * @param tooltip the value of field 'tooltip'.
272
     */
273
    public void setTooltip(java.lang.String tooltip)
274
    {
275
        this._tooltip = tooltip;
276
    } //-- void setTooltip(java.lang.String) 
277

    
278
    /**
279
     * Method unmarshal
280
     * 
281
     * @param reader
282
     */
283
    public static java.lang.Object unmarshal(java.io.Reader reader)
284
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
285
    {
286
        return (com.iver.andami.plugins.config.generate.ActionTool) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.ActionTool.class, reader);
287
    } //-- java.lang.Object unmarshal(java.io.Reader) 
288

    
289
    /**
290
     * Method validate
291
     */
292
    public void validate()
293
        throws org.exolab.castor.xml.ValidationException
294
    {
295
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
296
        validator.validate(this);
297
    } //-- void validate() 
298

    
299
}