svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ActionTool.java @ 6431
History | View | Annotate | Download (7.33 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 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 ActionTool.
|
26 |
*
|
27 |
* @version $Revision: 6431 $ $Date: 2006-07-19 12:41:35 +0200 (Wed, 19 Jul 2006) $
|
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 |
* Field _position
|
73 |
*/
|
74 |
private int _position; |
75 |
|
76 |
/**
|
77 |
* keeps track of state for field: _position
|
78 |
*/
|
79 |
private boolean _has_position; |
80 |
|
81 |
|
82 |
//----------------/
|
83 |
//- Constructors -/
|
84 |
//----------------/
|
85 |
|
86 |
public ActionTool() {
|
87 |
super();
|
88 |
} //-- com.iver.andami.plugins.config.generate.ActionTool()
|
89 |
|
90 |
|
91 |
//-----------/
|
92 |
//- Methods -/
|
93 |
//-----------/
|
94 |
|
95 |
/**
|
96 |
* Method deleteLast
|
97 |
*/
|
98 |
public void deleteLast() |
99 |
{ |
100 |
this._has_last= false; |
101 |
} //-- void deleteLast()
|
102 |
|
103 |
/**
|
104 |
* Method deletePosition
|
105 |
*/
|
106 |
public void deletePosition() |
107 |
{ |
108 |
this._has_position= false; |
109 |
} //-- void deletePosition()
|
110 |
|
111 |
/**
|
112 |
* Returns the value of field 'actionCommand'.
|
113 |
*
|
114 |
* @return the value of field 'actionCommand'.
|
115 |
*/
|
116 |
public java.lang.String getActionCommand()
|
117 |
{ |
118 |
return this._actionCommand; |
119 |
} //-- java.lang.String getActionCommand()
|
120 |
|
121 |
/**
|
122 |
* Returns the value of field 'enableText'.
|
123 |
*
|
124 |
* @return the value of field 'enableText'.
|
125 |
*/
|
126 |
public java.lang.String getEnableText()
|
127 |
{ |
128 |
return this._enableText; |
129 |
} //-- java.lang.String getEnableText()
|
130 |
|
131 |
/**
|
132 |
* Returns the value of field 'icon'.
|
133 |
*
|
134 |
* @return the value of field 'icon'.
|
135 |
*/
|
136 |
public java.lang.String getIcon()
|
137 |
{ |
138 |
return this._icon; |
139 |
} //-- java.lang.String getIcon()
|
140 |
|
141 |
/**
|
142 |
* Returns the value of field 'last'.
|
143 |
*
|
144 |
* @return the value of field 'last'.
|
145 |
*/
|
146 |
public boolean getLast() |
147 |
{ |
148 |
return this._last; |
149 |
} //-- boolean getLast()
|
150 |
|
151 |
/**
|
152 |
* Returns the value of field 'position'.
|
153 |
*
|
154 |
* @return the value of field 'position'.
|
155 |
*/
|
156 |
public int getPosition() |
157 |
{ |
158 |
return this._position; |
159 |
} //-- int getPosition()
|
160 |
|
161 |
/**
|
162 |
* Returns the value of field 'text'.
|
163 |
*
|
164 |
* @return the value of field 'text'.
|
165 |
*/
|
166 |
public java.lang.String getText()
|
167 |
{ |
168 |
return this._text; |
169 |
} //-- java.lang.String getText()
|
170 |
|
171 |
/**
|
172 |
* Returns the value of field 'tooltip'.
|
173 |
*
|
174 |
* @return the value of field 'tooltip'.
|
175 |
*/
|
176 |
public java.lang.String getTooltip()
|
177 |
{ |
178 |
return this._tooltip; |
179 |
} //-- java.lang.String getTooltip()
|
180 |
|
181 |
/**
|
182 |
* Method hasLast
|
183 |
*/
|
184 |
public boolean hasLast() |
185 |
{ |
186 |
return this._has_last; |
187 |
} //-- boolean hasLast()
|
188 |
|
189 |
/**
|
190 |
* Method hasPosition
|
191 |
*/
|
192 |
public boolean hasPosition() |
193 |
{ |
194 |
return this._has_position; |
195 |
} //-- boolean hasPosition()
|
196 |
|
197 |
/**
|
198 |
* Method isValid
|
199 |
*/
|
200 |
public boolean isValid() |
201 |
{ |
202 |
try {
|
203 |
validate(); |
204 |
} |
205 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
206 |
return false; |
207 |
} |
208 |
return true; |
209 |
} //-- boolean isValid()
|
210 |
|
211 |
/**
|
212 |
* Method marshal
|
213 |
*
|
214 |
* @param out
|
215 |
*/
|
216 |
public void marshal(java.io.Writer out) |
217 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
218 |
{ |
219 |
|
220 |
Marshaller.marshal(this, out);
|
221 |
} //-- void marshal(java.io.Writer)
|
222 |
|
223 |
/**
|
224 |
* Method marshal
|
225 |
*
|
226 |
* @param handler
|
227 |
*/
|
228 |
public void marshal(org.xml.sax.ContentHandler handler) |
229 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
230 |
{ |
231 |
|
232 |
Marshaller.marshal(this, handler);
|
233 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
234 |
|
235 |
/**
|
236 |
* Sets the value of field 'actionCommand'.
|
237 |
*
|
238 |
* @param actionCommand the value of field 'actionCommand'.
|
239 |
*/
|
240 |
public void setActionCommand(java.lang.String actionCommand) |
241 |
{ |
242 |
this._actionCommand = actionCommand;
|
243 |
} //-- void setActionCommand(java.lang.String)
|
244 |
|
245 |
/**
|
246 |
* Sets the value of field 'enableText'.
|
247 |
*
|
248 |
* @param enableText the value of field 'enableText'.
|
249 |
*/
|
250 |
public void setEnableText(java.lang.String enableText) |
251 |
{ |
252 |
this._enableText = enableText;
|
253 |
} //-- void setEnableText(java.lang.String)
|
254 |
|
255 |
/**
|
256 |
* Sets the value of field 'icon'.
|
257 |
*
|
258 |
* @param icon the value of field 'icon'.
|
259 |
*/
|
260 |
public void setIcon(java.lang.String icon) |
261 |
{ |
262 |
this._icon = icon;
|
263 |
} //-- void setIcon(java.lang.String)
|
264 |
|
265 |
/**
|
266 |
* Sets the value of field 'last'.
|
267 |
*
|
268 |
* @param last the value of field 'last'.
|
269 |
*/
|
270 |
public void setLast(boolean last) |
271 |
{ |
272 |
this._last = last;
|
273 |
this._has_last = true; |
274 |
} //-- void setLast(boolean)
|
275 |
|
276 |
/**
|
277 |
* Sets the value of field 'position'.
|
278 |
*
|
279 |
* @param position the value of field 'position'.
|
280 |
*/
|
281 |
public void setPosition(int position) |
282 |
{ |
283 |
this._position = position;
|
284 |
this._has_position = true; |
285 |
} //-- void setPosition(int)
|
286 |
|
287 |
/**
|
288 |
* Sets the value of field 'text'.
|
289 |
*
|
290 |
* @param text the value of field 'text'.
|
291 |
*/
|
292 |
public void setText(java.lang.String text) |
293 |
{ |
294 |
this._text = text;
|
295 |
} //-- void setText(java.lang.String)
|
296 |
|
297 |
/**
|
298 |
* Sets the value of field 'tooltip'.
|
299 |
*
|
300 |
* @param tooltip the value of field 'tooltip'.
|
301 |
*/
|
302 |
public void setTooltip(java.lang.String tooltip) |
303 |
{ |
304 |
this._tooltip = tooltip;
|
305 |
} //-- void setTooltip(java.lang.String)
|
306 |
|
307 |
/**
|
308 |
* Method unmarshal
|
309 |
*
|
310 |
* @param reader
|
311 |
*/
|
312 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
313 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
314 |
{ |
315 |
return (com.iver.andami.plugins.config.generate.ActionTool) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.ActionTool.class, reader);
|
316 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
317 |
|
318 |
/**
|
319 |
* Method validate
|
320 |
*/
|
321 |
public void validate() |
322 |
throws org.exolab.castor.xml.ValidationException
|
323 |
{ |
324 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
325 |
validator.validate(this);
|
326 |
} //-- void validate()
|
327 |
|
328 |
} |