svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / Menu.java @ 6431
History | View | Annotate | Download (8.56 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: Menu.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 Menu.
|
26 |
*
|
27 |
* @version $Revision: 6431 $ $Date: 2006-07-19 12:41:35 +0200 (Wed, 19 Jul 2006) $
|
28 |
*/
|
29 |
public class Menu implements java.io.Serializable { |
30 |
|
31 |
|
32 |
//--------------------------/
|
33 |
//- Class/Member Variables -/
|
34 |
//--------------------------/
|
35 |
|
36 |
/**
|
37 |
* Field _actionCommand
|
38 |
*/
|
39 |
private java.lang.String _actionCommand;
|
40 |
|
41 |
/**
|
42 |
* Field _key
|
43 |
*/
|
44 |
private java.lang.String _key;
|
45 |
|
46 |
/**
|
47 |
* Field _icon
|
48 |
*/
|
49 |
private java.lang.String _icon;
|
50 |
|
51 |
/**
|
52 |
* Field _tooltip
|
53 |
*/
|
54 |
private java.lang.String _tooltip;
|
55 |
|
56 |
/**
|
57 |
* Field _enableText
|
58 |
*/
|
59 |
private java.lang.String _enableText;
|
60 |
|
61 |
/**
|
62 |
* Field _mnemonic
|
63 |
*/
|
64 |
private java.lang.String _mnemonic;
|
65 |
|
66 |
/**
|
67 |
* Field _text
|
68 |
*/
|
69 |
private java.lang.String _text;
|
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 |
* Field _is_separator
|
83 |
*/
|
84 |
private boolean _is_separator; |
85 |
|
86 |
/**
|
87 |
* keeps track of state for field: _is_separator
|
88 |
*/
|
89 |
private boolean _has_is_separator; |
90 |
|
91 |
|
92 |
//----------------/
|
93 |
//- Constructors -/
|
94 |
//----------------/
|
95 |
|
96 |
public Menu() { |
97 |
super();
|
98 |
} //-- com.iver.andami.plugins.config.generate.Menu()
|
99 |
|
100 |
|
101 |
//-----------/
|
102 |
//- Methods -/
|
103 |
//-----------/
|
104 |
|
105 |
/**
|
106 |
* Method deleteIs_separator
|
107 |
*/
|
108 |
public void deleteIs_separator() |
109 |
{ |
110 |
this._has_is_separator= false; |
111 |
} //-- void deleteIs_separator()
|
112 |
|
113 |
/**
|
114 |
* Method deletePosition
|
115 |
*/
|
116 |
public void deletePosition() |
117 |
{ |
118 |
this._has_position= false; |
119 |
} //-- void deletePosition()
|
120 |
|
121 |
/**
|
122 |
* Returns the value of field 'actionCommand'.
|
123 |
*
|
124 |
* @return the value of field 'actionCommand'.
|
125 |
*/
|
126 |
public java.lang.String getActionCommand()
|
127 |
{ |
128 |
return this._actionCommand; |
129 |
} //-- java.lang.String getActionCommand()
|
130 |
|
131 |
/**
|
132 |
* Returns the value of field 'enableText'.
|
133 |
*
|
134 |
* @return the value of field 'enableText'.
|
135 |
*/
|
136 |
public java.lang.String getEnableText()
|
137 |
{ |
138 |
return this._enableText; |
139 |
} //-- java.lang.String getEnableText()
|
140 |
|
141 |
/**
|
142 |
* Returns the value of field 'icon'.
|
143 |
*
|
144 |
* @return the value of field 'icon'.
|
145 |
*/
|
146 |
public java.lang.String getIcon()
|
147 |
{ |
148 |
return this._icon; |
149 |
} //-- java.lang.String getIcon()
|
150 |
|
151 |
/**
|
152 |
* Returns the value of field 'is_separator'.
|
153 |
*
|
154 |
* @return the value of field 'is_separator'.
|
155 |
*/
|
156 |
public boolean getIs_separator() |
157 |
{ |
158 |
return this._is_separator; |
159 |
} //-- boolean getIs_separator()
|
160 |
|
161 |
/**
|
162 |
* Returns the value of field 'key'.
|
163 |
*
|
164 |
* @return the value of field 'key'.
|
165 |
*/
|
166 |
public java.lang.String getKey()
|
167 |
{ |
168 |
return this._key; |
169 |
} //-- java.lang.String getKey()
|
170 |
|
171 |
/**
|
172 |
* Returns the value of field 'mnemonic'.
|
173 |
*
|
174 |
* @return the value of field 'mnemonic'.
|
175 |
*/
|
176 |
public java.lang.String getMnemonic()
|
177 |
{ |
178 |
return this._mnemonic; |
179 |
} //-- java.lang.String getMnemonic()
|
180 |
|
181 |
/**
|
182 |
* Returns the value of field 'position'.
|
183 |
*
|
184 |
* @return the value of field 'position'.
|
185 |
*/
|
186 |
public int getPosition() |
187 |
{ |
188 |
return this._position; |
189 |
} //-- int getPosition()
|
190 |
|
191 |
/**
|
192 |
* Returns the value of field 'text'.
|
193 |
*
|
194 |
* @return the value of field 'text'.
|
195 |
*/
|
196 |
public java.lang.String getText()
|
197 |
{ |
198 |
return this._text; |
199 |
} //-- java.lang.String getText()
|
200 |
|
201 |
/**
|
202 |
* Returns the value of field 'tooltip'.
|
203 |
*
|
204 |
* @return the value of field 'tooltip'.
|
205 |
*/
|
206 |
public java.lang.String getTooltip()
|
207 |
{ |
208 |
return this._tooltip; |
209 |
} //-- java.lang.String getTooltip()
|
210 |
|
211 |
/**
|
212 |
* Method hasIs_separator
|
213 |
*/
|
214 |
public boolean hasIs_separator() |
215 |
{ |
216 |
return this._has_is_separator; |
217 |
} //-- boolean hasIs_separator()
|
218 |
|
219 |
/**
|
220 |
* Method hasPosition
|
221 |
*/
|
222 |
public boolean hasPosition() |
223 |
{ |
224 |
return this._has_position; |
225 |
} //-- boolean hasPosition()
|
226 |
|
227 |
/**
|
228 |
* Method isValid
|
229 |
*/
|
230 |
public boolean isValid() |
231 |
{ |
232 |
try {
|
233 |
validate(); |
234 |
} |
235 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
236 |
return false; |
237 |
} |
238 |
return true; |
239 |
} //-- boolean isValid()
|
240 |
|
241 |
/**
|
242 |
* Method marshal
|
243 |
*
|
244 |
* @param out
|
245 |
*/
|
246 |
public void marshal(java.io.Writer out) |
247 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
248 |
{ |
249 |
|
250 |
Marshaller.marshal(this, out);
|
251 |
} //-- void marshal(java.io.Writer)
|
252 |
|
253 |
/**
|
254 |
* Method marshal
|
255 |
*
|
256 |
* @param handler
|
257 |
*/
|
258 |
public void marshal(org.xml.sax.ContentHandler handler) |
259 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
260 |
{ |
261 |
|
262 |
Marshaller.marshal(this, handler);
|
263 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
264 |
|
265 |
/**
|
266 |
* Sets the value of field 'actionCommand'.
|
267 |
*
|
268 |
* @param actionCommand the value of field 'actionCommand'.
|
269 |
*/
|
270 |
public void setActionCommand(java.lang.String actionCommand) |
271 |
{ |
272 |
this._actionCommand = actionCommand;
|
273 |
} //-- void setActionCommand(java.lang.String)
|
274 |
|
275 |
/**
|
276 |
* Sets the value of field 'enableText'.
|
277 |
*
|
278 |
* @param enableText the value of field 'enableText'.
|
279 |
*/
|
280 |
public void setEnableText(java.lang.String enableText) |
281 |
{ |
282 |
this._enableText = enableText;
|
283 |
} //-- void setEnableText(java.lang.String)
|
284 |
|
285 |
/**
|
286 |
* Sets the value of field 'icon'.
|
287 |
*
|
288 |
* @param icon the value of field 'icon'.
|
289 |
*/
|
290 |
public void setIcon(java.lang.String icon) |
291 |
{ |
292 |
this._icon = icon;
|
293 |
} //-- void setIcon(java.lang.String)
|
294 |
|
295 |
/**
|
296 |
* Sets the value of field 'is_separator'.
|
297 |
*
|
298 |
* @param is_separator the value of field 'is_separator'.
|
299 |
*/
|
300 |
public void setIs_separator(boolean is_separator) |
301 |
{ |
302 |
this._is_separator = is_separator;
|
303 |
this._has_is_separator = true; |
304 |
} //-- void setIs_separator(boolean)
|
305 |
|
306 |
/**
|
307 |
* Sets the value of field 'key'.
|
308 |
*
|
309 |
* @param key the value of field 'key'.
|
310 |
*/
|
311 |
public void setKey(java.lang.String key) |
312 |
{ |
313 |
this._key = key;
|
314 |
} //-- void setKey(java.lang.String)
|
315 |
|
316 |
/**
|
317 |
* Sets the value of field 'mnemonic'.
|
318 |
*
|
319 |
* @param mnemonic the value of field 'mnemonic'.
|
320 |
*/
|
321 |
public void setMnemonic(java.lang.String mnemonic) |
322 |
{ |
323 |
this._mnemonic = mnemonic;
|
324 |
} //-- void setMnemonic(java.lang.String)
|
325 |
|
326 |
/**
|
327 |
* Sets the value of field 'position'.
|
328 |
*
|
329 |
* @param position the value of field 'position'.
|
330 |
*/
|
331 |
public void setPosition(int position) |
332 |
{ |
333 |
this._position = position;
|
334 |
this._has_position = true; |
335 |
} //-- void setPosition(int)
|
336 |
|
337 |
/**
|
338 |
* Sets the value of field 'text'.
|
339 |
*
|
340 |
* @param text the value of field 'text'.
|
341 |
*/
|
342 |
public void setText(java.lang.String text) |
343 |
{ |
344 |
this._text = text;
|
345 |
} //-- void setText(java.lang.String)
|
346 |
|
347 |
/**
|
348 |
* Sets the value of field 'tooltip'.
|
349 |
*
|
350 |
* @param tooltip the value of field 'tooltip'.
|
351 |
*/
|
352 |
public void setTooltip(java.lang.String tooltip) |
353 |
{ |
354 |
this._tooltip = tooltip;
|
355 |
} //-- void setTooltip(java.lang.String)
|
356 |
|
357 |
/**
|
358 |
* Method unmarshal
|
359 |
*
|
360 |
* @param reader
|
361 |
*/
|
362 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
363 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
364 |
{ |
365 |
return (com.iver.andami.plugins.config.generate.Menu) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.Menu.class, reader);
|
366 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
367 |
|
368 |
/**
|
369 |
* Method validate
|
370 |
*/
|
371 |
public void validate() |
372 |
throws org.exolab.castor.xml.ValidationException
|
373 |
{ |
374 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
375 |
validator.validate(this);
|
376 |
} //-- void validate()
|
377 |
|
378 |
} |