svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / plugins / config / generate / PluginConfig.java @ 41706
History | View | Annotate | Download (21.1 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
/*
|
25 |
* This class was automatically generated with
|
26 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
27 |
* Schema.
|
28 |
* $Id: PluginConfig.java 40403 2013-06-13 06:24:04Z jjdelcerro $
|
29 |
*/
|
30 |
|
31 |
package org.gvsig.andami.plugins.config.generate; |
32 |
|
33 |
//---------------------------------/
|
34 |
//- Imported classes and packages -/
|
35 |
//---------------------------------/
|
36 |
|
37 |
import java.io.File; |
38 |
import java.util.Vector; |
39 |
|
40 |
import org.exolab.castor.xml.Marshaller; |
41 |
import org.exolab.castor.xml.Unmarshaller; |
42 |
import org.slf4j.Logger; |
43 |
import org.slf4j.LoggerFactory; |
44 |
|
45 |
/**
|
46 |
* Class PluginConfig.
|
47 |
*
|
48 |
* @version $Revision: 40403 $ $Date: 2013-06-13 08:24:04 +0200 (jue, 13 jun 2013) $
|
49 |
*/
|
50 |
public class PluginConfig implements java.io.Serializable { |
51 |
|
52 |
private static final Logger logger = LoggerFactory.getLogger(PluginConfig.class); |
53 |
|
54 |
//--------------------------/
|
55 |
//- Class/Member Variables -/
|
56 |
//--------------------------/
|
57 |
|
58 |
/**
|
59 |
* Field _updateUrl
|
60 |
*/
|
61 |
private java.lang.String _updateUrl;
|
62 |
|
63 |
/**
|
64 |
* Field _icon
|
65 |
*/
|
66 |
private org.gvsig.andami.plugins.config.generate.Icon _icon;
|
67 |
|
68 |
/**
|
69 |
* Field _dependsList
|
70 |
*/
|
71 |
private java.util.Vector _dependsList;
|
72 |
|
73 |
/**
|
74 |
* Field _alternativeNameList
|
75 |
*/
|
76 |
private java.util.Vector _alternativeNamesList;
|
77 |
|
78 |
/**
|
79 |
* Field _resourceBundle
|
80 |
*/
|
81 |
private org.gvsig.andami.plugins.config.generate.ResourceBundle _resourceBundle;
|
82 |
|
83 |
/**
|
84 |
* Field _labelSetList
|
85 |
*/
|
86 |
private java.util.Vector _labelSetList;
|
87 |
|
88 |
/**
|
89 |
* Field _libraries
|
90 |
*/
|
91 |
private org.gvsig.andami.plugins.config.generate.Libraries _libraries;
|
92 |
|
93 |
/**
|
94 |
* Field _popupMenus
|
95 |
*/
|
96 |
private org.gvsig.andami.plugins.config.generate.PopupMenus _popupMenus;
|
97 |
|
98 |
/**
|
99 |
* Field _extensions
|
100 |
*/
|
101 |
private org.gvsig.andami.plugins.config.generate.Extensions _extensions;
|
102 |
|
103 |
|
104 |
//----------------/
|
105 |
//- Constructors -/
|
106 |
//----------------/
|
107 |
|
108 |
public PluginConfig() {
|
109 |
super();
|
110 |
_dependsList = new Vector(); |
111 |
_alternativeNamesList = new Vector(); |
112 |
_labelSetList = new Vector(); |
113 |
} //-- com.iver.andami.plugins.config.generate.PluginConfig()
|
114 |
|
115 |
|
116 |
//-----------/
|
117 |
//- Methods -/
|
118 |
//-----------/
|
119 |
|
120 |
/**
|
121 |
* Method addDepends
|
122 |
*
|
123 |
* @param vDepends
|
124 |
*/
|
125 |
public void addDepends(org.gvsig.andami.plugins.config.generate.Depends vDepends) |
126 |
throws java.lang.IndexOutOfBoundsException
|
127 |
{ |
128 |
_dependsList.addElement(vDepends); |
129 |
if( "org.gvsig.app".equals(vDepends.getPluginName()) ) { |
130 |
logger.info("Deprecated dependency 'org.gvsig.app' add optional depdency with 'org.gvsig.shp.app.mainplugin' to ensure compatibility with gvSIG 2.0.");
|
131 |
org.gvsig.andami.plugins.config.generate.Depends dep2 = new org.gvsig.andami.plugins.config.generate.Depends();
|
132 |
dep2.setOptional(true);
|
133 |
dep2.setPluginName("org.gvsig.shp.app.mainplugin");
|
134 |
_dependsList.addElement(dep2); |
135 |
} |
136 |
} //-- void addDepends(com.iver.andami.plugins.config.generate.Depends)
|
137 |
|
138 |
/**
|
139 |
* Method addDepends
|
140 |
*
|
141 |
* @param index
|
142 |
* @param vDepends
|
143 |
*/
|
144 |
public void addDepends(int index, org.gvsig.andami.plugins.config.generate.Depends vDepends) |
145 |
throws java.lang.IndexOutOfBoundsException
|
146 |
{ |
147 |
_dependsList.insertElementAt(vDepends, index); |
148 |
} //-- void addDepends(int, com.iver.andami.plugins.config.generate.Depends)
|
149 |
|
150 |
/**
|
151 |
* Method addAlternativeName
|
152 |
*
|
153 |
* @param vAlternativeName
|
154 |
*/
|
155 |
public void addAlternativeNames(org.gvsig.andami.plugins.config.generate.AlternativeNames vAlternativeName) |
156 |
throws java.lang.IndexOutOfBoundsException
|
157 |
{ |
158 |
_alternativeNamesList.addElement(vAlternativeName); |
159 |
} //-- void addAlternativeName(com.iver.andami.plugins.config.generate.AlternativeName)
|
160 |
|
161 |
/**
|
162 |
* Method addAlternativeName
|
163 |
*
|
164 |
* @param index
|
165 |
* @param vAlternativeName
|
166 |
*/
|
167 |
public void addAlternativeNames(int index, org.gvsig.andami.plugins.config.generate.AlternativeNames vAlternativeName) |
168 |
throws java.lang.IndexOutOfBoundsException
|
169 |
{ |
170 |
_alternativeNamesList.insertElementAt(vAlternativeName, index); |
171 |
} //-- void addDepends(int, com.iver.andami.plugins.config.generate.Depends)
|
172 |
|
173 |
/**
|
174 |
* Method addLabelSet
|
175 |
*
|
176 |
* @param vLabelSet
|
177 |
*/
|
178 |
public void addLabelSet(org.gvsig.andami.plugins.config.generate.LabelSet vLabelSet) |
179 |
throws java.lang.IndexOutOfBoundsException
|
180 |
{ |
181 |
_labelSetList.addElement(vLabelSet); |
182 |
} //-- void addLabelSet(com.iver.andami.plugins.config.generate.LabelSet)
|
183 |
|
184 |
/**
|
185 |
* Method addLabelSet
|
186 |
*
|
187 |
* @param index
|
188 |
* @param vLabelSet
|
189 |
*/
|
190 |
public void addLabelSet(int index, org.gvsig.andami.plugins.config.generate.LabelSet vLabelSet) |
191 |
throws java.lang.IndexOutOfBoundsException
|
192 |
{ |
193 |
_labelSetList.insertElementAt(vLabelSet, index); |
194 |
} //-- void addLabelSet(int, com.iver.andami.plugins.config.generate.LabelSet)
|
195 |
|
196 |
/**
|
197 |
* Method enumerateDepends
|
198 |
*/
|
199 |
public java.util.Enumeration enumerateDepends()
|
200 |
{ |
201 |
return _dependsList.elements();
|
202 |
} //-- java.util.Enumeration enumerateDepends()
|
203 |
|
204 |
/**
|
205 |
* Method enumerateAlternativeNames
|
206 |
*/
|
207 |
public java.util.Enumeration enumerateAlternativeNames()
|
208 |
{ |
209 |
return _alternativeNamesList.elements();
|
210 |
} //-- java.util.Enumeration enumerateAlternativeNames()
|
211 |
|
212 |
/**
|
213 |
* Method enumerateLabelSet
|
214 |
*/
|
215 |
public java.util.Enumeration enumerateLabelSet()
|
216 |
{ |
217 |
return _labelSetList.elements();
|
218 |
} //-- java.util.Enumeration enumerateLabelSet()
|
219 |
|
220 |
/**
|
221 |
* Method getDepends
|
222 |
*
|
223 |
* @param index
|
224 |
*/
|
225 |
public org.gvsig.andami.plugins.config.generate.Depends getDepends(int index) |
226 |
throws java.lang.IndexOutOfBoundsException
|
227 |
{ |
228 |
//-- check bounds for index
|
229 |
if ((index < 0) || (index > _dependsList.size())) { |
230 |
throw new IndexOutOfBoundsException(); |
231 |
} |
232 |
|
233 |
return (org.gvsig.andami.plugins.config.generate.Depends) _dependsList.elementAt(index);
|
234 |
} //-- com.iver.andami.plugins.config.generate.Depends getDepends(int)
|
235 |
|
236 |
/**
|
237 |
* Method getDepends
|
238 |
*/
|
239 |
public org.gvsig.andami.plugins.config.generate.Depends[] getDepends() |
240 |
{ |
241 |
int size = _dependsList.size();
|
242 |
org.gvsig.andami.plugins.config.generate.Depends[] mArray = new org.gvsig.andami.plugins.config.generate.Depends[size]; |
243 |
for (int index = 0; index < size; index++) { |
244 |
mArray[index] = (org.gvsig.andami.plugins.config.generate.Depends) _dependsList.elementAt(index); |
245 |
} |
246 |
return mArray;
|
247 |
} //-- com.iver.andami.plugins.config.generate.Depends[] getDepends()
|
248 |
|
249 |
/**
|
250 |
* Method getDependsCount
|
251 |
*/
|
252 |
public int getDependsCount() |
253 |
{ |
254 |
return _dependsList.size();
|
255 |
} //-- int getDependsCount()
|
256 |
|
257 |
/**
|
258 |
* Method getAlternativeNames
|
259 |
*
|
260 |
* @param index
|
261 |
*/
|
262 |
public org.gvsig.andami.plugins.config.generate.AlternativeNames getAlternativeNames(int index) |
263 |
throws java.lang.IndexOutOfBoundsException
|
264 |
{ |
265 |
//-- check bounds for index
|
266 |
if ((index < 0) || (index > _alternativeNamesList.size())) { |
267 |
throw new IndexOutOfBoundsException(); |
268 |
} |
269 |
|
270 |
return (org.gvsig.andami.plugins.config.generate.AlternativeNames) _alternativeNamesList.elementAt(index);
|
271 |
} //-- com.iver.andami.plugins.config.generate.Depends getAlternativeNames(int)
|
272 |
|
273 |
/**
|
274 |
* Method getDepends
|
275 |
*/
|
276 |
public org.gvsig.andami.plugins.config.generate.AlternativeNames[] getAlternativeNames() |
277 |
{ |
278 |
int size = _alternativeNamesList.size();
|
279 |
org.gvsig.andami.plugins.config.generate.AlternativeNames[] mArray = new org.gvsig.andami.plugins.config.generate.AlternativeNames[size]; |
280 |
for (int index = 0; index < size; index++) { |
281 |
mArray[index] = (org.gvsig.andami.plugins.config.generate.AlternativeNames) _alternativeNamesList.elementAt(index); |
282 |
} |
283 |
return mArray;
|
284 |
} //-- com.iver.andami.plugins.config.generate.AlternativeNames[] getAlternativeNames()
|
285 |
|
286 |
/**
|
287 |
* Method getAlternativeNamesCount
|
288 |
*/
|
289 |
public int getAlternativeNamesCount() |
290 |
{ |
291 |
return _alternativeNamesList.size();
|
292 |
} //-- int getAlternativeNamesCount()
|
293 |
|
294 |
|
295 |
/**s
|
296 |
* Returns the value of field 'extensions'.
|
297 |
*
|
298 |
* @return the value of field 'extensions'.
|
299 |
*/
|
300 |
public org.gvsig.andami.plugins.config.generate.Extensions getExtensions()
|
301 |
{ |
302 |
return this._extensions; |
303 |
} //-- com.iver.andami.plugins.config.generate.Extensions getExtensions()
|
304 |
|
305 |
/**
|
306 |
* Returns the value of field 'icon'.
|
307 |
*
|
308 |
* @return the value of field 'icon'.
|
309 |
*/
|
310 |
public org.gvsig.andami.plugins.config.generate.Icon getIcon()
|
311 |
{ |
312 |
return this._icon; |
313 |
} //-- com.iver.andami.plugins.config.generate.Icon getIcon()
|
314 |
|
315 |
/**
|
316 |
* Method getLabelSet
|
317 |
*
|
318 |
* @param index
|
319 |
*/
|
320 |
public org.gvsig.andami.plugins.config.generate.LabelSet getLabelSet(int index) |
321 |
throws java.lang.IndexOutOfBoundsException
|
322 |
{ |
323 |
//-- check bounds for index
|
324 |
if ((index < 0) || (index > _labelSetList.size())) { |
325 |
throw new IndexOutOfBoundsException(); |
326 |
} |
327 |
|
328 |
return (org.gvsig.andami.plugins.config.generate.LabelSet) _labelSetList.elementAt(index);
|
329 |
} //-- com.iver.andami.plugins.config.generate.LabelSet getLabelSet(int)
|
330 |
|
331 |
/**
|
332 |
* Method getLabelSet
|
333 |
*/
|
334 |
public org.gvsig.andami.plugins.config.generate.LabelSet[] getLabelSet() |
335 |
{ |
336 |
int size = _labelSetList.size();
|
337 |
org.gvsig.andami.plugins.config.generate.LabelSet[] mArray = new org.gvsig.andami.plugins.config.generate.LabelSet[size]; |
338 |
for (int index = 0; index < size; index++) { |
339 |
mArray[index] = (org.gvsig.andami.plugins.config.generate.LabelSet) _labelSetList.elementAt(index); |
340 |
} |
341 |
return mArray;
|
342 |
} //-- com.iver.andami.plugins.config.generate.LabelSet[] getLabelSet()
|
343 |
|
344 |
/**
|
345 |
* Method getLabelSetCount
|
346 |
*/
|
347 |
public int getLabelSetCount() |
348 |
{ |
349 |
return _labelSetList.size();
|
350 |
} //-- int getLabelSetCount()
|
351 |
|
352 |
/**
|
353 |
* Returns the value of field 'libraries'.
|
354 |
*
|
355 |
* @return the value of field 'libraries'.
|
356 |
*/
|
357 |
public org.gvsig.andami.plugins.config.generate.Libraries getLibraries()
|
358 |
{ |
359 |
return this._libraries; |
360 |
} //-- com.iver.andami.plugins.config.generate.Libraries getLibraries()
|
361 |
|
362 |
/**
|
363 |
* Returns the value of field 'popupMenus'.
|
364 |
*
|
365 |
* @return the value of field 'popupMenus'.
|
366 |
*/
|
367 |
public org.gvsig.andami.plugins.config.generate.PopupMenus getPopupMenus()
|
368 |
{ |
369 |
return this._popupMenus; |
370 |
} //-- com.iver.andami.plugins.config.generate.PopupMenus getPopupMenus()
|
371 |
|
372 |
/**
|
373 |
* Returns the value of field 'resourceBundle'.
|
374 |
*
|
375 |
* @return the value of field 'resourceBundle'.
|
376 |
*/
|
377 |
public org.gvsig.andami.plugins.config.generate.ResourceBundle getResourceBundle()
|
378 |
{ |
379 |
return this._resourceBundle; |
380 |
} //-- com.iver.andami.plugins.config.generate.ResourceBundle getResourceBundle()
|
381 |
|
382 |
/**
|
383 |
* Returns the value of field 'updateUrl'.
|
384 |
*
|
385 |
* @return the value of field 'updateUrl'.
|
386 |
*/
|
387 |
public java.lang.String getUpdateUrl()
|
388 |
{ |
389 |
return this._updateUrl; |
390 |
} //-- java.lang.String getUpdateUrl()
|
391 |
|
392 |
/**
|
393 |
* Method isValid
|
394 |
*/
|
395 |
public boolean isValid() |
396 |
{ |
397 |
try {
|
398 |
validate(); |
399 |
} |
400 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
401 |
return false; |
402 |
} |
403 |
return true; |
404 |
} //-- boolean isValid()
|
405 |
|
406 |
/**
|
407 |
* Method marshal
|
408 |
*
|
409 |
* @param out
|
410 |
*/
|
411 |
public void marshal(java.io.Writer out) |
412 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
413 |
{ |
414 |
|
415 |
Marshaller.marshal(this, out);
|
416 |
} //-- void marshal(java.io.Writer)
|
417 |
|
418 |
/**
|
419 |
* Method marshal
|
420 |
*
|
421 |
* @param handler
|
422 |
*/
|
423 |
public void marshal(org.xml.sax.ContentHandler handler) |
424 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
425 |
{ |
426 |
|
427 |
Marshaller.marshal(this, handler);
|
428 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
429 |
|
430 |
/**
|
431 |
* Method removeAllDepends
|
432 |
*/
|
433 |
public void removeAllDepends() |
434 |
{ |
435 |
_dependsList.removeAllElements(); |
436 |
} //-- void removeAllDepends()
|
437 |
|
438 |
/**
|
439 |
* Method removeAllAlternativeNames
|
440 |
*/
|
441 |
public void removeAllAlternativeNames() |
442 |
{ |
443 |
_alternativeNamesList.removeAllElements(); |
444 |
} //-- void removeAllAlternativeNames()
|
445 |
|
446 |
/**
|
447 |
* Method removeAllLabelSet
|
448 |
*/
|
449 |
public void removeAllLabelSet() |
450 |
{ |
451 |
_labelSetList.removeAllElements(); |
452 |
} //-- void removeAllLabelSet()
|
453 |
|
454 |
/**
|
455 |
* Method removeDepends
|
456 |
*
|
457 |
* @param index
|
458 |
*/
|
459 |
public org.gvsig.andami.plugins.config.generate.Depends removeDepends(int index) |
460 |
{ |
461 |
java.lang.Object obj = _dependsList.elementAt(index); |
462 |
_dependsList.removeElementAt(index); |
463 |
return (org.gvsig.andami.plugins.config.generate.Depends) obj;
|
464 |
} //-- com.iver.andami.plugins.config.generate.Depends removeDepends(int)
|
465 |
|
466 |
/**
|
467 |
* Method removeAlternativeNames
|
468 |
*
|
469 |
* @param index
|
470 |
*/
|
471 |
public org.gvsig.andami.plugins.config.generate.AlternativeNames removeAlternativeNames(int index) |
472 |
{ |
473 |
java.lang.Object obj = _alternativeNamesList.elementAt(index); |
474 |
_alternativeNamesList.removeElementAt(index); |
475 |
return (org.gvsig.andami.plugins.config.generate.AlternativeNames) obj;
|
476 |
} //-- com.iver.andami.plugins.config.generate.Depends removeAlternativeNames(int)
|
477 |
|
478 |
/**
|
479 |
* Method removeLabelSet
|
480 |
*
|
481 |
* @param index
|
482 |
*/
|
483 |
public org.gvsig.andami.plugins.config.generate.LabelSet removeLabelSet(int index) |
484 |
{ |
485 |
java.lang.Object obj = _labelSetList.elementAt(index); |
486 |
_labelSetList.removeElementAt(index); |
487 |
return (org.gvsig.andami.plugins.config.generate.LabelSet) obj;
|
488 |
} //-- com.iver.andami.plugins.config.generate.LabelSet removeLabelSet(int)
|
489 |
|
490 |
/**
|
491 |
* Method setDepends
|
492 |
*
|
493 |
* @param index
|
494 |
* @param vDepends
|
495 |
*/
|
496 |
public void setDepends(int index, org.gvsig.andami.plugins.config.generate.Depends vDepends) |
497 |
throws java.lang.IndexOutOfBoundsException
|
498 |
{ |
499 |
//-- check bounds for index
|
500 |
if ((index < 0) || (index > _dependsList.size())) { |
501 |
throw new IndexOutOfBoundsException(); |
502 |
} |
503 |
_dependsList.setElementAt(vDepends, index); |
504 |
} //-- void setDepends(int, com.iver.andami.plugins.config.generate.Depends)
|
505 |
|
506 |
/**
|
507 |
* Method setDepends
|
508 |
*
|
509 |
* @param dependsArray
|
510 |
*/
|
511 |
public void setDepends(org.gvsig.andami.plugins.config.generate.Depends[] dependsArray) |
512 |
{ |
513 |
//-- copy array
|
514 |
_dependsList.removeAllElements(); |
515 |
for (int i = 0; i < dependsArray.length; i++) { |
516 |
_dependsList.addElement(dependsArray[i]); |
517 |
} |
518 |
} //-- void setDepends(com.iver.andami.plugins.config.generate.Depends)
|
519 |
|
520 |
/**
|
521 |
* Method setAlternativeNames
|
522 |
*
|
523 |
* @param index
|
524 |
* @param vAlternativeNames
|
525 |
*/
|
526 |
public void setAlternativeNames(int index, org.gvsig.andami.plugins.config.generate.AlternativeNames vAlternativeNames) |
527 |
throws java.lang.IndexOutOfBoundsException
|
528 |
{ |
529 |
//-- check bounds for index
|
530 |
if ((index < 0) || (index > _alternativeNamesList.size())) { |
531 |
throw new IndexOutOfBoundsException(); |
532 |
} |
533 |
_alternativeNamesList.setElementAt(vAlternativeNames, index); |
534 |
} //-- void setAlternativeNames(int, com.iver.andami.plugins.config.generate.AlternativeNames)
|
535 |
|
536 |
/**
|
537 |
* Method setAlternativeNames
|
538 |
*
|
539 |
* @param AlternativeNamesArray
|
540 |
*/
|
541 |
public void setAlternativeNames(org.gvsig.andami.plugins.config.generate.AlternativeNames[] alternativeNamesArray) |
542 |
{ |
543 |
//-- copy array
|
544 |
_alternativeNamesList.removeAllElements(); |
545 |
for (int i = 0; i < alternativeNamesArray.length; i++) { |
546 |
_alternativeNamesList.addElement(alternativeNamesArray[i]); |
547 |
} |
548 |
} //-- void setAlternativeNames(com.iver.andami.plugins.config.generate.AlternativeNames)
|
549 |
|
550 |
/**
|
551 |
* Sets the value of field 'extensions'.
|
552 |
*
|
553 |
* @param extensions the value of field 'extensions'.
|
554 |
*/
|
555 |
public void setExtensions(org.gvsig.andami.plugins.config.generate.Extensions extensions) |
556 |
{ |
557 |
this._extensions = extensions;
|
558 |
} //-- void setExtensions(com.iver.andami.plugins.config.generate.Extensions)
|
559 |
|
560 |
/**
|
561 |
* Sets the value of field 'icon'.
|
562 |
*
|
563 |
* @param icon the value of field 'icon'.
|
564 |
*/
|
565 |
public void setIcon(org.gvsig.andami.plugins.config.generate.Icon icon) |
566 |
{ |
567 |
this._icon = icon;
|
568 |
} //-- void setIcon(com.iver.andami.plugins.config.generate.Icon)
|
569 |
|
570 |
/**
|
571 |
* Method setLabelSet
|
572 |
*
|
573 |
* @param index
|
574 |
* @param vLabelSet
|
575 |
*/
|
576 |
public void setLabelSet(int index, org.gvsig.andami.plugins.config.generate.LabelSet vLabelSet) |
577 |
throws java.lang.IndexOutOfBoundsException
|
578 |
{ |
579 |
//-- check bounds for index
|
580 |
if ((index < 0) || (index > _labelSetList.size())) { |
581 |
throw new IndexOutOfBoundsException(); |
582 |
} |
583 |
_labelSetList.setElementAt(vLabelSet, index); |
584 |
} //-- void setLabelSet(int, com.iver.andami.plugins.config.generate.LabelSet)
|
585 |
|
586 |
/**
|
587 |
* Method setLabelSet
|
588 |
*
|
589 |
* @param labelSetArray
|
590 |
*/
|
591 |
public void setLabelSet(org.gvsig.andami.plugins.config.generate.LabelSet[] labelSetArray) |
592 |
{ |
593 |
//-- copy array
|
594 |
_labelSetList.removeAllElements(); |
595 |
for (int i = 0; i < labelSetArray.length; i++) { |
596 |
_labelSetList.addElement(labelSetArray[i]); |
597 |
} |
598 |
} //-- void setLabelSet(com.iver.andami.plugins.config.generate.LabelSet)
|
599 |
|
600 |
/**
|
601 |
* Sets the value of field 'libraries'.
|
602 |
*
|
603 |
* @param libraries the value of field 'libraries'.
|
604 |
*/
|
605 |
public void setLibraries(org.gvsig.andami.plugins.config.generate.Libraries libraries) |
606 |
{ |
607 |
this._libraries = libraries;
|
608 |
} //-- void setLibraries(com.iver.andami.plugins.config.generate.Libraries)
|
609 |
|
610 |
/**
|
611 |
* Sets the value of field 'popupMenus'.
|
612 |
*
|
613 |
* @param popupMenus the value of field 'popupMenus'.
|
614 |
*/
|
615 |
public void setPopupMenus(org.gvsig.andami.plugins.config.generate.PopupMenus popupMenus) |
616 |
{ |
617 |
this._popupMenus = popupMenus;
|
618 |
} //-- void setPopupMenus(com.iver.andami.plugins.config.generate.PopupMenus)
|
619 |
|
620 |
/**
|
621 |
* Sets the value of field 'resourceBundle'.
|
622 |
*
|
623 |
* @param resourceBundle the value of field 'resourceBundle'.
|
624 |
*/
|
625 |
public void setResourceBundle(org.gvsig.andami.plugins.config.generate.ResourceBundle resourceBundle) |
626 |
{ |
627 |
this._resourceBundle = resourceBundle;
|
628 |
} //-- void setResourceBundle(com.iver.andami.plugins.config.generate.ResourceBundle)
|
629 |
|
630 |
/**
|
631 |
* Sets the value of field 'updateUrl'.
|
632 |
*
|
633 |
* @param updateUrl the value of field 'updateUrl'.
|
634 |
*/
|
635 |
public void setUpdateUrl(java.lang.String updateUrl) |
636 |
{ |
637 |
this._updateUrl = updateUrl;
|
638 |
} //-- void setUpdateUrl(java.lang.String)
|
639 |
|
640 |
/**
|
641 |
* Method unmarshal
|
642 |
*
|
643 |
* @param reader
|
644 |
*/
|
645 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
646 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
647 |
{ |
648 |
return (org.gvsig.andami.plugins.config.generate.PluginConfig) Unmarshaller.unmarshal(org.gvsig.andami.plugins.config.generate.PluginConfig.class, reader);
|
649 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
650 |
|
651 |
/**
|
652 |
* Method validate
|
653 |
*/
|
654 |
public void validate() |
655 |
throws org.exolab.castor.xml.ValidationException
|
656 |
{ |
657 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
658 |
validator.validate(this);
|
659 |
} //-- void validate()
|
660 |
|
661 |
|
662 |
private String pluginName = null; |
663 |
private File pluginFolder = null; |
664 |
|
665 |
public String getPluginName() { |
666 |
return this.pluginName; |
667 |
} |
668 |
|
669 |
public void setPluginName(String name) { |
670 |
this.pluginName = name;
|
671 |
} |
672 |
|
673 |
public File getPluginFolder() { |
674 |
return this.pluginFolder; |
675 |
} |
676 |
|
677 |
public void setPluginFolder(File folder) { |
678 |
this.pluginFolder = folder;
|
679 |
} |
680 |
} |