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