Statistics
| Revision:

root / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ActionTool.java @ 598

History | View | Annotate | Download (6.39 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 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 ActionTool.
26
 * 
27
 * @version $Revision: 598 $ $Date: 2004-12-22 11:11:38 +0100 (Wed, 22 Dec 2004) $
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 _actionCommand
43
     */
44
    private java.lang.String _actionCommand;
45

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

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

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

    
61
    /**
62
     * Field _tooltip
63
     */
64
    private java.lang.String _tooltip;
65

    
66
    /**
67
     * Field _enableText
68
     */
69
    private java.lang.String _enableText;
70

    
71

    
72
      //----------------/
73
     //- Constructors -/
74
    //----------------/
75

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

    
80

    
81
      //-----------/
82
     //- Methods -/
83
    //-----------/
84

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

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

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

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

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

    
133
    /**
134
     * Returns the value of field 'text'.
135
     * 
136
     * @return the value of field 'text'.
137
     */
138
    public java.lang.String getText()
139
    {
140
        return this._text;
141
    } //-- java.lang.String getText() 
142

    
143
    /**
144
     * Returns the value of field 'tooltip'.
145
     * 
146
     * @return the value of field 'tooltip'.
147
     */
148
    public java.lang.String getTooltip()
149
    {
150
        return this._tooltip;
151
    } //-- java.lang.String getTooltip() 
152

    
153
    /**
154
     * Method hasLast
155
     */
156
    public boolean hasLast()
157
    {
158
        return this._has_last;
159
    } //-- boolean hasLast() 
160

    
161
    /**
162
     * Method isValid
163
     */
164
    public boolean isValid()
165
    {
166
        try {
167
            validate();
168
        }
169
        catch (org.exolab.castor.xml.ValidationException vex) {
170
            return false;
171
        }
172
        return true;
173
    } //-- boolean isValid() 
174

    
175
    /**
176
     * Method marshal
177
     * 
178
     * @param out
179
     */
180
    public void marshal(java.io.Writer out)
181
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
182
    {
183
        
184
        Marshaller.marshal(this, out);
185
    } //-- void marshal(java.io.Writer) 
186

    
187
    /**
188
     * Method marshal
189
     * 
190
     * @param handler
191
     */
192
    public void marshal(org.xml.sax.ContentHandler handler)
193
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
194
    {
195
        
196
        Marshaller.marshal(this, handler);
197
    } //-- void marshal(org.xml.sax.ContentHandler) 
198

    
199
    /**
200
     * Sets the value of field 'actionCommand'.
201
     * 
202
     * @param actionCommand the value of field 'actionCommand'.
203
     */
204
    public void setActionCommand(java.lang.String actionCommand)
205
    {
206
        this._actionCommand = actionCommand;
207
    } //-- void setActionCommand(java.lang.String) 
208

    
209
    /**
210
     * Sets the value of field 'enableText'.
211
     * 
212
     * @param enableText the value of field 'enableText'.
213
     */
214
    public void setEnableText(java.lang.String enableText)
215
    {
216
        this._enableText = enableText;
217
    } //-- void setEnableText(java.lang.String) 
218

    
219
    /**
220
     * Sets the value of field 'icon'.
221
     * 
222
     * @param icon the value of field 'icon'.
223
     */
224
    public void setIcon(java.lang.String icon)
225
    {
226
        this._icon = icon;
227
    } //-- void setIcon(java.lang.String) 
228

    
229
    /**
230
     * Sets the value of field 'last'.
231
     * 
232
     * @param last the value of field 'last'.
233
     */
234
    public void setLast(boolean last)
235
    {
236
        this._last = last;
237
        this._has_last = true;
238
    } //-- void setLast(boolean) 
239

    
240
    /**
241
     * Sets the value of field 'text'.
242
     * 
243
     * @param text the value of field 'text'.
244
     */
245
    public void setText(java.lang.String text)
246
    {
247
        this._text = text;
248
    } //-- void setText(java.lang.String) 
249

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

    
260
    /**
261
     * Method unmarshal
262
     * 
263
     * @param reader
264
     */
265
    public static java.lang.Object unmarshal(java.io.Reader reader)
266
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
267
    {
268
        return (com.iver.andami.plugins.config.generate.ActionTool) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.ActionTool.class, reader);
269
    } //-- java.lang.Object unmarshal(java.io.Reader) 
270

    
271
    /**
272
     * Method validate
273
     */
274
    public void validate()
275
        throws org.exolab.castor.xml.ValidationException
276
    {
277
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
278
        validator.validate(this);
279
    } //-- void validate() 
280

    
281
}