root / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ComboButton.java @ 6587
History | View | Annotate | Download (9.15 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: ComboButton.java 6587 2006-07-31 18:27:27Z 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 java.util.Enumeration; |
19 |
import java.util.Vector; |
20 |
import org.exolab.castor.xml.MarshalException; |
21 |
import org.exolab.castor.xml.Marshaller; |
22 |
import org.exolab.castor.xml.Unmarshaller; |
23 |
import org.exolab.castor.xml.ValidationException; |
24 |
import org.xml.sax.ContentHandler; |
25 |
|
26 |
/**
|
27 |
* Class ComboButton.
|
28 |
*
|
29 |
* @version $Revision: 6587 $ $Date: 2006-07-31 20:27:27 +0200 (Mon, 31 Jul 2006) $
|
30 |
*/
|
31 |
public class ComboButton implements java.io.Serializable { |
32 |
|
33 |
|
34 |
//--------------------------/
|
35 |
//- Class/Member Variables -/
|
36 |
//--------------------------/
|
37 |
|
38 |
/**
|
39 |
* Field _name
|
40 |
*/
|
41 |
private java.lang.String _name;
|
42 |
|
43 |
/**
|
44 |
* Field _activationClass
|
45 |
*/
|
46 |
private java.lang.String _activationClass;
|
47 |
|
48 |
/**
|
49 |
* Field _position
|
50 |
*/
|
51 |
private java.lang.Object _position;
|
52 |
|
53 |
/**
|
54 |
* Field _comboButtonElementList
|
55 |
*/
|
56 |
private java.util.Vector _comboButtonElementList;
|
57 |
|
58 |
|
59 |
//----------------/
|
60 |
//- Constructors -/
|
61 |
//----------------/
|
62 |
|
63 |
public ComboButton() {
|
64 |
super();
|
65 |
_comboButtonElementList = new Vector(); |
66 |
} //-- com.iver.andami.plugins.config.generate.ComboButton()
|
67 |
|
68 |
|
69 |
//-----------/
|
70 |
//- Methods -/
|
71 |
//-----------/
|
72 |
|
73 |
/**
|
74 |
* Method addComboButtonElement
|
75 |
*
|
76 |
* @param vComboButtonElement
|
77 |
*/
|
78 |
public void addComboButtonElement(com.iver.andami.plugins.config.generate.ComboButtonElement vComboButtonElement) |
79 |
throws java.lang.IndexOutOfBoundsException
|
80 |
{ |
81 |
_comboButtonElementList.addElement(vComboButtonElement); |
82 |
} //-- void addComboButtonElement(com.iver.andami.plugins.config.generate.ComboButtonElement)
|
83 |
|
84 |
/**
|
85 |
* Method addComboButtonElement
|
86 |
*
|
87 |
* @param index
|
88 |
* @param vComboButtonElement
|
89 |
*/
|
90 |
public void addComboButtonElement(int index, com.iver.andami.plugins.config.generate.ComboButtonElement vComboButtonElement) |
91 |
throws java.lang.IndexOutOfBoundsException
|
92 |
{ |
93 |
_comboButtonElementList.insertElementAt(vComboButtonElement, index); |
94 |
} //-- void addComboButtonElement(int, com.iver.andami.plugins.config.generate.ComboButtonElement)
|
95 |
|
96 |
/**
|
97 |
* Method enumerateComboButtonElement
|
98 |
*/
|
99 |
public java.util.Enumeration enumerateComboButtonElement()
|
100 |
{ |
101 |
return _comboButtonElementList.elements();
|
102 |
} //-- java.util.Enumeration enumerateComboButtonElement()
|
103 |
|
104 |
/**
|
105 |
* Returns the value of field 'activationClass'.
|
106 |
*
|
107 |
* @return the value of field 'activationClass'.
|
108 |
*/
|
109 |
public java.lang.String getActivationClass()
|
110 |
{ |
111 |
return this._activationClass; |
112 |
} //-- java.lang.String getActivationClass()
|
113 |
|
114 |
/**
|
115 |
* Method getComboButtonElement
|
116 |
*
|
117 |
* @param index
|
118 |
*/
|
119 |
public com.iver.andami.plugins.config.generate.ComboButtonElement getComboButtonElement(int index) |
120 |
throws java.lang.IndexOutOfBoundsException
|
121 |
{ |
122 |
//-- check bounds for index
|
123 |
if ((index < 0) || (index > _comboButtonElementList.size())) { |
124 |
throw new IndexOutOfBoundsException(); |
125 |
} |
126 |
|
127 |
return (com.iver.andami.plugins.config.generate.ComboButtonElement) _comboButtonElementList.elementAt(index);
|
128 |
} //-- com.iver.andami.plugins.config.generate.ComboButtonElement getComboButtonElement(int)
|
129 |
|
130 |
/**
|
131 |
* Method getComboButtonElement
|
132 |
*/
|
133 |
public com.iver.andami.plugins.config.generate.ComboButtonElement[] getComboButtonElement() |
134 |
{ |
135 |
int size = _comboButtonElementList.size();
|
136 |
com.iver.andami.plugins.config.generate.ComboButtonElement[] mArray = new com.iver.andami.plugins.config.generate.ComboButtonElement[size]; |
137 |
for (int index = 0; index < size; index++) { |
138 |
mArray[index] = (com.iver.andami.plugins.config.generate.ComboButtonElement) _comboButtonElementList.elementAt(index); |
139 |
} |
140 |
return mArray;
|
141 |
} //-- com.iver.andami.plugins.config.generate.ComboButtonElement[] getComboButtonElement()
|
142 |
|
143 |
/**
|
144 |
* Method getComboButtonElementCount
|
145 |
*/
|
146 |
public int getComboButtonElementCount() |
147 |
{ |
148 |
return _comboButtonElementList.size();
|
149 |
} //-- int getComboButtonElementCount()
|
150 |
|
151 |
/**
|
152 |
* Returns the value of field 'name'.
|
153 |
*
|
154 |
* @return the value of field 'name'.
|
155 |
*/
|
156 |
public java.lang.String getName()
|
157 |
{ |
158 |
return this._name; |
159 |
} //-- java.lang.String getName()
|
160 |
|
161 |
/**
|
162 |
* Returns the value of field 'position'.
|
163 |
*
|
164 |
* @return the value of field 'position'.
|
165 |
*/
|
166 |
public java.lang.Object getPosition()
|
167 |
{ |
168 |
return this._position; |
169 |
} //-- java.lang.Object getPosition()
|
170 |
|
171 |
/**
|
172 |
* Method isValid
|
173 |
*/
|
174 |
public boolean isValid() |
175 |
{ |
176 |
try {
|
177 |
validate(); |
178 |
} |
179 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
180 |
return false; |
181 |
} |
182 |
return true; |
183 |
} //-- boolean isValid()
|
184 |
|
185 |
/**
|
186 |
* Method marshal
|
187 |
*
|
188 |
* @param out
|
189 |
*/
|
190 |
public void marshal(java.io.Writer out) |
191 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
192 |
{ |
193 |
|
194 |
Marshaller.marshal(this, out);
|
195 |
} //-- void marshal(java.io.Writer)
|
196 |
|
197 |
/**
|
198 |
* Method marshal
|
199 |
*
|
200 |
* @param handler
|
201 |
*/
|
202 |
public void marshal(org.xml.sax.ContentHandler handler) |
203 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
204 |
{ |
205 |
|
206 |
Marshaller.marshal(this, handler);
|
207 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
208 |
|
209 |
/**
|
210 |
* Method removeAllComboButtonElement
|
211 |
*/
|
212 |
public void removeAllComboButtonElement() |
213 |
{ |
214 |
_comboButtonElementList.removeAllElements(); |
215 |
} //-- void removeAllComboButtonElement()
|
216 |
|
217 |
/**
|
218 |
* Method removeComboButtonElement
|
219 |
*
|
220 |
* @param index
|
221 |
*/
|
222 |
public com.iver.andami.plugins.config.generate.ComboButtonElement removeComboButtonElement(int index) |
223 |
{ |
224 |
java.lang.Object obj = _comboButtonElementList.elementAt(index); |
225 |
_comboButtonElementList.removeElementAt(index); |
226 |
return (com.iver.andami.plugins.config.generate.ComboButtonElement) obj;
|
227 |
} //-- com.iver.andami.plugins.config.generate.ComboButtonElement removeComboButtonElement(int)
|
228 |
|
229 |
/**
|
230 |
* Sets the value of field 'activationClass'.
|
231 |
*
|
232 |
* @param activationClass the value of field 'activationClass'.
|
233 |
*/
|
234 |
public void setActivationClass(java.lang.String activationClass) |
235 |
{ |
236 |
this._activationClass = activationClass;
|
237 |
} //-- void setActivationClass(java.lang.String)
|
238 |
|
239 |
/**
|
240 |
* Method setComboButtonElement
|
241 |
*
|
242 |
* @param index
|
243 |
* @param vComboButtonElement
|
244 |
*/
|
245 |
public void setComboButtonElement(int index, com.iver.andami.plugins.config.generate.ComboButtonElement vComboButtonElement) |
246 |
throws java.lang.IndexOutOfBoundsException
|
247 |
{ |
248 |
//-- check bounds for index
|
249 |
if ((index < 0) || (index > _comboButtonElementList.size())) { |
250 |
throw new IndexOutOfBoundsException(); |
251 |
} |
252 |
_comboButtonElementList.setElementAt(vComboButtonElement, index); |
253 |
} //-- void setComboButtonElement(int, com.iver.andami.plugins.config.generate.ComboButtonElement)
|
254 |
|
255 |
/**
|
256 |
* Method setComboButtonElement
|
257 |
*
|
258 |
* @param comboButtonElementArray
|
259 |
*/
|
260 |
public void setComboButtonElement(com.iver.andami.plugins.config.generate.ComboButtonElement[] comboButtonElementArray) |
261 |
{ |
262 |
//-- copy array
|
263 |
_comboButtonElementList.removeAllElements(); |
264 |
for (int i = 0; i < comboButtonElementArray.length; i++) { |
265 |
_comboButtonElementList.addElement(comboButtonElementArray[i]); |
266 |
} |
267 |
} //-- void setComboButtonElement(com.iver.andami.plugins.config.generate.ComboButtonElement)
|
268 |
|
269 |
/**
|
270 |
* Sets the value of field 'name'.
|
271 |
*
|
272 |
* @param name the value of field 'name'.
|
273 |
*/
|
274 |
public void setName(java.lang.String name) |
275 |
{ |
276 |
this._name = name;
|
277 |
} //-- void setName(java.lang.String)
|
278 |
|
279 |
/**
|
280 |
* Sets the value of field 'position'.
|
281 |
*
|
282 |
* @param position the value of field 'position'.
|
283 |
*/
|
284 |
public void setPosition(java.lang.Object position) |
285 |
{ |
286 |
this._position = position;
|
287 |
} //-- void setPosition(java.lang.Object)
|
288 |
|
289 |
/**
|
290 |
* Method unmarshal
|
291 |
*
|
292 |
* @param reader
|
293 |
*/
|
294 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
295 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
296 |
{ |
297 |
return (com.iver.andami.plugins.config.generate.ComboButton) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.ComboButton.class, reader);
|
298 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
299 |
|
300 |
/**
|
301 |
* Method validate
|
302 |
*/
|
303 |
public void validate() |
304 |
throws org.exolab.castor.xml.ValidationException
|
305 |
{ |
306 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
307 |
validator.validate(this);
|
308 |
} //-- void validate()
|
309 |
|
310 |
} |